HostOnNet Blog

Certificate Signing Request (csr)

Looking for Linux Server Admin or WordPress Expert? We can help.

Before you can get SSL certificate for your web site, you need to create Certificate Signing Request (CSR).

Information needed for generating CSR

Country Name (2 letter code): 
State or Province Name:
Locality Name (eg, city):
Organization Name (eg, company):
Email Address:

Most hosting control panel provide GUI for generating CSR.

If you are on a server with no control panel, you can generate CSR on any Linux computer by running

openssl req -new -newkey rsa:2048 -nodes -out domain-name.csr -keyout domain-name.key -subj "/C=COUNTRY-CODE-HERE-2-LETTER/ST=STATE-HERE/L=CITY-HERE/O=BUSINESS-NAME-HERE/OU=Retail/CN=domain-name"

If you want OpenSSL ask for information, run following command.

openssl req -new -newkey rsa:2048 -nodes -keyout domain-name.key -out domain-name.csr


boby@hon-pc-01:~ $ openssl req -new -newkey rsa:2048 -nodes -keyout -out
Generating a 2048 bit RSA private key
writing new private key to ''
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
Country Name (2 letter code) [AU]:IN
State or Province Name (full name) [Some-State]:Kerala
Locality Name (eg, city) []:Kochi
Organization Name (eg, company) [Internet Widgits Pty Ltd]:HOSTONNET
Organizational Unit Name (eg, section) []:Retail
Common Name (e.g. server FQDN or YOUR name) []
Email Address []:[email protected]

Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:hostonnet
An optional company name []:
boby@hon-pc-01:~ $ 

View CSR

To view CSR details, run

openssl req -in domain-name.csr -noout -text

Posted in Security

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.