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
Method 2 – Use shell scripts How to install yum cron on a CentOS/RHEL 6.x/7.x
Viewed 5057 times since Tue, Dec 4, 2018
Modifying the inode count for an ext2/ext3/ext4 file system
Viewed 17520 times since Fri, Sep 18, 2020
systemd Auto-restart a crashed service in systemd
Viewed 4371 times since Fri, Jan 17, 2020
YUM CRON RHEL7: Configure automatic updates.
Viewed 2624 times since Fri, Oct 26, 2018
Set Up SSH Tunneling on a Linux / Unix / BSD Server To Bypass NAT
Viewed 12150 times since Fri, May 15, 2020
How to remove CTRL-M (^M) characters from a file in Linux
Viewed 3549 times since Thu, Feb 7, 2019
linux-training.be gives you books for free to study Linux
Viewed 5634 times since Sat, Jun 2, 2018
How to Clear RAM Memory Cache, Buffer and Swap Space on Linux
Viewed 4082 times since Mon, Nov 23, 2020
Linux Customizing Bash
Viewed 2981 times since Sun, Dec 6, 2020
Nagrywanie sesji SSH do pliku
Viewed 3612 times since Thu, May 24, 2018