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
RHEL: XFS basic operations
Viewed 1902 times since Sat, Jun 2, 2018
RHEL: How to change a USER/GROUP UID/GID and all owned files
Viewed 6273 times since Sat, Jun 2, 2018
Increase A VMware Disk Size (VMDK) Formatted As Linux LVM without rebooting
Viewed 5705 times since Wed, May 30, 2018
Linux ssh Hide OpenSSH Version Banner
Viewed 3163 times since Wed, Apr 22, 2020
RHEL: Enabling standard ftp/telnet
Viewed 1391 times since Sun, May 27, 2018
Check Detailed CPU Information In Linux With CoreFreq [Advanced]
Viewed 929 times since Thu, Apr 18, 2019
FIO (Flexible I/O) – a benchmark tool for any operating system
Viewed 862 times since Wed, Jul 25, 2018
Linux Customizing Bash
Viewed 237 times since Sun, Dec 6, 2020
Linux - How to get network speed and statistic of ethernet adapter in Linux
Viewed 784 times since Fri, Jun 8, 2018
stunnel How To Encrypt Traffic to Redis with Stunnel on Ubuntu 16.04
Viewed 219 times since Sun, Dec 6, 2020