HowTo : Decode SSL Certificate

Waht is an SSL Certificate? SSL Certificate provides security for your website by encrypting communications between the server and the person visiting the website.

It contains information about your Organization and Certificate Authority. It also contains the public key.

Run these OpenSSL commands, to decode your SSL Certificate, and verify that it contains the correct information.

Extract information from the SSL Certificate

$ openssl x509 -in -text
Who issued the cert?
$ openssl x509 -in -noout -issuer
To whom was it issued?
$ openssl x509 -in -noout -subject
For what dates is it valid?
$ openssl x509 -in -noout -dates
The above, all at once
$ openssl x509 -in -issuer -noout -subject -dates
What is its hash value?
$ openssl x509 -in -noout -hash
What is its MD5 fingerprint?
$ openssl x509 -in -noout -fingerprint