在我们的应用中,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}
我的问题是为什么连接在10.3中建立,即使服务器没有使用TLS 1.2。在ios 10.3更新中是否对ATS,TLS 1.2版强制或NSAllowLocalNetworking有任何更改