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
10 Linux rsync Examples to Exclude Files/Directories
Viewed 12298 times since Wed, Oct 31, 2018
Linux - How to get IP and MAC address of ethernet adapter in Linux
Viewed 3489 times since Fri, Jun 8, 2018
Open SSL HowTo: Decode SSL Certificate
Viewed 6823 times since Mon, Feb 18, 2019
How to Synchronize Directories Using Lsyncd in Linux
Viewed 15482 times since Wed, Oct 31, 2018
Creating SWAP partition using FDISK & FALLOCATE commands
Viewed 7386 times since Thu, Jan 16, 2020
zabbix linux How to solve apache error No space left on device: Cannot create SSLMutex
Viewed 3314 times since Wed, Nov 11, 2020
How to manage Linux password expiry with the chage command
Viewed 12088 times since Tue, Sep 11, 2018
ZFS: Verify/change properties of a zfs filesystem
Viewed 3483 times since Sun, Jun 3, 2018
Linux: Disks diagnostic using smartctl
Viewed 16138 times since Wed, Jul 25, 2018
logrotate How log rotation works with logrotate
Viewed 10004 times since Sun, Jan 12, 2020