Generate CSR for Nginx Server via console

Generating a key:
openssl genrsa -out domain.key 2048

Generate a request for a certificate:
openssl req -new -key domain.key -out domain.csr


The same operations with a one command:
openssl req -new -newkey rsa:2048 -nodes -keyout domain.key -out domain.csr


This will begin the process of generating two files: the Private-Key file for the decryption of your SSL Certificate, and a certificate signing request (CSR) file used to apply for your SSL Certificate. This command will prompt for the following X.509 attributes of the certificate:

  • Country Name (C): Use the two-letter code without punctuation for country, for example: US or CA.
  • State or Province (S): Spell out the state completely; do not abbreviate the state or province name, for example: California.
  • Locality or City (L): The Locality field is the city or town name, for example: Berkeley.
  • Organization (O): If your company or department has an &, @, or any other symbol using the shift key in its name, you must spell out the symbol or omit it to enroll, for example: XY & Z Corporation would be XYZ Corportation or XY and Z Corportation.
  • Organizational Unit (OU): This field is the name of the department or organization unit making the request.
  • Common Name (CN): The Common Name is the Host + Domain Name. It looks like "www.geotrust.com" or "geotrust.com".

GeoTrust certificates can only be used on Web servers using the Common Name specified during enrollment. For example, a certificate for the domain "geotrust.com" will receive a warning if accessing a site named "www.geotrust.com" or "secure.geotrust.com", because "www.geotrust.com" and "secure.geotrust.com" are different from "geotrust.com".

Please do not enter your email address, challenge password or an optional company name when generating the CSR.

Your .csr file will then be created.


  • генерация csr, generate csr
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

What is Domain Validation (DV)?

The Certificate Authority must simply verify that the person or organization applying for the...

Disadvantages of free certificate LE

What disadvantages do we get if we decide to use a free SSL certificate, such as Let's Encrypt?...

SSL certificate configuration

After ordering an SSL certificate, a link to the further configuration of your new certificate is...