IPhone Development: Retrieving SSL Certificate Information

I am developing an application where I want to configure a secure channel between my application and the server. I want to extract information, such as CA, and the algorithm from the SSL certificate on the server. How do I achieve this? Is it possible to do this with NSUrlConnection, CFNetwork, or can I develop it myself with BSD sockets myself? Is it possible to use an open source library? Code examples are welcome!

+3
source share
1 answer

There is no built-in way to verify this information. If the certificate is invalid, connection: didFailWithError: is called , but beyond that, you cannot really interact with the SSL certificate in any way.

You may have to collapse your own or find libraries to help you do this.

0
source

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


All Articles