Nginx SSL Installation Instructions

In Nginx webserver will the file in NGINX folder be used(which you find in the SSL zip file from 12ssl). Upload the 2 file into /etc/ssl/

  1. Start by specifying the server should listen to port 443: listen 443;
  2. Make sure the server block includes the line: ssl on;
  3. Define the path of the SSL certificate: ssl_certificate /etc/ssl/domain.pem;
  4. Specify the directory where the SSL Certificate Key is located: /etc/ssl/domain.key;
  5. The configuration file should look similar to the one below:
    server {
    listen 443;
    ssl on;
    ssl_certificate /etc/ssl/domain.pem;
    ssl_certificate_key /etc/ssl/domain.key;
    root /path/to/webroot;
    access_log /var/log/nginx/nginx.vhost.access.log;
    error_log /var/log/nginx/nginx.vhost.error.log;
    location / {
    root /var/www/;
    root  /home/www/public_html/;
    index index.html;
  6. Restart NGINX Server by excute # systemctl restart nginx
  • SSL, Nginx
  • 507 Users Found This Useful
Was this answer helpful?

Related Articles

Apache SSL Installation Instructions

Upload the SSL file in Apache folder which you downloaded from your account to /etc/ssl/. Open...

How to Install Certificates on Tomcat KeyStore

Convert .PFX to JKS Keystore for Tomcat Server. Using the pfx file in the IIS folder from your...

IP SSL Deployment on cPanel Server

Combine key file and nginx pem file into a file named "combined". You get the key file and...