【发布时间】:2018-09-04 21:49:21
【问题描述】:
我正在调用具有自签名 ssl 证书的端点,我已尝试将其添加到我的 info.plist 中
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
但我仍然无法访问我不断收到的端点
NSLocalizedDescription=The certificate for this server is invalid. You might be connecting to a server that is pretending to be “endpoint” which could put your confidential information at risk.
【问题讨论】:
-
我正在使用 Alamofire,如果您可以使用 Alamofire 提供解决方法...谢谢
标签: ios swift alamofire nsapptransportsecurity