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:
Thanks in advance.
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.
Sign up for Infrastructure as a Newsletter.
Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
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
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 :
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