【问题标题】:UIWebView and client certificates on iOS 6iOS 6 上的 UIWebView 和客户端证书
【发布时间】: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 的委托与视图控制器联系起来?

标签: ios ssl uiwebview


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-05-17
    • 2016-03-09
    相关资源
    最近更新 更多