Created
January 6, 2015 16:23
-
-
Save tuxfight3r/84f10dcc0a0a73fd366d to your computer and use it in GitHub Desktop.
openssl certificate expiry date
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#get certificate issuer/expiry date | |
$echo | openssl s_client -connect google.com:443 2>/dev/null | openssl x509 -noout -issuer -subject -dates | |
issuer= /C=US/O=Google Inc/CN=Google Internet Authority G2 | |
subject= /C=US/ST=California/L=Mountain View/O=Google Inc/CN=*.google.com | |
notBefore=Dec 11 12:49:14 2013 GMT | |
notAfter=Apr 10 00:00:00 2014 GMT | |
# Hash value | |
$ echo | openssl s_client -connect google.com:443 2>/dev/null | openssl x509 -noout -hash | |
a18bd28a | |
#MD5 fingerprint | |
$ echo | openssl s_client -connect google.com:443 2>/dev/null | openssl x509 -noout -fingerprint | |
SHA1 Fingerprint=AD:3C:56:FB:E8:C0:62:B0:FF:89:21:52:98:B1:A1:D4:94:A4:1C:84 | |
#Extract all information from an SSL certificate | |
$ echo | openssl s_client -connect google.com:443 2>/dev/null | openssl x509 -noout -text |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment