cryptomator-ios
cryptomator-ios copied to clipboard
SSL client certificate authentication
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
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.