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.

1 Answer 1

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?

Sign up to request clarification or add additional context in comments.

3 Comments

shawn, the concern is its getting bypassed and not throwing exception at all. Thats wht I am concerned why its not throwing an error.
Have you already implemented the delegate methods ie canAuthenticateAgainstProtectionSpace and let it pass through?
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?

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.