SSL Zen Help Center
← Back to Help Center

Installing SSL Certificate on NGINX

Last updated January 11, 2021 · Install SSL Certificate

Upload certificate.crt, cabundle.crt, privatekey.pem to the server. Merge the crt files:

$ cat certificate.crt ca_bundle.crt >> certificate.crt

Edit the NGINX virtual hosts file, duplicating the non-secure server block for HTTPS:

server {
    listen   443;
    ssl    on;
    ssl_certificate    /etc/ssl/certificate.crt;
    ssl_certificate_key    /etc/ssl/private.key;
    server_name your.domain.com;
    access_log /var/log/nginx/nginx.vhost.access.log;
    error_log /var/log/nginx/nginx.vhost.error.log;
    location / {
    root   /home/www/public_html/your.domain.com/public/;
    index  index.html;
    }
}

Restart with sudo /etc/init.d/nginx restart. Continue at Step 3 in the plugin.

Still need help?

Can't find what you're looking for? Our team will get you sorted.

Contact support