SecCertificateRef cert = SecTrustGetCertificateAtIndex(trust, 0) Īt this point, cert holds your leaf certificate. NSURLProtectionSpace *protSpace = challenge.protectionSpace (NSURLAuthenticationChallenge *)challenge WillSendRequestForAuthenticationChallenge: If you're looking for sample code that extracts the certificate from the NSURLConnection, see the Chapter 11 sample code from iOS:PTL: - (void)connection:(NSURLConnection *)connection This issue occurs if the SSL Web site that you try to visit is located in a zone that has more restricted permissions than the Internet zone, such as an intranet zone. After you click Continue to this website (not recommended), nothing happens. The lack of access to basic information about the certificate is a serious problem. For more information, see 'Certificate Errors' in Internet Explorer Help. I suggest opening a radar () on this issue. To do this with OpenSSL, you can get the DER data with SecCertificateCopyData() and then parse everything yourself. I'm not certain what you mean by "validation type" here. The version is available from SecCertificateVersion(). You can see the private certificate functions in the opensource code. You have two choices: private APIs or build your own evaluator with OpenSSL. IOS does not give you very granular access to certificate information.
0 Comments
Leave a Reply. |