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 / UNIX: DNS Lookup Command
Viewed 437 times since Sun, Sep 30, 2018
stunnel basics and pki standards
Viewed 922 times since Fri, Sep 28, 2018
debian How to check Debian CVE status using python script
Viewed 481 times since Sun, Sep 23, 2018
Top 4 Reasons for Node Reboot or Node Eviction in Real Application Cluster (RAC) Environment
Viewed 7464 times since Thu, Jun 21, 2018
Deskshare TLS over Stunnel
Viewed 448 times since Fri, Sep 28, 2018
Exclude multiple files and directories with rsync
Viewed 485 times since Wed, Oct 31, 2018
Linux - How to get network speed and statistic of ethernet adapter in Linux
Viewed 506 times since Fri, Jun 8, 2018
Linux Cluster Tutorial
Viewed 454 times since Sat, Sep 29, 2018
List DNS records, nameservers of a domain from command line
Viewed 455 times since Sun, Sep 30, 2018
How to mount software RAID1 member using mdadm
Viewed 448 times since Wed, Oct 3, 2018