The nameserver for my base domain is Google, which I’d like to keep to handle my product website & email. I’ve added the DigitalOcean NS entries for my subdomain app. This all resolves fine.
However, I’m trying to create an SSL cert in the DO panel, and it fails to recognize my subdomain (app.domain.com) for the cert without using the primary domain (domain.com) which won’t work because it’s on Google.
Is there a way to create a cert in DO panel for just a subdomain or will I need to create one manually?
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!
Hi @kdumont,
If you are using a standard Droplet, you should be able to install certbot from inside of it.
How does it work?
Nginx To install certbot and it’s Nginx plugin you can execute the following command on your Droplet:
sudo apt install certbot python3-certbot-nginx
Apache
To install certbot and it’s Apache plugin you can execute the following command on your Droplet:
sudo apt install certbot python3-certbot-apache
Certbot provides a variety of ways to obtain SSL certificates through plugins. The Nginx plugin will take care of reconfiguring Nginx and reloading the config whenever necessary. To use this plugin, type the following:
Nginx
sudo certbot --nginx -d example.com -d www.example.com
Apache
certbot --apache
That should be it.
Regards, KFSys
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.