How to protect a website/droplet with HTTPS

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…
  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?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

I found this link very useful in setting up with https , in case if it finds helpful to you


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