iOS 6上的UIWebView和客户端证书

时间:2012-10-25 07:20:30

标签: ios ssl uiwebview

我正在尝试通过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

1 个答案:

答案 0 :(得分:0)

您提供的链接包含正确的问题解决方案。只需确保将客户端证书添加到应用程序包中(Build Phases->在Xcode中复制捆绑包资源)

相关问题