CSR Generation by command line

Perform the following steps to generate CSR in Linux

Before you start the CSR generation process step please make sure that the OpenSSL command is installed on your system.

Step 1:
Login to your Server Terminal

Login to your server system to execute the OpenSSL command correctly.

Step 2:
Run following OpenSSL command

Now, add the following OpenSSL command to generate the CSR and Private Key File. “ openssl req -new -newkey rsa:2048 -nodes -keyout your-domain.key -out your-domain.csr

Step 3:
Add requested domain details

After executing the above code, the user needs to add following domain details. Common Name, Organization, Organization Unit, City or Locality, State or Province, and Country. Understanding these details briefly
            1.Common Name: FQDN (Fully Qualified Domain Name) which the user is wishing to secure. (for example. Domain.com).

            2.Organization: The registered Name of the Organization or Business.

            3.Organization Unit: Add DBA (Doing Business As) name (if required).

            4.City or Locality: City name where the business is located. Add Full Name.

            5.State or Province: Name of State where the business is located. Add Full Name.

 
             6.Country: Add the Two-letter ISO country code, select your country from the following SSL country code list.
Once the user adds this information, the CSR will be generated which contains the above-mentioned information along with the Private Key.



Step 4:
Copy CSR and Private Key FNow Copy the encrypted information from CSR and Private Key one-by-one (individually) and paste them into a new file.

Finally, the CSR and Private Key files are generated.

 

 


Was this article helpful?

mood_bad Dislike 0
mood Like 1
visibility Views: 16467