GGG
GGG

Reputation: 1

SSL with a CNAME pointing to Cloudflare

I'm trying to host a static website on IPFS by pinning the content on my IPFS node and pointing my DNS to cloudflare-ipfs.com. I have my CNAME pointing to cloudflare-ipfs.com. and the _dnslink properly set up. I use Namecheap for DNS. HTTP works great.

However I'm following the guide on Cloudflare but having trouble with the SSL part here.

Specifically it says:

Cloudflare will issue you a free SSL certificate for your.website, which allows users to load https://your.website.

It's really unclear how I'm issued this free SSL certificate so I'm trying to debug what the next steps are.

Currently going to https://cloudflare-ipfs.com/ipfs/<my-hash> works fine. However going to https://mywebsite.com will give me an insecure padlock warning, and if I click "accept risk and continue to website" I get a 403 Cloudflare error. Research online shows Cloudflare gives a 403 error when the SSL certificate isn't matching for subdomains. The certificate that is served is indeed only valid for cloudflare-ipfs.com and *.cloudflare-ipfs.com, which matches my experience that the Cloudflare URL works, but https://mywebsite.com does not.

If the CNAME points to Cloudflare, wouldn't it be a Cloudflare server providing the certificate? If so, how would I be able to get Cloudflare to provide an SSL certificate including my website domain? (i.e. it's their server). Is their guide suggesting that I need to sign up for an SSL certificate through them, (and then they will do something in the background that serves the certificate for my site)? Or is there a way to get an SSL certificate from Namecheap and have cloudflare-ipfs serve it?

Upvotes: 0

Views: 819

Answers (1)

zionfuo
zionfuo

Reputation: 11

You can try Meson Network ipfs public gateway.

Origin IPFS link

https://ipfs.io/ipfs/QmTiBvaKcCk7LU8zLsKdjrjnPhpQBiWp14Nb5PtffD6xid

Accelerated link by meson

https://coldcdn.com/api/cdn/4wdhj2/QmTiBvaKcCk7LU8zLsKdjrjnPhpQBiWp14Nb5PtffD6xid

Upvotes: 0

Related Questions