查看openssl版本
openssl version
查看openssl支持哪些ciphers
openssl ciphers
验证服务端是否支持指定的cipher
openssl s_client -connect www.baidu.com:443 -tls1_2 -cipher ECDHE-ECDSA-AES128-GCM-SHA256
- -tls1_2用于指定tls版本
- 返回结果中包含以下内容则表示支持
SSL-Session:
Protocol : TLSv1.2
Cipher : ECDHE-RSA-AES128-GCM-SHA256
Session-ID: E5BDD1D250ED101D210CF98EE0D02CE1BD7963E201A0D6FD59B1226566AF3C8B
Session-ID-ctx:
Master-Key: 1EB5803647F7C2074B5FFFD3941A07E91F04B41FC6D684E64A32E967D44485ED4A7AC5082089BB917D3DA787F4604741
PSK identity: None
PSK identity hint: None
SRP username: None
...