SSL iOS9 SSLHandshake failed. I checked with openssl & my server works with tls 1.2V

99封情书 提交于 2019-12-12 08:09:00

问题


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)

回答1:


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 

I manage to workaround setting in plist NSAppTransportSecurity NSExceptionRequiresForwardSecrecy = NO



来源:https://stackoverflow.com/questions/31820284/ssl-ios9-sslhandshake-failed-i-checked-with-openssl-my-server-works-with-tls

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!