Iphone - Request an X.509 Certificate URL

I am trying to transfer what I did in .NET to iphone. I am mainly trying to use the API to communicate with the server. The API requires mutual authentication through an X.509 certificate.

I managed to do this work with .NET (which was pretty simple), however this is clearly visible from the iPhone.

Has someone done this before and could show me the code from which I can start?

Thank!

edit1: I am using Apple documentation to continue. I am now stuck at the point where SecTrustEvaluate (myTrust, & trustResult) will return kSecTrustResultRecoverableTrustFailure. On the iPhone, it is not possible to obtain more detailed information about the failure.

I created a self-signed certificate from Keychain Access. Any idea how the certificate should be โ€œconfiguredโ€ to pass the SecTrustEvaluate test?

+3
source share

Source: https://habr.com/ru/post/1759165/


All Articles