How to generate CSR file in Linux?

How to generate CSR file in Linux?

Here’s how to generate a CSR file on Linux System:-

Step 1: Log in to your server’s terminal via Secure Shell (SSH).

Step 2: Enter CSR and Private Key command to generate a private key and CSR by running the following command.


Note: Replace “server” with the domain name you intend to secure.

Step 3: Fill in your CSR details such as:-

  • Common Name: The FQDN (Fully-Qualified Domain Name) you want to secure with the certificate such as,, *, etc.
  • Organization: The full legal name of your organization including the corporate identifier.
  • Organization Unit (OU): Your department such as ‘Information Technology’ or ‘Website Security.’
  • City or Locality: The locality or city where your organization is legally incorporated. Do not abbreviate.
  • State or Province: The state or province where your organization is legally incorporated. Do not abbreviate.
  • Country: The official two-letter country code (i.e. US, CH) where your organization is legally incorporated.

Note: You are not required to enter a password or passphrase. This optional field is for applying additional security to your key pair.

Step 4: Open the newly created CSR to generate the Order and copy all the text.





Note 1: Your CSR should be saved in the same user directory that you SSH into unless otherwise specified by you.

Note 2: We recommend saving or backing up your newly generate “.key” file as this will be required later during the installation process.

After following all the steps, Copy and paste the entire CSR in the generation form into the blank text box and continue with completing the generation process.

Once the CSR is generated, the validation process will be entered with the issuing Certificate Authority and require the user to complete a validation depending on the certificate purchased.

Upon receiving the trusted SSL certificate from the issuing Certificate Authority, the user can proceed with the next step of installing the SSL for Linux System.