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
12 Linux Rsync Options in Linux Explained
Viewed 967 times since Wed, Oct 31, 2018
Nagrywanie sesji SSH do pliku
Viewed 1243 times since Thu, May 24, 2018
Fedora 32: Simple Local File-Sharing with Samba CIFS Linux
Viewed 130 times since Sun, Dec 6, 2020
Using etckeeper with git
Viewed 1382 times since Sun, Jun 3, 2018
Creating SWAP partition using FDISK & FALLOCATE commands
Viewed 495 times since Thu, Jan 16, 2020
Red Hat Cluster Tutorial
Viewed 935 times since Sun, Jun 3, 2018
How To Set Up an SSL Tunnel Using Stunnel on Ubuntu
Viewed 1450 times since Fri, Sep 28, 2018
RHEL: How to change a USER/GROUP UID/GID and all owned files
Viewed 6073 times since Sat, Jun 2, 2018
OpenSSL: Check SSL Certificate Expiration Date and More
Viewed 1481 times since Mon, Feb 18, 2019
How To Create a Linux Swap File
Viewed 843 times since Fri, Jun 8, 2018