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
bash mistakes This page is a compilation of common mistakes made by bash users. Each example is flawed in some way.
Viewed 8755 times since Sun, Dec 6, 2020
List DNS records, nameservers of a domain from command line
Viewed 1688 times since Sun, Sep 30, 2018
RHEL: Checking HBAs
Viewed 14215 times since Sun, May 27, 2018
Netcat shell zabezpieczony hasłem
Viewed 1910 times since Thu, May 24, 2018
Check Detailed CPU Information In Linux With CoreFreq [Advanced]
Viewed 2030 times since Thu, Apr 18, 2019
stunnel: Authentication
Viewed 8935 times since Fri, Sep 28, 2018
Linux - How to monitor memory usage
Viewed 2641 times since Fri, Jun 8, 2018
RHCS6: Luci - the cluster management console
Viewed 2913 times since Sun, Jun 3, 2018
RHCS: Install a two-node basic cluster
Viewed 9739 times since Sun, Jun 3, 2018
ZPOOL: Create a new zpool for zfs filesystems
Viewed 1802 times since Sun, Jun 3, 2018