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
OEL 7 – How to disable IPv6 on Oracle Linux 7 – Follow Up
Viewed 9561 times since Wed, Jul 25, 2018
RHEL: Extending the maximum inode count on a ext2/ext3/ext4 filesystem
Viewed 3353 times since Sun, May 27, 2018
Linux Kernel /etc/sysctl.conf Security Hardening
Viewed 23616 times since Fri, Aug 3, 2018
Turbocharge PuTTY with 12 Powerful Add-Ons – Software for Geeks #3
Viewed 14754 times since Sun, Sep 30, 2018
Check a Website Availability from the Linux Command Line
Viewed 6738 times since Mon, Feb 18, 2019
LVM: Extend SWAP size by adding a new Logical Volume
Viewed 3239 times since Sat, Jun 2, 2018
How to deal with dmesg timestamps
Viewed 3576 times since Wed, Oct 3, 2018
ZFS: Remove an existing zfs filesystem
Viewed 2194 times since Sun, Jun 3, 2018
Extending Linux LVM partitions - scripts
Viewed 6613 times since Sun, May 20, 2018
Using stunnel and TinyProxy to obfuscate HTTP traffic
Viewed 7063 times since Fri, Sep 28, 2018