简体   繁体   中英

NSMutableURLRequest checking for Https SSL certificate validation

I am trying to utilize ssl for my application and apparently I don't notice that NSURLConnection is throwing any exception when using https with self signed cert. I am curious what might be the possibilities for not validating cert? I am sniffing the packets and it is using https port to bypass the transaction, but don't encounter the exception somehow.

Thanks.

If the cert is self-signed then it isn't actually a trusted https cert. If you want to bypass it use the code snippet at:

How to use NSURLConnection to connect with SSL for an untrusted cert?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM