2

I've to send a client certificate in PFX format for mutual auth to my server through web request. I'm using Alamofire 4 with Swift 3, but I can't find a good tutorial to achieve my goal.

Has anyone ever had to deal with this type of problem in the past?

Thanks.

Fry
  • 6,235
  • 8
  • 54
  • 93
  • Where you able to find the solution – Priyal Feb 09 '18 at 06:50
  • i'm also curious, can't seem to find any solution – Amien Mar 24 '18 at 10:52
  • I realise you guys might not need this anymore but someone else might find it useful -I think this might be what you're looking for - https://stackoverflow.com/questions/39985856/getting-client-certificate-to-work-for-mutual-authentication-using-swift-3-and-a/40408479?noredirect=1#comment100949586_40408479 – SuperHanz98 Jul 31 '19 at 08:44
  • For some reason the bounty has been awarded to the wrong answer in the question, Andrew's answer worked for me. It's for P12 files but PFX is essentially the same under the hood so you should be able to just chop off the .pfx and stick .p12 on the end for it to work. It might even take pfx without any changes, idk you'll have to investigate yourself. – SuperHanz98 Jul 31 '19 at 08:46

0 Answers0