topgun
topgun

Reputation: 2573

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.

Upvotes: 0

Views: 2937

Answers (1)

shawnwall
shawnwall

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

Related Questions