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
Linux: Disks diagnostic using smartctl
Viewed 15281 times since Wed, Jul 25, 2018
RHEL: Change system’s hostname
Viewed 3681 times since Sun, May 27, 2018
How to deal with dmesg timestamps
Viewed 3720 times since Wed, Oct 3, 2018
LVM: Remove an existing Volume Group
Viewed 5516 times since Sat, Jun 2, 2018
Oracle Linux 7 – How to audit changes to a trusted file such as /etc/passwd or /etc/shadow
Viewed 3101 times since Wed, Jul 25, 2018
RHEL: Handling SCSI disks
Viewed 12643 times since Sun, May 27, 2018
Procedura powiekszania OCFS2 online
Viewed 5566 times since Fri, Jun 8, 2018
Fake A Hollywood Hacker Screen in Linux Terminal linux FUN
Viewed 6442 times since Thu, Apr 18, 2019
Linux 16 Useful Bandwidth Monitoring Tools to Analyze Network Usage in Linux
Viewed 15644 times since Mon, Sep 21, 2020
YUM How to use yum command on CentOS/RHEL
Viewed 7362 times since Thu, Oct 25, 2018