Question

What is the next step after setting up Let's Encrypt SSL on DigitalOcean's Dashboard

Hi,

I have followed this tutorial: https://www.digitalocean.com/docs/accounts/security/certificates/

and created a new Let’s Encrypt certificate on DigitalOcean’s dashboard.

During the creation, in addition to my domain name and its www. version, I added 4 more subdomains. The creation seems successful.

However, when I go to one of my subdomain, where my web app is running on, I can access it using HTTP, but NOT HTTPS.

I am wondering if I have missed a step or two that I should’ve done after creating the certificate on the dashboard. Note that it doesn’t exist on the tutorial, so I assumed that’s all I need (Loving it though, since it was so simple and easy).

A bit more info:

  • My domain will be redirected to Squarespace.
  • All my subdomains are connected to their corresponding Droplets (3 droplets used here).
  • For my web app I am using Apache and already set-up a simple VirtualHost file to have the app hosted at port 80.

Thanks in advance.


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.

KFSys
Site Moderator
Site Moderator badge
May 28, 2020
Accepted Answer

Hi @ehuang,

It seems to me that you haven’t enabled/created an HTTPS virtual host for your domains on the Droplet itself. There are two easy ways that we can follow in order for this to happen.

The first way would be for you to configure your HTTPS virtual configuration files for your domains on the droplet.

The second one is using the service certbot on your Droplet which will automatically, install LE and configure your virtual host files.

We’ll review both so that you can continue with whichever you like. The first way is a bit harder than the second one, it requires some small knowledge of the terminal. The good thing is DigitalOcean has a really good tutorial about the said process of creating your own virtual host files here

https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-18-04-quickstart

This tutorial will guide you through setting up multiple domains and websites using Apache virtual hosts on an Ubuntu 18.04 server. During this process, you’ll learn how to serve different content to different visitors depending on which domains they are requesting.

Now to the second way, again DigitalOcean has a really good tutorial which you can follow and lead you to the desired outcome :

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

This tutorial will use a separate Apache virtual host file instead of the default configuration file and will more or less the 50% of work automatically.

Regards, KDSys

I got it working!

Just to write something here to summarize my experience.

Correct me if I am wrong, thanks.

I later figured out that just following the tutorial in the link in my original post is not enough. Maybe it was only enough to set up SSL for my main domain (just a web app hosted on Squarespace, no server, nothing more).

For my subdomains, I would need to dive into the Droplet itself and set up the SSL directly there (remote with SSH).

I also noticed that, the 2 links you posted, should be performed in sequential order, rather than “pick either one”.

Since I already have the 1st step (setting up virtual host done), I just need to do the second step. Certbot was great and absolutely no problem for me as I followed the step sin the tutorial of your second link.

Thanks again.

ehuang

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more