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
A Simple Guide to Oracle Cluster File System (OCFS2) using iSCSI on Oracle Cloud Infrastructure
Viewed 8628 times since Sat, Jun 2, 2018
30 Handy Bash Shell Aliases For Linux / Unix / MacOS
Viewed 5022 times since Thu, Feb 11, 2021
high swap space utilization in LINUX
Viewed 6683 times since Fri, Jul 13, 2018
RHEL: Retrieve and generate a unique SCSI identifier
Viewed 3272 times since Sat, Jun 2, 2018
PROCESSOR AND MEMORY INFORMATION
Viewed 5731 times since Sat, Jun 2, 2018
How To: Create Self-Signed Certificate – OpenSSL
Viewed 3155 times since Mon, Feb 18, 2019
Linux – delete the LUN and remove traces from OS
Viewed 3791 times since Tue, May 22, 2018
Kernel sysctl configuration file for Linux
Viewed 5413 times since Fri, Aug 3, 2018
Tip: SSD and Linux. Enable TRIM and check if it works
Viewed 17231 times since Fri, May 15, 2020
ubuntu How to Reset Forgotten Passwords in Ubuntu 16.04
Viewed 3625 times since Tue, Dec 8, 2020