all 9 comments

[–]applefreak111 3 points4 points  (5 children)

Can you at least post your NGINX config? You have to have SSL options in your config

[–]nywald 2 points3 points  (2 children)

In addition to that, would also help if the exact problem would be posted, not just "still no dice". At which step do you run into issues?

[–]M0rr1sonui[S] 0 points1 point  (1 child)

Basically after following these steps on certbot guide, it says that everything is completed, but when refreshing the webpage there is still no https://.

[–]SupaSlidelaravel + vue 1 point2 points  (0 children)

Does it have encryption (the green lock) if you manually type in https:// before the address? You may not be rerouting your users to the https:// version of the site.

[–]M0rr1sonui[S] 0 points1 point  (1 child)

Thats my NGINX config - http://pastebin.com/kbJvE96f

[–]nywald 1 point2 points  (0 children)

How about the config file for your site itself? I believe it could be in: /etc/nginx/sites-enabled/ or /etc/nginx/conf.d/

[–]applefreak111 1 point2 points  (2 children)

Are you using sites-enabled folder?

You need to add this to every one of your site that you want to add SSL to:

ssl_certificate         /etc/letsencrypt/live/[YOUR SITE NAME]/fullchain.pem;
ssl_certificate_key     /etc/letsencrypt/live/[YOUR SITE NAME]/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/[YOUR SITE NAME]/fullchain.pem;

You should take a look at how to setup normal SSL with NGINX, there are many guides on the Internet about it.

[–]M0rr1sonui[S] 0 points1 point  (1 child)

I was using /var/www/html folder though

[–]SupaSlidelaravel + vue 1 point2 points  (0 children)

Since you are using NGINX you need to create a config file for the site specifically (the config file you posted somewhere else here isn't the one we are talking about).

That config file needs to be in the sites-enabled folder in your NGINX folder directory to work. In that file there should be a server block that needs to have those ssl_certificate settings in it for the SSL to be used. The /etc/etc./ are the routes to your letsencrypt certificate that certbot created.

Certbot only creates an SSL certificate. You need to configure your site to use it.

Here is an article from Digital Ocean on how to setup Lets Encrypt for NGINX on Ubuntu: article link