I’ve been trying to install and setup NGINX and Cloudflare using these guides:
Though when trying to connect to the website I’m having no luck, like listed below I’ve tried adding the SSL Certificates and it looked like I was getting somewhere but then I realised Cloudflare wasn’t enabled and no it wasn’t working before re-enabling it.
I don’t have any other settings enabled when it comes to the SSL settings under edge certificates.
I’m just at a loss as what to try at the moment as I can access the default website via the external IP and Internal IP, just not the domain name?
On the last guide I noticed in the comments that I was using the wrong Cloudflare cert to use with client signing but even after updating this to the one from this page (I’m using RSA) it still doesn’t work properly.
I’ve also heard that I should try using Lets Encrypt? Though how would I even go about doing this with Cloudflare and NGINX, or should I even be thinking of that right now?
If using the Cloudflare proxy, you need an edge certificate so clients connecting to Cloudflare use SSL.
You also need an SSL certificate on your origin so the connection between Cloudflare and your origin is also secured with SSL (SSL/TLS mode “Full (strict)”). Not using SSL between Cloudflare and your origin (“Flexible” mode) is insecure.
You don’t specifically need to use a Cloudflare origin certificate on your origin, you can use LetsEncrypt or another trusted CA. A Cloudflare origin certificate can be valid for up to 15 years, but requires use of the Cloudflare proxy - attempting to use it directly will throw a warning in your browser as it is only trusted by Cloudflare, not browsers.
The link above solved my issue as I was using the wrong verification key, I’m using RSA whilst the verification key was using ECC or EEC.
So jordanpicton.xyz works fine for me now. Though I’ve tried applying all this knowledge to a different server block and I’ve still got the same problem as when I first started this post. But I’ve made all the same changes that I made to jordanpicton.xyz.
The difference between them being the listen 443 SSL http2. Why is it that this works and the first one doesn’t?
Thanks in advance,
~Blood
(I figured it out, I needed to make them all the same and remove or update the Default server block to have the same settings and the others. I also then needed to go into Cloudflare and actually have the DNS pointing towards the host machine compared to a different source.)