Shell
mkdir /etc/nginx/ssl
Shell
cd /etc/nginx/ssl
Shell
cat signed-cert.crt intermediate.crt ca.crt >> bundle.crt
Note: The certificates must be listed in this order with the concatenate command, or the SSL will not work correctly on your server.
Shell
vim /etc/nginx/conf.d/ssl-host.conf
Shell
server {
listen 443 ssl;
server_name www.cinnox-demo.com;
ssl_certificate /etc/nginx/ssl/ bundle.crt;
ssl_certificate_key /etc/nginx/ssl/private.key;
root /usr/share/nginx/cinnox-demo/;
index index.html index.htm;
}
Shell
systemctl restart nginx