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
Understanding System auditing with auditd
Viewed 10171 times since Fri, Apr 5, 2019
Yum Update: DB_RUNRECOVERY Fatal error, run database recovery
Viewed 4244 times since Fri, Jan 17, 2020
RHEL: Displaying system info (firmware, serial numbers... )
Viewed 12244 times since Sun, May 27, 2018
How to encrypt a partition with DM-Crypt LUKS on Linux
Viewed 8360 times since Fri, Jul 13, 2018
A Quick and Practical Reference for tcpdump
Viewed 12653 times since Fri, Jul 27, 2018
Check Detailed CPU Information In Linux With CoreFreq [Advanced]
Viewed 2539 times since Thu, Apr 18, 2019
Split and Reassemble files
Viewed 3626 times since Mon, May 28, 2018
logrotate Log Rotate Configuration
Viewed 3317 times since Sun, Jan 12, 2020
What is yum-cron ?
Viewed 2817 times since Fri, Oct 26, 2018
RHCS6: Luci - the cluster management console
Viewed 3352 times since Sun, Jun 3, 2018