Question

Setup SSL Cert for Subdomain for DigitalOcean Spaces WITHOUT a Server

I have the domain “example.com” managed by an external DNS service.

I’d like to point cdn.example.com to Digital Ocean Spaces.

I can’t switch to Digital Ocean DNS because Digital Ocean doesn’t support all the record types I want.

So my remaining option is to install a custom SSL certificate per this guide: https://docs.digitalocean.com/products/spaces/how-to/customize-cdn-endpoint/ and follow the “Bring Your Own Certificate” option.

The instructions for the “Bring Your Own Certificate” option are to install Certbot on a server - however, “example.com” is currently pointing to a server that is managed by Digital Ocean Apps, and I don’t have permissions on those managed Apps to run Certbot.

Also - LetsEncrypt certificates require renewal every 90 days. How would I do that with Digital Ocean spaces?

Thoughts?


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hello,

Yes, this should be doable. You could add your subdomain name as a separate domain to your DigitalOcean account directly.

Then that way it will show up in your domains list when you try to specify it as a custom domain for your Space.

Then in your main domain’s DNS zone, you will have to add the DigitalOcean nameservers as NS records for your cdn. subdomain in the DNS Manager for your main domain.

For Example: In DNS Manager for main add NS records Like.

cdn.example.com. 1799 IN    NS  ns1.digitalocean.com.
cdn.example.com. 1799 IN    NS  ns3.digitalocean.com.
cdn.example.com. 1799 IN    NS  ns2.digitalocean.com.

That way you will be able to manage the DNS for the subdomain in a separate DNS zone than your main domain name and it would be independent.

Hope that this helps.

Best,

Bobby