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
How to stop and disable auditd on RHEL 7
Viewed 41531 times since Tue, Aug 6, 2019
LVM: Managing snapshots
Viewed 8276 times since Sat, Jun 2, 2018
10 nmap Commands Every Sysadmin Should Know
Viewed 10583 times since Wed, May 22, 2019
How to Clear RAM Memory Cache, Buffer and Swap Space on Linux
Viewed 3508 times since Mon, Nov 23, 2020
Turbocharge PuTTY with 12 Powerful Add-Ons – Software for Geeks #3
Viewed 15366 times since Sun, Sep 30, 2018
systemd Auto-restart a crashed service in systemd
Viewed 3892 times since Fri, Jan 17, 2020
Improve security with polyinstantiation
Viewed 14030 times since Fri, May 15, 2020
RHEL: Crash kernel dumps configuration and analysis on RHEL 7
Viewed 7784 times since Sat, Jun 2, 2018
Configuring VLAN interfaces in Linux
Viewed 6448 times since Mon, May 21, 2018
RHEL: Getting/Setting hardware clock’s time
Viewed 3867 times since Sat, Jun 2, 2018