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
Nagrywanie sesji SSH do pliku
Viewed 2940 times since Thu, May 24, 2018
Tunnel SSH Connections Over SSL Using ‘Stunnel’ On Debian 7 / Ubuntu 13.10
Viewed 3274 times since Fri, Sep 28, 2018
O’Reilly’s CD bookshelf
Viewed 12679 times since Wed, Jun 27, 2018
Terminal based "The Matrix" like implementation
Viewed 2229 times since Thu, Apr 18, 2019
Learn Linux System Auditing with Auditd Tool on CentOS/RHEL
Viewed 4300 times since Fri, Apr 5, 2019
Odpalenie polecenia tylko na jedną godzinę
Viewed 2832 times since Thu, May 24, 2018
Linux Linux Network Statistics Tools / Commands
Viewed 9158 times since Mon, Sep 21, 2020
20 Linux YUM (Yellowdog Updater, Modified) Commands for Package Management YUM
Viewed 11340 times since Thu, Oct 25, 2018
Cron YUM How to use yum-cron to automatically update RHEL/CentOS Linux
Viewed 2461 times since Fri, Oct 26, 2018
RHCS6: Debug and test multicast traffic between two hosts
Viewed 6643 times since Sun, Jun 3, 2018