ios - Xing API SSL 错误

标签 ios ssl app-transport-security

我正在使用 the url在我的 ios 应用程序中从 xing 请求 token 。如果我使用的是 NSAppTransportSecurity 异常,则链接有效。但是当我删除它时它显示 ATS 错误,即使 url 是 https。

最佳答案

看起来 api.xing.com 服务器不支持前向保密(参见 here ),这是 ATS 的要求之一。幸运的是,您可以为 xing.com 域添加域异常(exception),将 NSIncludesSubdomains 键设置为 YES,并将 NSThirdPartyExceptionRequiresForwardSecrecy 键设置为 NO,如下所示:enter image description here

这应该可以解决问题,并且在您提交时不应该给 Apple 带来问题,因为当 Apple 今年开始执行更严格的 ATS 要求时,前向保密异常(exception)是不会触发额外理由需要的异常(exception)之一(截止日期原本是 2016 年 12 月 31 日,但 Apple 已将截止日期延长至 future 某个未知日期)

关于ios - Xing API SSL 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41461846/

相关文章:

php - SSL3_GET_SERVER_CERTIFICATE :certificate verify failed using xampp on mac

ios - 我如何确定 App Transport Security 阻止了哪个 URL?

适用于多种服务的 iOS 9 应用程序传输安全

ios - 禁用 UIScrollView 手势

ios - Swift 中的函数式图形

iOS:ScrollView 无限分页 - 重复的端盖

Node.js Nginx LetsEncrypt 坏网关

ios - 在从 firebase 登录提取数据之前加载 View Controller - Swift

ssl - 安全连接失败 - ColdFusion 2018

ios - 验证服务器是否符合 Apple 的 ATS/TLS 1.2 要求的最佳方式