How to test if a remote server support tls1.2 on Mac OS

I have googled and find,

the command:

openssl s_client -connect -tls1_2

does not work on MacOS because of "unknown option -tls1_2" error.


You could use curl to test it. I believe curl is installed with command line tools on OS X.

$ curl --tlsv1.2 --verbose
*   Trying
* Connected to ( port 443 (#0)
* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA
* Server certificate: *
* Server certificate: Google Internet Authority G2
* Server certificate: GeoTrust Global CA
> GET / HTTP/1.1
> Host:
> User-Agent: curl/7.43.0
> Accept: */*