Copy the Digital Server Certificate to a file

You will receive an email from VikingCloud™ with the certificate attached to the email. You will need the certificate with the intermediate certificate attached to it for your installation, so login to Control Center and go to the issued certificates page. Download the zip file will all the different certificate types in it. For this installation, you want the file with the .pem extension.

Edit the Nginx virtual hosts file

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 following lines to the file:

server {
    listen              443 ssl;


Save your configuration file.

Restart Nginx

Run the following command to restart Nginx:

sudo /etc/init.d/nginx restart