0

For the communication with a server API in my iOS app I have to include a client certificate (crt + key file) with every http request. So no ssl pinning, just include a certificate. My customer tells me to send the certificate with the session but don't know how to do this.

How can I do this in Swift ? Any advice / code snippet / example etc appreciated.

Thanks for your help Frank

Frank van Vliet
  • 640
  • 2
  • 8
  • 18
  • See if this helps: https://stackoverflow.com/questions/35870572/how-to-implement-client-certificates-and-server-authentication-for-ios – user1046037 Mar 25 '18 at 12:54
  • found this but still have to check if it works.... https://stackoverflow.com/questions/39985856/getting-client-certificate-to-work-for-mutual-authentication-using-swift-3-and-a – Frank van Vliet Mar 26 '18 at 16:08
  • Yes !! Found the solution in SO story mentioned above (answer Andrew Philips). – Frank van Vliet Apr 06 '18 at 10:09

0 Answers0