

Note that we created the by concatenating the crt and key: rw- 1 ubuntu ubuntu 1887 Aug 9 23:51 mysite.crt rw- 1 ubuntu ubuntu 3197 Aug 9 23:51 godaddy_bundle.crt Although the certificate and the key are stored in one file, only the certificate is sent to a client.

The private key may alternately be stored in the same file as the certificate in which case the file access rights should also be restricted. The private key is a secure entity and should be stored in a file with restricted access, however, it must be readable by nginx's master process. It is sent to every client that connects to the server. The server certificate is a public entity. To configure an HTTPS server, we enabled the ssl parameter on listening sockets in the server block, and we specified the locations of the server certificate and private key files. Ssl_ciphers AES256+EECDH:AES256+EDH:!aNULL Ssl_certificate_key /etc/nginx/ssl/mysite.key Nginx versions 0.7.14 and above (Ubuntu 14.04 ships with version 1.4.6) can enable SSL within the same server block as regular HTTP traffic.įor our Nginx (1.1.19), here is the INSTALLING AN SSL CERTIFICATE - NGINX. Now we just need to copy them over to our Nginx configuration to take advantage of these by adjusting our server block files.

We downloaded our certificate from Godaddy, and instruction for the installation can be found here:Īctually, rather than installing the certs, we want to copy our key and certificate files from one of our Apache2 ssl configuration directory.
