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
SYS: Configure a local repository. local repo
Viewed 616 times since Mon, Oct 29, 2018
Linux ssh Hide OpenSSH Version Banner
Viewed 156 times since Wed, Apr 22, 2020
How to use yum command on CentOS/RHEL
Viewed 1045 times since Wed, Oct 17, 2018
Szybkie sprawdzenie zewnętrznego adresu IP i hosta
Viewed 830 times since Thu, May 24, 2018
A Quick and Practical Reference for tcpdump
Viewed 1645 times since Fri, Jul 27, 2018
Script to Offline and Remove A Disk In Linux
Viewed 414 times since Mon, Jan 28, 2019
How to use yum-cron to automatically update RHEL/CentOS Linux 6.x / 7.x
Viewed 1181 times since Tue, Dec 4, 2018
How To Find Largest Top 10 Files and Directories On Linux / UNIX / BSD find
Viewed 429 times since Mon, Oct 29, 2018
Linux - How to shutdown or reboot
Viewed 441 times since Fri, Jun 8, 2018
RHEL: What is "SysRq key" and how to use it
Viewed 1282 times since Sat, Jun 2, 2018