Report this

What is the reason for this report?

How to protect a website/droplet with HTTPS

Posted on July 15, 2019

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?



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!

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.

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

https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-18-04

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.