cryptomator-ios icon indicating copy to clipboard operation
cryptomator-ios copied to clipboard

SSL client certificate authentication

Open tobihagemann opened this issue 7 years ago • 1 comments

Currently, we only support server trust authentication, see NSURLAuthenticationMethodServerTrust. Client certification authentication is missing, see NSURLAuthenticationMethodClientCertificate.

Documentation: https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSURLProtectionSpace_Class/#//apple_ref/doc/constant_group/NSURLProtectionSpace_Authentication_Methods

tobihagemann avatar Aug 22 '16 13:08 tobihagemann

I've looked into this and I didn't know what I was getting into.

There is some sample code available: AdvancedURLConnections in the class ClientIdentityChallengeHandler.

What I didn't know was that you have to manage your own identities, as described in the Technical Q&A QA1745 "Making Certificates and Keys Available To Your App".

Currently, there is no way for me to implement this properly. We have to postpone this enhancement for a future release.

tobihagemann avatar Aug 31 '16 21:08 tobihagemann