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/
- Start by specifying the server should listen to port 443:
listen 443;
- Make sure the server block includes the line:
ssl on;
- Define the path of the SSL certificate:
ssl_certificate /etc/ssl/domain.pem;
Specify the directory where the SSL Certificate Key is located: /etc/ssl/domain.key;
- 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; server_name domain.com; } 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/domain.com/public/; index index.html; } }
- Restart NGINX Server by excute #
systemctl restart nginx