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
Inxi: Find System And Hardware Information On Linux
Viewed 3318 times since Sat, Jun 2, 2018
Używanie rsync poprzez Secure Shell
Viewed 42177 times since Thu, May 24, 2018
LVM: Reduce an existing Volume Group by removing one of its disks
Viewed 3254 times since Sat, Jun 2, 2018
RHEL: Reserved space on a ext2/ext3/ext4 filesystem
Viewed 5820 times since Sun, May 27, 2018
Linux - How to get IP and MAC address of ethernet adapter in Linux
Viewed 3654 times since Fri, Jun 8, 2018
logrotate Log Rotate Configuration
Viewed 4182 times since Sun, Jan 12, 2020
LVM: Reduce an existing Logical Volume / Filesystem
Viewed 4438 times since Sat, Jun 2, 2018
ZFS: Grow/Shrink an existing zfs filesystem
Viewed 7432 times since Sun, Jun 3, 2018
RHEL: Scan and configure new SAN (fibre channel) LUNs
Viewed 9939 times since Sun, May 27, 2018
Linux File Systems (mkfs, mount, fstab) ext4
Viewed 4244 times since Sat, Jun 2, 2018