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
HP-UX - Stunnel Configuration
Viewed 2196 times since Fri, Sep 28, 2018
Using etckeeper with git
Viewed 6528 times since Sun, Jun 3, 2018
Top 20 OpenSSH Server Best Security Practices - good article
Viewed 10220 times since Mon, Oct 1, 2018
YUM CRON RHEL7: Configure automatic updates.
Viewed 1783 times since Fri, Oct 26, 2018
How to accurately determine when the system was booted
Viewed 2114 times since Wed, Oct 3, 2018
What Is /dev/shm And Its Practical Usage
Viewed 7641 times since Tue, Mar 12, 2019
Nagrywanie sesji SSH do pliku
Viewed 2707 times since Thu, May 24, 2018
15 Linux Yum Command Examples – Install, Uninstall, Update Packages
Viewed 2990 times since Thu, Oct 25, 2018
Manage SSH Key File With Passphrase
Viewed 2049 times since Tue, Mar 5, 2019
socat: Linux / UNIX TCP Port Forwarder
Viewed 9151 times since Tue, Aug 6, 2019