Reputation: 2573
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.
Upvotes: 0
Views: 2937
Reputation: 4607
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?
Upvotes: 1