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
Understanding System auditing with auditd
Viewed 12835 times since Fri, Apr 5, 2019
LVM: Reduce SWAP size by removing a Logical Volume
Viewed 3591 times since Sat, Jun 2, 2018
Linux Add a Swap File – HowTo
Viewed 11155 times since Fri, Jun 8, 2018
Linux - How to get IP and MAC address of ethernet adapter in Linux
Viewed 3711 times since Fri, Jun 8, 2018
Linux Screen
Viewed 2949 times since Sat, Jun 2, 2018
“Too many authentication failures” with SSH
Viewed 7431 times since Mon, May 21, 2018
SSH: Execute Remote Command or Script – Linux
Viewed 3332 times since Mon, Feb 18, 2019
Using grep to find string in files
Viewed 3550 times since Fri, May 15, 2020
RHEL: Manually encrypting a filesystem with LUKS
Viewed 5057 times since Sun, May 27, 2018
How To Run Multiple SSH Command On Remote Machine And Exit Safely
Viewed 5921 times since Tue, Aug 6, 2019