Two level subdomain letsencrypt certificate with nginx

Posted October 27, 2020 1.1k views
NginxLet's EncryptUbuntu 18.04

I was configuring certbot for nginx on Ubuntu 18.04 droplet, I’m securing a two level subdomain, e.g.: and certbot says that the cert is ready but when I go to the page I get an ERRSSLVERSIONORCIPHER_MISMATCH on Chrome, and ssllabs says “Failed to communicate with the secure server”.

So, in some sites says that other clouds doesn’t provide support for securing two level subdomains, like here:

But I don’t find any info about this on DigitalOcean, can you help me with that please?

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.

Submit an Answer
1 answer

It is definitely possible to get and deploy Let’s Encrypt certificate for two-level subdomains in DO. Did you restart nginx after setting up the certificate ? First, check if nginx server blocks files have correct syntax:

sudo nginx -t

If the syntax is OK, restart nginx

sudo systemctl restart nginx

If you still have the same issue, go through all the steps of this tutorial. Maybe you missed something.

by Hazel Virdó
by Kathleen Juell
In this tutorial, we will show you how to use Let's Encrypt to obtain a free SSL certificate and use it with Nginx on Ubuntu 18.04. We will also show you how to automatically renew your SSL certificate. If you're running a different web server, simply follow your web server's documentation to learn how to use the certificate with your setup.