SSL setup for two droplets, one on main domain and second on subdomain

Posted April 28, 2017 3.7k views
WordPressLet's EncryptUbuntu 16.04

What is the recommended practice for setting up SSL with Let’s Encrypt where one droplet hosts WordPress ( and a second droplet hosts Discourse under a subdomain (


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
3 answers


Normally I’ll install certbot on each server and then generate the certificates as per norm via CLI.

When it comes to multiple servers, if you generate them on the main host, you may run in to issues with the challenge aspect of the process.

It really depends on whether you use the certonly option or one of the plugins (i.e. for Apache / NGINX).

As mentioned above you could install certbot in each droplet.

Another approach is to setup your main droplet (or spin up a new 512mb droplet) with NGINX if not already using it as a load-balancer/reverse-proxy with SSL Termination. This gives the benefit of managing all of your SSL certificates in one place.

by Jesin A
Use SSL termination to reduce your SSL certificate and software management overhead on load-balanced servers. This tutorial uses an Nginx load-balancer and LAMP backends.

Thanks @jtittle. My goal is to keep things simple, so two independent certificates it will be.