0

在我们的应用程序中启用了 ATS,并且我们正在使用未使用 TLS 1.2的服务器。

在 ios 10.1 和 10.2 中尝试连接此服务器时,连接失败并出现以下错误。

在 iOS 10.3 中没有观察到。连接正常建立

-(void) connection:(NSURLConnection *)aConnection didFailWithError:(NSError *)aError 

错误

Error: Error Domain=NSURLErrorDomain Code=-1200 "An SSL error has occurred and a secure connection to the server cannot be made." UserInfo={_kCFStreamErrorCodeKey=-9801, NSLocalizedRecoverySuggestion=Would you like to connect to the server anyway?, NSUnderlyingError=0x170649ed0
{Error Domain=kCFErrorDomainCFNetwork Code=-1200 "An SSL error has occurred and a secure connection to the server cannot be made." UserInfo={NSErrorFailingURLStringKey=https://************, NSLocalizedRecoverySuggestion=Would you like to connect to the server anyway?,
_kCFNetworkCFStreamSSLErrorOriginalValue=-9801, _kCFStreamPropertySSLClientCertificateState=0, NSLocalizedDescription=An SSL error has occurred and a secure connection to the server cannot be made., _kCFStreamErrorDomainKey=3,
NSErrorFailingURLKey=https://****************, _kCFStreamErrorCodeKey=-9801}}, NSLocalizedDescription=An SSL error has occurred and a secure connection to the server cannot be made., NSErrorFailingURLKey=https://*************, NSErrorFailingURLStringKey=https://**************, _kCFStreamErrorDomainKey=3}

我的问题是为什么即使服务器没有使用 TLS 1.2 也在 10.3 中建立连接。ios 10.3 更新中的 ATS、TLS 版本 1.2 或 NSAllowLocalNetworking 是否有任何更改

4

0 回答 0