This article will walk you through installing a Certificate in Nginx. If this is not the solution you are looking for, please search for your solution in the search bar above.
Guidelines
You can watch the video below for a tutotial.
Or, you can check the step by step guidelines below.
To install a certificate in Nginx, a `Certificate Bundle` must be created. To accomplish this, each certificate (SSL Cert, Intermediate Cert, and Root Cert) must be in the PEM format.
Open each certificate in a plain text editor.
Create a new document in a plain text editor.
Copy and paste the contents of each certificate into the new file.
The order should be:
Upload the Certificate Bundle & private key to a directory on the Nginx server.
Edit the Nginx virtual hosts file.
Open the Nginx virtual host file for the website you are securing.
If you need your site to be accessible through both secure (https) and non-secure (http) connections, you will need a server module for each type of connection.
Make a copy of the existing non-secure server module and paste it below the original.
Add the lines shown below:
Very Important – Make sure you adjust the file names to match your certificate files:
ssl_certificate should be your primary certificate combined with the root & intermediate certificate bundle that you made in the previous step (e.g. your_domain.crt).
ssl_certificate_key should be the key file generated when you created the CSR.
Restart Nginx:
sudo /etc/init.d/nginx restart
Related Articles
Generate a CSR - Internet Information Services (IIS) 5 & 6
Sep 17, 2013, 7:43 AM
Article Purpose: This article provides step-by-step instructions for generating a Certificate Signing Request (CSR) in Internet Information Services (IIS) 5 &6. If this is not the solution you are looking for, please search for your solution in the search bar above.
Article Purpose: This article provides step-by-step instructions for installing your certificate in F5 FirePass. If this is not the solution you are looking for, please search for your solution in the search bar above.
The GlobalSign Certificate Center will use the information you have provided via your CSR and the information you will provide during the next part of the application process to build the full Subject information within your SSL certificate