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
20 IPtables Examples For New SysAdmins
Viewed 2779 times since Fri, May 15, 2020
Easily Find Bugs In Shell Scripts With ShellCheck
Viewed 3967 times since Thu, Apr 18, 2019
Linux Chage Command to Set Password Aging for User
Viewed 3168 times since Tue, Sep 11, 2018
Top 25 Best Linux Performance Monitoring and Debugging Tools
Viewed 7848 times since Sun, Sep 30, 2018
RHEL: Crash kernel dumps configuration and analysis on RHEL 5
Viewed 8153 times since Sat, Jun 2, 2018
Jak znaleźć najszybszy publiczny serwer DNS w Polsce?
Viewed 3720 times since Mon, May 21, 2018
LVM: Reduce SWAP size by removing a Logical Volume
Viewed 2640 times since Sat, Jun 2, 2018
RHEL: Reserved space on a ext2/ext3/ext4 filesystem
Viewed 5312 times since Sun, May 27, 2018
Prosty skaner portów TCP w bash
Viewed 3881 times since Thu, May 24, 2018
Linux - How to get Memory information
Viewed 2500 times since Fri, Jun 8, 2018