SSL HowTo: Decode CSR

A Certificate Authority will use a CSR to create your SSL certificate.

What is a CSR? A CSR or ‘Certificate Signing Request’ is a block of encrypted text, that is generated on the server that the certificate will be used on.

It contains information that will be included in your certificate, such as your organization name, common name (domain name), locality, and country. It also contains the public key that will be included in your certificate.

Run these OpenSSL commands, to decode your Certificate Signing Request, and verify that it contains the correct information.

Extract information from the CSR

$ openssl req -in shellhacks.com.csr -text -noout

Verify the signature

$ openssl req -in shellhacks.com.csr -noout -verify

Whom the certificate will be issued to?

$ openssl req -in shellhacks.com.csr -noout -subject

Show the public key

$ openssl req -in shellhacks.com.csr -noout -pubkey
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
RHEL: Crash kernel dumps configuration and analysis on RHEL 6
Viewed 2444 times since Sat, Jun 2, 2018
Using renice and taskset to manage process priority and CPU affinity with Linux OEL 6.4
Viewed 1579 times since Mon, Feb 17, 2020
3 Ways to Check Linux Kernel Version in Command Line
Viewed 9488 times since Fri, Apr 19, 2019
How To Set Up an SSL Tunnel Using Stunnel on Ubuntu
Viewed 1982 times since Fri, Sep 28, 2018
HowTo: Create CSR using OpenSSL Without Prompt (Non-Interactive)
Viewed 11551 times since Mon, Feb 18, 2019
RHEL: Back-up/Replicate a partition table
Viewed 1793 times since Sun, May 27, 2018
How to encrypt a partition with DM-Crypt LUKS on Linux
Viewed 1157 times since Fri, Jul 13, 2018
How To Find Largest Top 10 Files and Directories On Linux / UNIX / BSD find
Viewed 1103 times since Mon, Oct 29, 2018
RHEL: Extending a vmdk (Virtual Machine disk)
Viewed 2244 times since Sun, May 27, 2018
RHCS6: Extend an existing Logical Volume / GFS2 filesystem
Viewed 1648 times since Sun, Jun 3, 2018