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
RHCS6: Install a two-node basic cluster
Viewed 4086 times since Sun, Jun 3, 2018
ZFS: Verify/change properties of a zfs filesystem
Viewed 3262 times since Sun, Jun 3, 2018
Linux 20 Netstat Commands for Linux Network Management
Viewed 10284 times since Mon, Sep 21, 2020
Using renice and taskset to manage process priority and CPU affinity with Linux OEL 6.4
Viewed 4347 times since Mon, Feb 17, 2020
Split and Reassemble files
Viewed 4089 times since Mon, May 28, 2018
Linux nslookup Command Examples for DNS Lookup
Viewed 9705 times since Sat, Sep 29, 2018
Find All Large Files On A Linux System
Viewed 2847 times since Mon, Oct 29, 2018
RHEL: Manually encrypting a filesystem with LUKS
Viewed 4555 times since Sun, May 27, 2018
How to find your System details using inxi
Viewed 4137 times since Sat, Jun 2, 2018
Linux Cluster Tutorial
Viewed 2738 times since Sat, Sep 29, 2018