如何在WKWebview中处理身份验证挑战?

时间:2018-05-17 06:03:03

标签: ios objective-c https ssl-certificate wkwebview

我正在使用WKWebview并尝试使用自签名证书连接服务器在我的应用程序中运行的服务器( HTTPS )但{{1委托方法被调用时出错。

didReceiveAuthenticationChallenge

我在委托方法中添加了以下代码以绕过此并继续。

The certificate for this server is authroized by valid CA.
You might be connecting to a server that is pretending to be
--My URL-- which could put your confidential information at risk.

我的问题是,因为当它进入应用程序商店时不应该这样做。我该如何处理?

0 个答案:

没有答案