【发布时间】:2011-02-10 04:08:16
【问题描述】:
我需要使用私有 HTTPS API 并且客户端在主机上的证书不正确。 证书适用于 www.clienthost.com,我正在使用 api.clienthost.com。 所以我需要通过 HTTPS 连接到 api.clienthost.com 忽略不正确的证书,但仍然确保它是 www.clienthost.com 的证书而不是其他证书。 我找到了这个答案:How to use NSURLConnection to connect with SSL for an untrusted cert?,它似乎解决了我的一半问题,但我试图弄清楚如何仍然检查主机证书是我希望看到的并且没有什么不同。
【问题讨论】:
标签: iphone ssl https certificate