且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

App Transport Security在iOS 11 Xcode 9上不再起作用

更新时间:2023-09-13 21:50:28

我知道IOS 11不再支持以下内容:

I am aware that IOS 11 not longer supports the following:

  • RC4 3DES-CBC AES-CBC
  • MD5 SHA-1
  • < 2048位RSA发布密钥-与服务器的所有TLS连接
  • http://
  • SSLv3
  • TLS 1.0
  • TLS 1.1

添加以下内容,我们可以绕过ATS(应用程序传输安全性)错误:

Adding the following we can bypass the ATS (App Transport Security) error:

<key>NSAppTransportSecurity</key> <dict>
     <key>NSExceptionDomains</key>
     <dict>
         <key>mydomain.com</key>
         <dict>
             <!--Include to allow subdomains-->
             <key>NSIncludesSubdomains</key>
             <true/>
             <key>NSExceptionRequiresForwardSecrecy</key>
             <false/>
         </dict>
     </dict> </dict>

参考链接: iOS 11 ATS(应用程序传输安全性)不再接受自定义锚证书吗?