【发布时间】:2012-10-25 07:20:29
【问题描述】:
我正在尝试通过 UIWebView 浏览安全网站(使用客户端证书)。 我正在使用这个例子:Client certificate authentication in UIWebView iOS
它似乎不适用于 iOS 6。我设法处理了服务器信任,但 UIWebView 似乎忽略了客户端证书。即使我设法使用 ASIHTTPRequest 和身份连接到服务器。
UIWebViewDelegate 中出现以下错误:
webView didFailLoadWithError :-1206 The server “xxx.yyy” requires a client certificate.`
我将NSURLCredentialPersistenceForSession 标志用于NSURLCredential。
【问题讨论】:
-
这方面有什么进展吗?我也被这个问题困住了......
-
你能发布你的 -(BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest: 吗?
-
问题现在解决了吗?您是否将 UIWebView 的委托与视图控制器联系起来?