How to check certification expiration date from command line
Jump to navigation
Jump to search
openssl s_client -servername <NAME> -connect <HOST:PORT> 2>/dev/null | openssl x509 -noout -dates
CONNECTED(00000003)
openssl x509 -noout -dates -in /tmp/ca.cert notBefore=Nov 10 19:45:26 2022 GMT notAfter=Nov 7 19:45:26 2032 GMT
Related[edit]
openssl s_client -connect your_example.com
openssl x509 -noout -subject
See also[edit]
openssl x509
[-inform | -text | -dates | -subject
|--help
]openssl
[rand | s_client | passwd
|openssl req
|openssl rsa
|openssl genrsa
|openssl x509
|openssl ca
|openssl verify
|openssl ec
|openssl dgst
|openssl pkcs12
|openssl asn1parse
|openssl help
|.cer to .pem, openssl version
Advertising: