How to add SSL for domain of namecheap

Hello everyone,

I can link the domain to an IPFS hash following this tutorial Link a domain | IPFS Docs but could not add a SSL certificate on it (I bought the SSL and followed the instruction here https://www.namecheap.com/support/knowledgebase/article.aspx/9840/67/how-do-i-activate-a-multidomain-ssl-certificate/ but it didn’t work.

Thank you!!

Unfortunately, you can’t do that with the gateway.ipfs.io. However, you CAN use SSL with Cloudflare’s gateway:

https://developers.cloudflare.com/distributed-web/ipfs-gateway/connecting-website

Bascially, just swap gateway.ipfs.io with cloudflare-ipfs.com then follow the instructions at https://developers.cloudflare.com/distributed-web/ipfs-gateway/connecting-website#make-it-all-secure.

1 Like

Thanks for your instruction, it works well. But do you know how to redirect HTTP to HTTPS? Both protocols work but HTTP isn’t redirected to HTTPS.

You probabably have to use a meta redirect:

https://www.w3.org/TR/WCAG20-TECHS/H76.html

Otherwise, you’d need to convince cloudflare to add it as an option.

1 Like