【发布时间】:2018-04-03 18:55:16
【问题描述】:
一个 https 服务器使用非安全 SSL 证书托管,但如果我尝试使用 NSURLSession 从 iOS 进行 Web 服务调用,则它返回 SUCCESS 消息(http status code 200)并带有一个警告,
challenge : <NSURLProtectionSpace: 0x60000000e050>: Host:ucsmv2012.xx.xxxxx.com, Server:https, Auth-Scheme:NSURLAuthenticationMethodServerTrust, Realm:(null), Port:7002, Proxy:NO, Proxy-Type:(null)
如果我尝试在浏览器中访问 URL,我会收到隐私错误消息,
如果证书不安全,有没有办法限制 API 调用?
【问题讨论】:
标签: ios web-services ssl ssl-certificate