openssl¶
read certificate¶
remote host:
from file:
extract certificates¶
without SNI:
with SNI:
openssl s_client -servername example.com -connect example.com:443 2>/dev/null </dev/null | openssl x509 -outform pem
display public key size¶
openssl s_client -connect google.com:443 </dev/null 2>/dev/null | openssl x509 -text -noout | grep -i "public-key"
extract fingerprint¶
remove password / passphrase from certificate¶
display subject / common name¶
subject= /CN=foo.example.com