Hey!
We use Digitalocean’s spaces with enabled CDN to keep static files. And we decided to try a custom domain. To do that, I have created an Origin SSL certificate in my Cloudflare Dashboard and loaded it to the DO. Then I just applied it to CDN’s custom domain. Also, I have created a CNAME record: cdn.my.domain → DO’s Edge URL.
So far looks good, but:
While I can reach my files with new name via HTTP, HTTPS doesn’t work and I see that error:
According to the DO’s support:
" The reason that you are getting this error is due to a policy by Cloudflare. They do not allow for 3rd level domains to work with their free SSL certificates. So if you created main.example.com it would work without issue. But the moment you add another level to the domain - cdn.main.example.com - it will not work. The only way to get it to work is to purchase a dedicated SSL from Cloudflare."
Can someone confirm that?
To clarify, this is because it would require, literally, unlimited certificates for doing this…. *.*.example.com isn’t a possible hostname that can be added to a certificate, it’s simply not accepted by anyone.