Nginx


Copy the SSL Certificate to a file

You will receive an e-mail from Trustwave® with the certificate attached to the e-mail. 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;
    server_name         www.example.com;
    ssl_certificate     www.example.com.pem;
    ssl_certificate_key www.example.com.key;
    ...
}

    

Save your configuration file.

Restart Nginx

Run the following command to restart Nginx:


sudo /etc/init.d/nginx restart

    


Certificate Analyzer

Once you have completed your certificate installation you can use our instant online troubleshooter to verify your installation and help resolve problems.
Certificate Analyzer→

Go Green