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 manual tools
Viewed 2928 times since Fri, Sep 28, 2018
How To Set Up an SSL Tunnel Using Stunnel on Ubuntu
Viewed 3446 times since Fri, Sep 28, 2018
ZPOOL: Verify/change properties of a zpool
Viewed 2218 times since Sun, Jun 3, 2018
HowTo: Retrieve Email from a POP3 Server using the Command Line
Viewed 11692 times since Mon, Feb 18, 2019
ZFS: Grow/Shrink an existing zfs filesystem
Viewed 6488 times since Sun, Jun 3, 2018
RHEL: Scan and configure new SAN (fibre channel) LUNs
Viewed 8279 times since Sun, May 27, 2018
HOWTO: Use SSL/port 465 in smarthost stunnel
Viewed 3980 times since Fri, Sep 28, 2018
tcpdump
Viewed 9430 times since Fri, Jul 27, 2018
A Quick and Practical Reference for tcpdump
Viewed 12652 times since Fri, Jul 27, 2018
stunnel bacula
Viewed 2195 times since Fri, Sep 28, 2018