0

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.

topgun
  • 2,463
  • 8
  • 31
  • 46

1 Answers1

1

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?

Community
  • 1
  • 1
shawnwall
  • 4,549
  • 1
  • 27
  • 38
  • shawn, the concern is its getting bypassed and not throwing exception at all. Thats wht I am concerned why its not throwing an error. – topgun Feb 02 '12 at 00:56
  • Have you already implemented the delegate methods ie canAuthenticateAgainstProtectionSpace and let it pass through? – shawnwall Feb 02 '12 at 14:19
  • Shawn, no I haven't and I am making sure other delegates are being called of connection as well. The concern here is, I am actually making a call to a WCF based machine, its not a website, so just curious will that be a concern? – topgun Feb 02 '12 at 14:43