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
How to schedule crontab in Unix Operating Systems
Viewed 1904 times since Fri, Jun 8, 2018
RHEL: Reinstalling Boot Loader on the Master Boot Record (MBR)
Viewed 3265 times since Sun, May 27, 2018
SSH ProxyCommand example: Going through one host to reach another server
Viewed 13506 times since Tue, Aug 6, 2019
Linux: how to monitor the nofile limit
Viewed 10576 times since Wed, Jul 25, 2018
Monitoring bezpieczeństwa Linux: integracja auditd + OSSEC cz. I
Viewed 2396 times since Fri, Apr 5, 2019
Linux Customizing Bash
Viewed 2058 times since Sun, Dec 6, 2020
Watchdog script to keep an application running
Viewed 18468 times since Tue, Jul 31, 2018
LVM: Reduce SWAP size by shrinking existing Logical Volume
Viewed 6118 times since Sat, Jun 2, 2018
How to Migrate from RHEL 8 to CentOS 8
Viewed 2910 times since Fri, May 15, 2020
RHEL: Services basic management - systemd
Viewed 18580 times since Sat, Jun 2, 2018