After you enable the Spaces CDN, the CDN’s edge servers will begin caching and serving the contents of the Space from the default CDN endpoint,
<spacename>.<region>.cdn.digitaloceanspaces.com. You can also use a secure subdomain you own as an alternative endpoint, like
For security reasons, any subdomain you use with the Spaces CDN must have an SSL certificate. If you’ve added your domain to DigitalOcean, you can use our Let’s Encrypt integration to create a fully managed SSL certificate. You can also manually upload a certificate if you don’t use DigitalOcean to manage your DNS, want to generate your own certificate, or have an existing certificate you want to upload.
The create page and existing Spaces’ Settings pages have the same CDN (Content Delivery Network) section. When you open the Use a custom subdomain pulldown menu, you’ll see any subdomain SSL certificates already uploaded to your account.
If you already have a certificate for the subdomain you want to use, select it from the menu and click Save. We’ll automatically create a CNAME record for it if necessary and start serving content from that subdomain.
If you don’t already have a certificate uploaded for the subdomain you want to use, click the +Add a new subdomain certificate option. This will open a window to guide you through either creating a new certificate with Let’s Encrypt and DigitalOcean DNS or uploading a certificate manually.
You cannot currently create wildcard SSL certificates using DigitalOcean’s Let’s Encrypt integration.
If you manage your domain with DigitalOcean DNS, you can choose the Use Let’s Encrypt option to create a new, fully-managed SSL certificate.
Select the domain you want to use to reveal the Which subdomain would you like to use with this Space? option. You can select an existing subdomain or choose a new one.
Enter a name for the certificate, then click Generate Certificate and Use Subdomain. This will also automatically create the necessary CNAME for the subdomain and verify the SSL certificate. You’ll receive a notification in the control panel when your subdomain is ready to use, which typically takes a few seconds.
If you want to upload an existing certificate, or if you prefer to manage your DNS with another provider and want to generate your own, choose Bring your own certificate.
Enter the name, certificate, private key, and certificate chain in the respective fields, then click Add Certificate and Use Subdomain.
You’ll also need to add a CNAME record pointing from the subdomain to the default CDN endpoint. If you don’t, you won’t be able to serve content from that subdomain.
From the Space’s Settings page, in the CDN (Content Delivery Network) section, open the pulldown menu with the current subdomain.
To switch subdomains, you can choose another certificate or add a new subdomain certificate here.
To remove the subdomain entirely and serve content only from the default CDN endpoint, select click Remove Custom Subdomain, then click Save. You’ll need to to confirm the removal in the window that opens by typing the name of the subdomain and clicking Remove subdomain.