How to protect a website/droplet with HTTPS

July 15, 2019 267 views
Let's Encrypt

Anyone here ever use the Lets Encrypt Digital Ocean feature? I have deployed a website on a Digital Ocean droplet that listens on port 80, i.e. vanilla HTTP. I would like to protect the website using HTTPS, and it seemed like this would be a simple process using DO’s Let’s Encrypt integration under the Security -> Certificates section. It was as simple as…

  1. Click on “Add Certificate”
  2. Select the domain name of my website… testingtestingmiccheck123.com
  3. Click on “Generate Certificate”

However, after doing this simple process, my website is still being served over HTTP. Am I doing something wrong here? Is this not actually what this feature of DO was intended to be used for?

1 Answer

Hello,

Can you try running the following command and checking if your webserver is now listening on port 443 as well:

netstat -plant | grep 443

If so then you’ve correctly installed Let’s Encrypt and you would need to sort out your website http to https redirect.

If you are using Apache you could do that via your htaccess file or directly in your Vhost.

Hope that this helps!
Bobby

  • Hello,

    I have this problem too.
    Previously I used manually generate Let’s Encrypt Cert with Certbot on Ubuntu droplet that auto generate and add to Nginx configuration file. I followed the following tutorials.
    Nginx Install
    Let’s Encrypt Install

    But, now I just found out that cert can also be generated from Dashboard>Security.
    So, after generating certificate where certificate files are located? Not sure how it works. What should I put in Nginx config?

    Thx

    by Justin Ellingwood
    by Kathleen Juell
    Nginx is one of the most popular web servers in the world and is responsible for hosting some of the largest and highest-traffic sites on the internet. It is more resource-friendly than Apache in most cases and can be used as a web server or reverse proxy. In this guide, we'll discuss how to get Nginx installed on your Ubuntu 18.04 server.
Have another answer? Share your knowledge.