本文介绍了在Mac OS和Windows操作系统上使用openssl工具检查支持的SSL/TLS版本和密码套件的方法。
SSL/TLS是一种重要的加密协议,用于确保网络通信的安全性。在Mac OS和Windows操作系统上,您可以使用openssl工具来检查系统支持的SSL/TLS版本和密码套件。
在Windows上可以使用Git bash(每个程序员都会安装Git)自带的openssl工具检查支持的SSL/TLS版本和Cipher Suite.
显示系统支持的SSL/TLS版本
openssl ciphers -v | awk '{print $2}' | sort | uniq
这个命令将显示系统支持的SSL/TLS版本。
列出系统支持的密码套件
openssl ciphers -v | column -t
这个命令将列出系统支持的密码套件。
检查远程服务器支持的SSL/TLS版本
openssl s_client -connect www.bing.com:443 -tls1_2