caniuse.com によると、iOS Safari 9.2 および 9.3は、ヘッダーを使用したTLS 公開鍵のピン留めをサポートしていませんPublic-Key-Pins
。
で公開鍵のピン留めを行うにはどうすればよいWKWebView
ですか?
WkWebView
WKNavigationDelegate webView:didReceiveAuthenticationChallenge:completionHandler:
( https://developer.apple.com/library/ios/documentation/WebKit/Reference/WKNavigationDelegate_Ref/index.html ) でサーバーの証明書チェーンを検証するためのハンドラーを提供します。
詳細については、この記事の「Web ビューでのピン留め」セクション ( https://datatheorem.github.io/TrustKit/getting-started.html )を参照してください。これは、iOS アプリで公開キーのピン留めを実装するためのライブラリでもあります。