gpt4 book ai didi

ios - iOS 6 上的 UIWebView 和客户端证书

转载 作者:可可西里 更新时间:2023-11-01 03:21:31 25 4
gpt4 key购买 nike

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

它在 iOS 6 上似乎不起作用。我设法处理了服务器信任,但客户端证书似乎被 UIWebView 忽略了。即使我设法使用 ASIHTTPRequest 和身份连接到服务器。

在 UIWebViewDelegate 中引发了以下错误:

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

我为 NSURLCredential 使用标志 NSURLCredentialPersistenceForSession

最佳答案

您提供的链接包含问题的正确解决方案。只需确保将客户端证书添加到应用程序包(Build Phases->Copy Bundle Resources in Xcode)

关于ios - iOS 6 上的 UIWebView 和客户端证书,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13063541/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com