Thursday, March 21, 2013

Commands to Check SSL cert’s validity and other details


1. Get complete available details of an SSL certificate

openssl x509 -text -in ssl.cert

2. Who issued the certificate?

openssl x509 -noout -in ssl.cert -issuer

3. To whom the certificate was issued?

openssl x509 -noout -in ssl.cert -subject

4. To check the expiry date of SSL certificate

openssl x509 -noout -in ssl.cert -dates

5. To get SSL cert’s hash value

openssl x509 -noout -in ssl.cert -hash

6. To get SSL cert’s MD5 fingerprint

openssl x509 -noout -in ssl.cert -fingerprint

To check CSR: openssl req -noout -text -in new.csr
To check key: openssl rsa -noout -text -in new.key

No comments:

Post a Comment