Open SSL HowTo: Decode SSL Certificate
Article Number: 497 | Rating: Unrated | Last Updated: Mon, Feb 18, 2019 4:49 PM
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 shellhacks.com.crt -text
Who issued the cert?
$ openssl x509 -in shellhacks.com.crt -noout -issuer
To whom was it issued?
$ openssl x509 -in shellhacks.com.crt -noout -subject
For what dates is it valid?
$ openssl x509 -in shellhacks.com.crt -noout -dates
The above, all at once
$ openssl x509 -in shellhacks.com.crt -issuer -noout -subject -dates
What is its hash value?
$ openssl x509 -in shellhacks.com.crt -noout -hash
What is its MD5 fingerprint?
$ openssl x509 -in shellhacks.com.crt -noout -fingerprint