I would like to create an https server with NodeJS, with the full (strict) ssl option.
My server is heberged via AWS, and I want this instance’s url unable to get request outside Cloudflare.
I would like that the only way to access to my website is from my domain, proxysed via Cloudflare.
This a simple https server I created, but when I start it, my instance’s url returns an error (what I want), but via Cloudflare it returns a 525 SSL handshake failed.
Are you using the default certificate or did you upload a custom one? From where did you get sslcert/ca-crt.crt? Did you enable client certificate authentication on Cloudflare’s side?
If rejectUnauthorized is false, my instance’s url is reachable, and my domain proxysed via Cloudflare works. But I don’t want my instance’s url being reachable.
key-serveur-origine.key and cert-serveur-origine.crt are certificates generated from my Origin CA panel on Cloudflare.
ca-crt.crt is the Cloudflare Origin ECC PEM certificate.
I didn’t enable client authentification on Cloudflare side.