I have been trying to install the RapidSSL certificate on my droplet on Digital Ocean. This droplet is running NGINX / Ubuntu 16.1 x64.
I was following this tutorial: https://www.digitalocean.com/community/tutorials/how-to-install-an-ssl-certificate-from-a-commercial-certificate-authority#install-certificate-on-web-server
But I arrived at the part where I need to edit "Nginx server block" :
Now go to your Nginx server block configuration directory. Assuming that
is located at /etc/nginx/sites-enabled, use this command to change to it:
cd /etc/nginx/sites-enabled
Assuming want to add SSL to your default server block file, open the file
for editing:
sudo vi default
Find and modify the listen directive, and modify it so it looks like this:
listen 443 ssl;
Then find the server_name directive, and make sure that its value matches
the common name of your certificate. Also, add the ssl_certificate and
ssl_certificate_key directives to specify the paths of your certificate
and private key files (replace the highlighted part with the actual path
of your files):
server_name example.com;
ssl_certificate /home/sammy/example.com.chained.crt;
ssl_certificate_key /home/sammy/example.com.key;
To allow only the most secure SSL protocols and ciphers, add the following
lines to the file:
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';
"Sudo vi default" is an empty file. So where I need to edit the file? Nginx config?
I have :
/etc/nginx/nginx.conf
/etc/nginx/sites-available/nginxconfig
/etc/nginx/sites-enabled/nginxconfig
/home/user/user/deploy/nginxconfig
So which file I need to edit? I am really confused.. any error could end up by breaking my site