I have been trying to install the SSL certificate on my droplet on Digital Ocean. This droplet is running NGINX / Ubuntu 16.04 x64.
I don't have any cPanel just a terminal with SSH connection.
I have also talked to the Digital Ocean's support guy and he shared 2 tutorials with me which I have tried. But following those tutorials end up breaking my site.
I have edit the /etc/nginx/nginx.conf and added the server block like this in http
block:
server { listen 443 ssl; server_name www.example.com; ssl_certificate /home/user/example/www.example.com.crt; ssl_certificate_key /home/user/example/www.example.com.key; }
What I'm doing wrong and what is the right way?
I'm confused which file to edit.
I have:
1) /etc/ngix/ngix.conf
2) /etc/nginx/sites-available/default
3) /etc/nginx/sites-available/defaultu
4) /etc/nginx/sites-available/example.com
5) /etc/nginx/sites-enabled/example.com
Please I need help...
1 Answers
Answers 1
More info is needed as to where you are at. Have you got the certificates onto the droplet yet? If not and you are using a Windows machine to connect via SSH to the droplet, then I would recommend downloading WinSCP as you can use that to transfer the certificates. If you let me know how far you are, I can walk you through the process. Also, you have no listen directives in your server blocks such as:
listen 443 ssl; ssl_certificate /path to .crt or .pem file; ssl_certificate_key /path to .key file;
0 comments:
Post a Comment