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
What Is /dev/shm And Its Practical Usage
Viewed 8333 times since Tue, Mar 12, 2019
Linux Network (TCP) Performance Tuning with Sysctl
Viewed 11947 times since Fri, Aug 3, 2018
Linux LVM recovery
Viewed 18057 times since Wed, Jan 23, 2019
red hat 7 tmpfiles service
Viewed 2047 times since Thu, Oct 11, 2018
O’Reilly’s CD bookshelf
Viewed 13309 times since Wed, Jun 27, 2018
12 Tcpdump Commands – A Network Sniffer Tool
Viewed 8947 times since Fri, Jul 27, 2018
SPRAWDZONA KONFIGURACJA RSYSLOG I LOGROTATE, JAKO ZEWNĘTRZNEGO SERWERA SYSLOG
Viewed 4033 times since Fri, Nov 30, 2018
LVM: Reduce an existing Volume Group by removing one of its disks
Viewed 2683 times since Sat, Jun 2, 2018
8 Vim Tips And Tricks That Will Make You A Pro User
Viewed 3155 times since Fri, Apr 19, 2019
How log rotation works with logrotate
Viewed 5115 times since Fri, Nov 30, 2018