Rectangle 27 0

You can't do this with a UIWebView, but you can using the canAuthenticateAgainstProtectionSpace: delegate method for NSURLConnection. You can use this delegate method to create an NSData copy of the certificate you want to verify, and then compare it against a locally stored copy.

That said, as indicated above it doesn't really add much security, and there are better ways of achieving what you want to achieve.

objective c - How to check ssl certificate of https request on iPhone ...

iphone objective-c https uiwebview certificate