以检测苹果的官方网站为例:
在终端输入:
/usr/bin/nscurl --ats--diagnostics --verbose https://apple.com
即可得到各种方式传输的成功与否:PASS/FALL
注:
1. TLS 1.2 protocol is a way of transforming information that even if the password compromised somehow, it would still be impossible to decrypt the package copied in the past.
So, in short, it’s an encryption that can’t be decrypt in the future.
- HTTPS with PFS
- only protocol allowed by default
运行结果
HudsonJoe-PC:~ HudsonJoe$ /usr/bin/nscurl --ats-diagnostics --verbose https://apple.com
Starting ATS Diagnostics
Configuring ATS Info.plist keys and displaying the result of HTTPS loads to https://apple.com.
A test will "PASS" if URLSession:task:didCompleteWithError: returns a nil error.
================================================================================
Default ATS Secure Connection
---
ATS Default Connection
ATS Dictionary:
{
}
Result : PASS
---
==============&