Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ssl/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
iOS 6上的UIWebView和客户端证书_Ios_Ssl_Uiwebview - Fatal编程技术网

iOS 6上的UIWebView和客户端证书

iOS 6上的UIWebView和客户端证书,ios,ssl,uiwebview,Ios,Ssl,Uiwebview,我正在尝试通过UIWebView浏览一个安全的网站(使用客户端证书)。 我用这个例子: 它在iOS 6上似乎不起作用。我设法处理了服务器信任,但UIWebView似乎忽略了客户端证书。即使我成功地使用AsittpRequest和标识连接到服务器 UIWebViewDelegate中出现以下错误: webView didFailLoadWithError :-1206 The server “xxx.yyy” requires a client certificate.` 我对NSURLCred

我正在尝试通过UIWebView浏览一个安全的网站(使用客户端证书)。 我用这个例子:

它在iOS 6上似乎不起作用。我设法处理了服务器信任,但UIWebView似乎忽略了客户端证书。即使我成功地使用AsittpRequest和标识连接到服务器

UIWebViewDelegate中出现以下错误:

webView didFailLoadWithError :-1206 The server “xxx.yyy” requires a client certificate.`

我对
NSURLCredential
使用标志
NSURLCredentialPersistenceForSession
,您提供的链接包含问题的正确解决方案。只需确保将客户端证书添加到应用程序捆绑包(构建阶段->在Xcode中复制捆绑包资源)

这方面有进展吗?我也被这个问题困扰着…你能发布你的-(BOOL)webView:(UIWebView*)webView shouldStartLoadWithRequest:?这个问题现在解决了吗?您是否已将UIWebView的代理与视图控制器链接?