3

根据 caniuse.com iOS Safari 9.2 和 9.3不支持 TLS 公钥与标头固定Public-Key-Pins

如何使用 a 进行公钥固定WKWebView

4

1 回答 1

1

WkWebView为您提供一个处理程序,用于验证 WKNavigationDelegate webView:didReceiveAuthenticationChallenge:completionHandler:( https://developer.apple.com/library/ios/documentation/WebKit/Reference/WKNavigationDelegate_Ref/index.html ) 中的服务器证书链。

在本文的“Pinning in Webviews”部分有更多详细信息:https ://datatheorem.github.io/TrustKit/getting-started.html它也是一个在 iOS 应用程序中实现公钥固定的库。

于 2016-03-30T06:23:14.173 回答