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
Fix rpmdb: Thread died in Berkeley DB library
Viewed 21192 times since Fri, Feb 14, 2020
Netcat shell zabezpieczony hasłem
Viewed 2315 times since Thu, May 24, 2018
HowTo: Create CSR using OpenSSL Without Prompt (Non-Interactive)
Viewed 14180 times since Mon, Feb 18, 2019
RHEL: Change system’s hostname
Viewed 3606 times since Sun, May 27, 2018
Installing and Configuring stunnel on CentOS 6
Viewed 4176 times since Fri, Sep 28, 2018
SSL HowTo: Decode CSR
Viewed 5102 times since Mon, Feb 18, 2019
How to Register and Enable Red Hat Subscription, Repositories and Updates for RHEL 7.0 Server
Viewed 12909 times since Mon, Oct 29, 2018
How To Add Swap Space on Ubuntu 16.04
Viewed 2413 times since Fri, Jun 8, 2018
RHCS6: Reduce a Global Filesystem 2 (GFS2)
Viewed 3477 times since Sun, Jun 3, 2018
Linux – Securing your important files with XFS extendend attributes
Viewed 7608 times since Wed, Jul 25, 2018
Recently Viewed
RHEL: Multipathing basics