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  -text

Who issued the cert?

$ openssl x509 -in -noout  -issuer

To whom was it issued?

$ openssl x509 -in -noout -subject

For what dates is it valid?

$ openssl x509 -in -noout -dates

The above, all at once

$ openssl x509 -in -issuer -noout -subject -dates

What is its hash value?

$ openssl x509 -in -noout -hash

What is its MD5 fingerprint?

$ openssl x509 -in  -noout  -fingerprint
0 (0)
Article Rating (No Votes)
Rate this article
There are no attachments for this article.
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
Linux - How to get IP and MAC address of ethernet adapter in Linux
Viewed 481 times since Fri, Jun 8, 2018
WatchDog script for checking server running
Viewed 1767 times since Tue, Jul 31, 2018
Viewed 1732 times since Sat, Jun 2, 2018
Terminal based "The Matrix" like implementation
Viewed 451 times since Thu, Apr 18, 2019
linux ssh Remotely Initiated Reverse SSH Tunnel
Viewed 123 times since Wed, Apr 22, 2020
How do I add ethtool settings to a network device permanently?
Viewed 1556 times since Mon, May 21, 2018
LUKS List available methods of encryption for LUKS
Viewed 501 times since Fri, Jul 13, 2018
How to Analyze or Read OS Watcher Output in three easy steps -- With Example ?
Viewed 3066 times since Thu, Jun 21, 2018
Securing /tmp and shm partitions
Viewed 109 times since Fri, May 15, 2020
Top 25 Best Linux Performance Monitoring and Debugging Tools
Viewed 1837 times since Sun, Sep 30, 2018