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
How to encrypt a partition with DM-Crypt LUKS on Linux
Viewed 8393 times since Fri, Jul 13, 2018
20 Linux YUM (Yellowdog Updater, Modified) Commands for Package Management YUM
Viewed 11500 times since Thu, Oct 25, 2018
Linux Screen
Viewed 2210 times since Sat, Jun 2, 2018
How to create a Systemd service in Linux
Viewed 3190 times since Mon, Dec 7, 2020
A Quick and Practical Reference for tcpdump
Viewed 12697 times since Fri, Jul 27, 2018
Linux - How to perform I/O performance test with dd command
Viewed 6252 times since Fri, Jun 8, 2018
Lsyncd: live file syncronization across multiple Linux servers
Viewed 7254 times since Wed, Oct 31, 2018
watchdog How to restart a process out of crontab on a Linux/Unix
Viewed 6216 times since Tue, Jul 31, 2018
How To Ping Specific Port Number
Viewed 4704 times since Mon, Jun 1, 2020
30 Handy Bash Shell Aliases For Linux / Unix / MacOS
Viewed 5105 times since Thu, Feb 11, 2021