Hi,
I have successfully created a droplet with Ubuntu 16.04 running my secure django app through Letsencypt. My droplet serves “example.com” and “www.example.com” and I can see the green lock on my firefox when pointing to this application.
I would like to create two subdomains (sub1.example.com and sub2.example.com) but on two other droplets. I would like to know the exact procedure if possible.
I understand that the first step is to “expand” the letsencrypt keys to include the two new domains. But what comes next? Please, can you be as much elaborate as possible? Please, keep in mind that the new droplets will have to be secure, too.
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
@xpanta I think you are misunderstanding me. Your DNS A-records should look like this:
@ -> droplet_ip_1
www -> droplet_ip_1
sub1 -> droplet_ip_2
sub2 -> droplet_ip_3
Then you can use Let’s Encrypt to encrypt example.com and www.example.com on Droplet1. And you can encrypt sub1.example.com on Droplet2, and sub2.example.com on Droplet3.
Hi @xpanta
You simply point the DNS A-record for dns1.example.com to another droplet, login to that droplet and work on that, just like you did on the first droplet.
You need to generate the Let’s Encrypt from the droplet that are going to use it. It is possible to do some advanced stuff, but that’s outside the scope.
So in some sense, the different droplets and their certificates has nothing to do with each other.
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.