By omarfilip
What is the recommended practice for setting up SSL with Let’s Encrypt where one droplet hosts WordPress (mydomain.com) and a second droplet hosts Discourse under a subdomain (forum.mydomain.com)?
Thanks!
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!
Accepted Answer
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.
Thanks @jtittle. My goal is to keep things simple, so two independent certificates it will be.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.