Reputation: 2308
If I use safari on iOS device to access a particular URL (https) where the server has an invalid certificate, safari gives me the alert saying "Cannot verify server identity". Means Safari has implemented certificate validation.
But on my iPhone app when I use NSURLCOnnection with the same URL(https), how can I validate certificate whether it is expired, self-signed or untrusted?
Upvotes: 1
Views: 2266
Reputation: 1602
Take a look at NSURLConnectionDelegate's connection:willSendRequestForAuthenticationChallenge
Upvotes: 1