iOS 11和SSL SNI支持

时间:2018-06-21 15:47:34

标签: ios ssl sni

是否需要做一些特殊的事情才能使SSL SNI在iOS上运行?我们有一些使用CURL的通用代码可在我们的Android端而不是在iOS端使用。我们收到https错误。

SSL Connect Error

无法从通话/获取,状态为0等更多信息。

是否需要添加一些特殊的PLIST项以支持SSL SNI?

----添加----

我们正在为此使用AWS Cloud Front,并正在研究所有版本的确切版本

----添加-----

详细输出

*   Trying xx.xx.xx.xxx...
* TCP_NODELAY set
* Connected to xx.xx.com (xx.xx.xx.xxx) port 443 (#0)
* SSL peer handshake failed, the server most likely requires a client certificate to connect
* Curl_http_done: called premature == 1
* Closing connection 0

这是Android也在使用并且运行正常的常见代码。

我们也将其设置为测试

curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);

0 个答案:

没有答案