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
Top 10 darmowych i publicznych serwerów DNS
Viewed 3015 times since Tue, May 22, 2018
stunnel How To Encrypt Traffic to Redis with Stunnel on Ubuntu 16.04
Viewed 3007 times since Sun, Dec 6, 2020
RHEL: Rename a network interface on RHEL 7
Viewed 11869 times since Sat, Jun 2, 2018
RHEL: Getting/Setting hardware clock’s time
Viewed 4297 times since Sat, Jun 2, 2018
Installing and Configuring an OCFS2 Clustered File System
Viewed 6910 times since Sat, Jun 2, 2018
Set Up SSH Tunneling on a Linux / Unix / BSD Server To Bypass NAT
Viewed 12155 times since Fri, May 15, 2020
IPTABLES linux
Viewed 17892 times since Sat, Jun 2, 2018
FIO (Flexible I/O) – a benchmark tool for any operating system
Viewed 20537 times since Wed, Jul 25, 2018
LVM: Recovering Physical Volume Metadata
Viewed 14084 times since Sat, Jun 2, 2018
Understanding System auditing with auditd
Viewed 12120 times since Fri, Apr 5, 2019