How to Generate a CSR for Nginx (OpenSSL)
How to Generate a CSR for Nginx (OpenSSL)
1. Log in to Your Server's Terminal
You will want to log in via Secure Shell (SSH).
2. Enter CSR and Private Key Command
Generate a private key and CSR by running the following command:
Here is the plain text version to copy and paste into your terminal:
openssl req -new -newkey rsa:2048 -nodes -keyout server.key -out server.csr
Replace “server ” with the domain name you intend to secure.
3. Enter Your CSR Details
Enter the following CSR details when prompted:
Common Name: The FQDN (fully-qualified domain name) you want to secure with the certificate such as www.domain.com, secure.website.org, *.domain.net, 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.
You are not required to enter a password or passphrase. This optional field is for applying additional security to your key pair.
4. Upload the CSR
Locate and open the newly created CSR from the specified location you choose in a text editor such as Notepad and copy all the text including:
-----BEGIN CERTIFICATE REQUEST-----
And
-----END CERTIFICATE REQUEST-----
After you have received your CSR, return to your 101domain account and upload your CSR or paste in your CSR code.