I need help with adding SSL certificate to my website.
I have followed thousands of documentation on cloudflare just to fix this. I am using windows 11, so i am using nginx to self host my website (for now). I have bought a domain in namecheap and i have no clue how to write the nginx config so that it is configured in a way where SSL and dns is routed through cloudflare and all of that.
Before attempting to use Cloudflare I used ZeroSSL and they gave me a certificate.crt and private key and it was working fine I linked the .crt and key in nginx conf and that was it but i was not so interested in using that as Cloudflare is 100x better and it can do the same job but there's no exakt documentation for my case and im surely hoping someone has had the same issue as me.
8 Replies
I just want to add ssl to my domain 😢
The only Cloudflare provides for export is origin SSL which is only good between Cloudflare and your origin
Whats the difference i dont understand
I want the connection to be secure
and i dont know how to
@Cyb3r-Jok3
There are two parts to the SSl process with Cloudflare. User -> Cloudflare then Cloudflare -> your origin. Cloudflare handles the SSL from the user. You need to have an SSL certificate at your origin so there is a secure connection between Cloudflare and your origin.
Cloudflare offers https://developers.cloudflare.com/ssl/origin-configuration/origin-ca/ which is way for you to get SSL certificates that are trusted by Cloudflare but not trusted by the browser, so proxy needs to be on.
Cloudflare Docs
Origin CA certificates | Cloudflare SSL/TLS docs
Origin Certificate Authority (CA) certificates allow you to encrypt traffic between Cloudflare and your origin web server, and reduce origin bandwidth consumption.
Okay apparently it was related to cloudflare
I just had to wait for everything to settle and get configured
Everything has been sorted
❤️ ¯\_(ツ)_/¯
Thank you for the help