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
LVM: Remove a Filesystem / Logical Volume
Viewed 2293 times since Sat, Jun 2, 2018
HowTo: Send Email from an SMTP Server using the Command Line
Viewed 1590 times since Mon, Feb 18, 2019
Jak ustawić LVM, jak robić snapshoty oraz automatycznie powiększać LV, czyli małe howto
Viewed 4214 times since Sun, May 20, 2018
RHEL: Services basic management - chkconfig
Viewed 5195 times since Sat, Jun 2, 2018
Linux - How to get CPU information
Viewed 1724 times since Fri, Jun 8, 2018
RHCS6: Debug and test multicast traffic between two hosts
Viewed 6242 times since Sun, Jun 3, 2018
How to enable Proxy Settings for Yum Command on RHEL / CentOS Servers
Viewed 11710 times since Thu, Jul 19, 2018
Using stunnel and TinyProxy to obfuscate HTTP traffic
Viewed 6257 times since Fri, Sep 28, 2018
10 Linux nslookup Command Examples for DNS Lookup
Viewed 9894 times since Sun, Sep 30, 2018
Linux Network (TCP) Performance Tuning with Sysctl
Viewed 10821 times since Fri, Aug 3, 2018