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
LOGROTATE – ARCHIWIAZACJA LOGÓW
Viewed 2084 times since Fri, Nov 30, 2018
UUIDs and Linux: Everything you ever need to know [Update]
Viewed 5014 times since Tue, Jul 17, 2018
INSTALACJA MIB SNMP W SYSTEMIE CENTOS/RHEL 6
Viewed 13075 times since Fri, Nov 30, 2018
socat: Linux / UNIX TCP Port Forwarder
Viewed 9743 times since Tue, Aug 6, 2019
debian Install a newer kernel in Debian 9 (stretch) stable
Viewed 1858 times since Sun, Sep 23, 2018
KONTO SFTP Z CHROOTEM Z UŻYCIEM OPENSSH-SERVER NA CENTOS/RHEL6
Viewed 1914 times since Fri, Nov 30, 2018
Red Hat ADDING SWAP SPACE
Viewed 2127 times since Fri, Jun 8, 2018
Setup SSL Tunnel Using Stunnel on Ubuntu
Viewed 2736 times since Fri, Sep 28, 2018
RHEL: Multipathing basics
Viewed 9318 times since Sat, Jun 2, 2018
Installing and Configuring an OCFS2 Clustered File System
Viewed 5992 times since Sat, Jun 2, 2018