Open SSL 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 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
0 (0)
Article Rating (No Votes)
Rate this article
Attachments
There are no attachments for this article.
Comments
There are no comments for this article. Be the first to post a comment.
Full Name
Email Address
Security Code Security Code
Related Articles RSS Feed
SSL HowTo: Decode CSR
Viewed 5086 times since Mon, Feb 18, 2019
Linux: how to monitor the nofile limit
Viewed 10744 times since Wed, Jul 25, 2018
Automatic YUM Updates with Yum-cron
Viewed 10694 times since Fri, Oct 26, 2018
Linux 20 Netstat Commands for Linux Network Management
Viewed 9715 times since Mon, Sep 21, 2020
6 easy steps to setup offline two factor authentication in Linux
Viewed 13183 times since Mon, Apr 6, 2020
Linux Find Large Files
Viewed 2986 times since Mon, Oct 29, 2018
LVM: Mount LVM Partition(s) in Rescue Mode
Viewed 4922 times since Sat, Jun 2, 2018
OCFS2 Cluster File System Setup Guide in Linux
Viewed 7316 times since Sat, Jun 2, 2018
How to find your System details using inxi
Viewed 3438 times since Sat, Jun 2, 2018
Top 25 Best Linux Performance Monitoring and Debugging Tools
Viewed 7103 times since Sun, Sep 30, 2018