SSL iOS9 SSLHandshake失败。我检查了openssl&我的服务器使用tls 1.2V [英] SSL iOS9 SSLHandshake failed. I checked with openssl & my server works with tls 1.2V

查看:225
本文介绍了SSL iOS9 SSLHandshake失败。我检查了openssl&我的服务器使用tls 1.2V的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在iOS9中从我的应用中收到这些错误。
它在iOS8上运行良好。
我的服务器正在使用tls v1.2。所以,我不知道问题出在哪里。

Im getting these errors from my app in iOS9. It works great on iOS8. My server is using tls v1.2. So, I dont know where is the problem.

2015-08-04 16:52:24.319 Entumano[676:59469] CFNetwork SSLHandshake failed (-9824)
2015-08-04 16:52:24.324 Entumano[676:59469] NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9824)


推荐答案

我得到了答案。在我读的所有帖子中,他们都在谈论tls版本。但是苹果它也验证你的ssl有这个密码:

I got the answer. In all post i read they were talking about tls version. BUT apple it's also validating that your ssl have this ciphers:

TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384
TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA
TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256
TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA
TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384
TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256
TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA 

我设法解决plist中的设置NSAppTransportSecurity NSExceptionRequiresForwardSecrecy = NO

I manage to workaround setting in plist NSAppTransportSecurity NSExceptionRequiresForwardSecrecy = NO

这篇关于SSL iOS9 SSLHandshake失败。我检查了openssl&我的服务器使用tls 1.2V的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆