Cloudlare tunnel + NGINX + Origin Server SSL problem

Hi, how to get HTTPS working?
My setup is Raspberry Pi + NGINX + Cloudflare tunnel + Cloudflare Origin Server SSL

I’ll get error in browser: “Your connection is not private” and “certificate is not valid”

I have created Cloudflare acount and added my domain there.

I’ runing NGINX at my Raspberry pi
I have created Cloudflare tunnel:

tunnel: xxxx31c1-0457-5ca0-b1e3-e24ed1bxxxxd
	credentials-file: /home/pi_user/.cloudflared/xxxx31c1-0457-5ca0-b1e3-e24ed1bxxxxd.json

  	  - service: https://localhost:443

Created Origin server certificates from Cloudflare
And save them in Raspberry.
NGINX sites-availeble:

server {
        	listen 80 default_server;
        	listen 443 ssl;
        	listen [::]:443 ssl;
        	ssl_certificate /etc/nginx/test.crt;
        	ssl_certificate_key /etc/nginx/test.key;

Cloudflare SSL is set to Full (strict)

Hello there,

Check if you’ve have the CAA records added in the DNS entry. For more read here:

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.