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
Secure NTP with NTS
Viewed 10031 times since Sun, Dec 6, 2020
SYS: Configure a local repository. local repo
Viewed 12199 times since Mon, Oct 29, 2018
LVM: Remove an existing Volume Group
Viewed 6512 times since Sat, Jun 2, 2018
How to create stunnel with systemd? stunnel
Viewed 12135 times since Thu, Jan 16, 2020
RHEL: Services basic management - systemd
Viewed 20373 times since Sat, Jun 2, 2018
Enabling automatic updates in Centos 7 and RHEL 7
Viewed 3556 times since Wed, Oct 17, 2018
socat: Linux / UNIX TCP Port Forwarder
Viewed 11287 times since Tue, Aug 6, 2019
stunnel Howto A Guide to create SSL access to a HTTP-only webserver with stunnel
Viewed 3773 times since Fri, Sep 28, 2018
logrotate How log rotation works with logrotate
Viewed 10300 times since Sun, Jan 12, 2020
Linux get the list of FC HBA’s and WWPN
Viewed 4868 times since Tue, May 22, 2018