首页 文章

需要iOS应用中的默认SSL证书验证

提问于
浏览
0

iOS应用程序需要基本的ssl验证来保护客户端 - 服务器通信 . 我需要一种方法来避免SSL固定,这可能具有客户端 - 服务器依赖关系,并且如果SSL证书更改,则需要更新应用程序 .

有没有办法允许任何可信CA发布的所有有效SSL证书?

1 回答

  • 0

    如果您正在寻找绕过apple强加的传输安全层的方法,您可以这样做 .

    将以下代码放在plist文件中

    <key>NSAppTransportSecurity</key>
    <dict>
        <key>NSAllowsArbitraryLoads</key>
        <true/>
    </dict>
    

    *** This would disable the transport security layer and allow you to connect to insecure sources. Please beware that this is not recommended by apple and you should always use the TLS ***

    查看此链接以更好地了解Apple的App Transport Security . 此链接中可能有一些键可以配置以实现您的目的

    http://www.neglectedpotential.com/2015/06/working-with-apples-application-transport-security/

相关问题