SSL 证书查看

Catalogue
  1. 1. 查看服务器 SSL 证书详情
  2. 2. 查询证书
  3. 3. 查看 SSL

查看服务器 SSL 证书详情

1
echo | openssl s_client -showcerts -servername <SERVER_NAME> -connect <ADDRESS> 2>/dev/null | openssl x509 -inform pem -noout -text

查询证书

1
openssl x509 -in <INPUT.pem> -noout -text

查看 SSL

参考 https://security.stackexchange.com/questions/16085/how-to-get-public-key-of-a-secure-webpage?

1
openssl s_client -connect the.host.name:443 | openssl x509 -pubkey -noout