Report this

What is the reason for this report?

DigitalOcean spaces with Cloudflare

Posted on March 20, 2023

Hello! I found a similar issue in the following thread: https://www.digitalocean.com/community/questions/cdn-subdomin-url-and-cloudflare but it doesn’t work for me.

I did the following:

  • Created a new space on DO, chose to work with CDN (and received an address, for example https://<bucket>.ams3.cdn.digitaloceanspaces.com
  • Generated origin Server cert for domain.com on Cloudflare
  • Adding new CNAME record on Cloudflare with name: static and content: https://<bucket>.ams3.cdn.digitaloceanspaces.com
  • I set up my own subdomain in the DigitalOcean space and specified the following: the name of the certificate is static, uploaded the certificate and private key from the certificate of the original Cloudflare server, specified the link static.domain.com.
  • After that, when I try to open static.domain.com in browser, I am getting the following error: Invalid SSL certificate Error code 526

Who had a similar problem?



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!

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.

Hi there,

When you added your custom SSL certificate, did you also add the Cloudflare CA certificate as well?

If not, you can get it from here and re-add the certificate in your DigitalOcean acount and include the CA certificate:

https://developers.cloudflare.com/ssl/origin-configuration/origin-ca

I’ve just tested this with with the CA certificate added and it seems to be working as expected.

Let me know how it goes!

Best,

Bobby

I had the same problem and contacted support. Their reply was:

"Hello,

Thanks for getting in touch! I will be happy to help you here.

I understand that you are experiencing issues in setting up the custom SSL certificate created from Cloudflare for the CDN. We do not support the SSL certificate created from Cloudflare. So I would recommend create the SSL certificate from a different SSL Certificate Authority and let us know if you are able to successfully setup the SSL for the CDN services."

So it seems cloudflare is not supported as a Certificate Authority.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.