gpt4 book ai didi

ssl - iOS9 NSAppTransportSecurity 相对于 https 流量的实际含义是什么?

转载 作者:太空宇宙 更新时间:2023-11-03 13:53:23 27 4
gpt4 key购买 nike

iOS9 对 info.plist 进行了新设置,称为 NSAppTransportSecurity。到目前为止,我一直无法找到允许我连接到我的 https 网络服务的配置。作为解决方法,我的 plist 中有以下行:

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

我正在尝试了解 NSAppTransportSecurity 的实际含义或作用。我在找at this technical note by Apple ,而且还不是很清楚:

All connections using the NSURLConnection, CFURL, or NSURLSession APIs use App Transport Security default behavior in apps built for iOS 9.0 or later, and OS X 10.11 or later. Connections that do not follow the requirements will fail.

NSAppTransportSecurity 只是一种配置保护措施,可以阻止低于 1.2 的 TLS,还是它实际上将某种特殊类型的传输安全应用于网络连接?

  • 使用 NSAllowsArbitraryLoads 选择退出是否会禁用所有形式的 https 通信?
  • 或者服务器是否仍然建立 https/ssl/tls 通信,除非没有 apple 监督?
  • 此要求是否适用于在 iOS9 上运行或将 iOS9 作为最低部署目标的所有应用程序?

最佳答案

选择退出使用 NSAllowsArbitraryLoads 不会禁用 https。它会简单地停止阻止不安全的连接,例如 TLS 小于 1.2 的 http 和 https

您必须在 iOS9 上运行的所有应用程序中处理此问题

关于ssl - iOS9 NSAppTransportSecurity 相对于 https 流量的实际含义是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32655421/

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