Sukitha Udugamasooriya
Sukitha Udugamasooriya

Reputation: 2308

iOS ssl certificate validation - Cannot verify server identity

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

Answers (1)

Willam Hill
Willam Hill

Reputation: 1602

Take a look at NSURLConnectionDelegate's connection:willSendRequestForAuthenticationChallenge

Upvotes: 1

Related Questions