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 create a Systemd service in Linux
Viewed 2715 times since Mon, Dec 7, 2020
RHEL: Change system’s hostname
Viewed 3325 times since Sun, May 27, 2018
Manage Linux Password Expiration and Aging Using chage
Viewed 4452 times since Tue, Sep 11, 2018
Manage SSH Key File With Passphrase
Viewed 2149 times since Tue, Mar 5, 2019
KONTO SFTP Z CHROOTEM Z UŻYCIEM OPENSSH-SERVER NA CENTOS/RHEL6
Viewed 1706 times since Fri, Nov 30, 2018
Modifying the inode count for an ext2/ext3/ext4 file system
Viewed 14778 times since Fri, Sep 18, 2020
How to run command or code in parallel in bash shell under Linux or Unix
Viewed 3054 times since Tue, Aug 6, 2019
Linux File Systems (mkfs, mount, fstab) ext4
Viewed 3058 times since Sat, Jun 2, 2018
Red Hat Cluster Tutorial
Viewed 1942 times since Sun, Jun 3, 2018
Script to Offline and Remove A Disk In Linux
Viewed 1840 times since Mon, Jan 28, 2019