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
Using Kerberos security with Server for NFS
Viewed 11234 times since Wed, Jun 27, 2018
Enabling automatic updates in Centos 7 and RHEL 7
Viewed 3330 times since Wed, Oct 17, 2018
Cron YUM How to use yum-cron to automatically update RHEL/CentOS Linux
Viewed 3355 times since Fri, Oct 26, 2018
Script to Offline and Remove A Disk In Linux
Viewed 2612 times since Mon, Jan 28, 2019
ZFS: Verify/change properties of a zfs filesystem
Viewed 3492 times since Sun, Jun 3, 2018
How to automate SSH login with password? ssh autologin
Viewed 3599 times since Fri, Jun 8, 2018
How to encrypt a partition with DM-Crypt LUKS on Linux
Viewed 9075 times since Fri, Jul 13, 2018
Linux - How to shutdown or reboot
Viewed 2803 times since Fri, Jun 8, 2018
10 Linux cryptsetup Examples for LUKS Key Management (How to Add, Remove, Change, Reset LUKS encryption Key)
Viewed 6955 times since Tue, Jul 31, 2018
Nagrywanie sesji SSH do pliku
Viewed 3616 times since Thu, May 24, 2018