How to Generate Certificate Signing Request (CSR) in NginX Web Server

Description

This document provides instructions for generating a Certificate Signing Request (CSR) for Nginx Server. If you are unable to use these instructions for your server, RapidSSL recommends that you contact a compnay that supports Nginx.

NOTE: To generate a CSR, you will need to create a key pair for your server. These two items are a digital certificate key pair and cannot be separated. If you lose your public/private key file or your password and generate a new one, your SSL Certificate will no longer match.

NOTE: All certificates that will expire after October 2013 must have a 2048 bit key size.

To generate a CSR on Nginx, please do the following:

1.    Login to your server via your terminal client (ssh). At the prompt, type:

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

2.    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. 

3.    The command from Step 1 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. 

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

4.    When promted, please do not enter your email address, challenge password or an optional company name when generating the CSR.Leave out this fields blank.

5.    Your .CSR file will then be created.

6.    Proceed to Enrollment and paste the CSR in the enrollment form when required.

 

 

Disclaimer:

WarungSSL has made efforts to ensure the accuracy and completeness of the information in this document. However, WarungSSL makes no warranties of any kind (whether express, implied or statutory) with respect to the information contained herein. WarungSSL assumes no liability to any party for any loss or damage (whether direct or indirect) caused by any errors, omissions, or statements of any kind contained in this document.

Further, WarungSSL assumes no liability arising from the application or use of the product or service described herein and specifically disclaims any representation that the products or services described herein do not infringe upon any existing or future intellectual property rights. Nothing herein grants the reader any license to make, use, or sell equipment or products constructed in accordance with this document. Finally, all rights and privileges related to any intellectual property right described herein are vested in the patent, trademark, or service mark owner, and no other person may exercise such rights without express permission, authority, or license secured from the patent, trademark, or service mark owner. Geotrust reserves the right to make changes to any information herein without further notice.

Close

We uses cookies to remember and process the items in your shopping cart as well as to compile aggregate data about site traffic and interactions so that we can continue improving your experience on our site.