技术文档

使用nscurl测试服务器是否支持Apple ATS – HTTPS SSL 教程

NSCURL检测输出(需要使用Mac操作系统)>/usr/bin/nscurl--ats-diagnosticshttps://apple.com StartingATSDiagnostics ConfiguringATSInfo.plistkeysanddisplayingtheresultofHTTPSloadstohttps://apple.com. Atestwill"PASS"ifURLSession:task:didCompleteWithError:returnsanilerror. Use'--verbose'toviewtheATSdictionariesusedandtodisplaytheerrorreceivedinURLSession:task:didCompleteWithError:. ================================================================================ DefaultATSSecureConnection --- ATSDefaultConnection 2015-09-0909:53:01.592nscurl[9207:5187047]CFNetworkSSLHandshakefailed(-9824) 2015-09-0909:53:01.593nscurl[9207:5187047]NSURLSession/NSURLConnectionHTTPloadfailed(kCFStreamErrorDomainSSL,-9824) Result:FAIL --- ================================================================================ AllowingArbitraryLoads --- AllowAllLoads Result:PASS --- ================================================================================ ConfiguringTLSexceptionsforapple.com --- TLSv1.2 2015-09-0909:53:02.145nscurl[9207:5187047]CFNetworkSSLHandshakefailed(-9824) 2015-09-0909:53:02.146nscurl[9207:5187047]NSURLSession/NSURLConnectionHTTPloadfailed(kCFStreamErrorDomainSSL,-9824) Result:FAIL --- --- TLSv1.1 2015-09-0909:53:02.270nscurl[9207:5187047]CFNetworkSSLHandshakefailed(-9824) 2015-09-0909:53:02.271nscurl[9207:5187047]NSURLSession/NSURLConnectionHTTPloadfailed(kCFStreamErrorDomainSSL,-9824) Result:FAIL --- --- TLSv1.0 2015-09-0909:53:02.407nscurl[9207:5187047]CFNetworkSSLHandshakefailed(-9824) 2015-09-0909:53:02.408nscurl[9207:5187047]NSURLSession/NSURLConnectionHTTPloadfailed(kCFStreamErrorDomainSSL,-9824) Result:FAIL --- ================================================================================ ConfiguringPFSexceptionsforapple.com

使用nscurl测试服务器是否支持Apple ATS – HTTPS SSL 教程

 

显示详细的错误信息

>/usr/bin/nscurl--ats-diagnostics--verbosehttps://apple.com StartingATSDiagnostics … ConfiguringPFSexceptionsandallowinginsecureHTTPforapple.com --- DisablingPerfectForwardSecrecyandAllowingInsecureHTTP ATSDictionary: { NSExceptionDomains={ "apple.com"={ NSExceptionAllowsInsecureHTTPLoads=YES; NSExceptionRequiresForwardSecrecy=NO; }; }; } Result:FAIL Error:ErrorDomain=NSURLErrorDomainCode=-1022"TheresourcecouldnotbeloadedbecausetheAppTransportSecuritypolicyrequirestheuseofasecureconnection."UserInfo={NSUnderlyingError=0x7fc6a9d11900{ErrorDomain=kCFErrorDomainCFNetworkCode=-1022"(null)"},NSErrorFailingURLStringKey=http://www.apple.com/apple-events/september-2015/,NSErrorFailingURLKey=http://www.apple.com/apple-events/september-2015/,NSLocalizedDescription=TheresourcecouldnotbeloadedbecausetheAppTransportSecuritypolicyrequirestheuseofasecureconnection.} --- …

 

 

©2020-2024   万云SSL证书  (www.sslssl.com.cn)  万云科技   豫ICP备2020034358号-10