-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No SSL Pinning for UIWebView #7
Comments
When I initially looked at this and Apple's documentation, I couldn't find a way/API/method to do cert pinning in a UIWebView. I'll have a look at NSURLProtocol; if this class exposes the right methods for handling authentication challenges I'll definitely add cert pinning code for this. |
👍 |
Not sure when I'll have time to work on this but Apple has released sample code to do exactly that: |
It has been a while but I solved this problem (and many other) in a new SSL pinning library: https://github.com/datatheorem/TrustKit I was also told that NSURLProtocol is extremely slow. |
Seems to be a common omission in certificate pinning examples and implementations that they do not ensure comprehensive coverage for all HTTPS connections on mobile applications. UIWebView requires implementing a custom NSURLProtocol to gain the proper control over how the UIWebView URL requests are invoked in order to ensure those are also pinned. Are you planning on adding code for that?
The text was updated successfully, but these errors were encountered: