Cloudflare Tunnel SSL: HTTPS Without an Origin Cert
Cloudflare Tunnel lets you publish a web app from a machine with no public IP and no open inbound port. People ask the same question every time: where does the SSL certificate go? For public HTTPS the answer is that you do not install one. Cloudflare presents the certificate to visitors. This guide explains what is encrypted where, which parts you still decide, and the mistakes that cause errors. It follows the current Cloudflare One and SSL/TLS documentation.
How a tunnel works
A small program called cloudflared runs on your server and opens outbound connections to Cloudflare's network. Cloudflare says a tunnel is a persistent object identified by a UUID, and you can run several cloudflared connectors for the same tunnel. Because the connection goes outward, you can block all inbound traffic at the firewall. If your firewall is strict, Cloudflare tells you to check that the server can reach Cloudflare on port 7844.
Authenticated Origin Pulls does not apply to hostnames routed through a tunnel, because there is no inbound listener. The tunnel credentials already authenticate the origin.
Where the certificate comes from
Cloudflare issues and renews free Universal SSL certificates for every domain active on Cloudflare. On a full setup they cover the root domain and first-level subdomains such as www.example.com. These are Domain Validated certificates.
| Link | Protected by | You manage |
|---|---|---|
| Visitor to Cloudflare | Universal SSL certificate | Nothing |
| Cloudflare to cloudflared | The tunnel connection | Tunnel credentials |
| cloudflared to your app | Your Service URL | HTTP or HTTPS choice |
Publish an application
In the Cloudflare dashboard, go to Networking, then Tunnels, and create a tunnel. Run the install command it gives you on your server and wait for it to connect. Then open the tunnel, go to Routes and add a Published application route:
- Enter a subdomain and pick your domain.
- In Service URL, enter the protocol and address of your app, such as
http://localhost:8000. - Select Add route.
The domain must already be added to Cloudflare. Anyone on the internet can reach the hostname after that, so add an Access application if the app is private.
Pick the right service URL
The hop between cloudflared and your app runs on your own machine or network. Plain http://localhost:8000 is the normal choice. If your app already serves HTTPS, or redirects HTTP to HTTPS, Cloudflare points you to a separate troubleshooting page before you choose the Service URL. A redirect loop is the usual symptom when the app forces HTTPS and the tunnel talks to it over HTTP.
If the app serves HTTPS with a self-signed or private certificate, cloudflared has origin settings for this. They include originServerName, caPool and noTLSVerify. Prefer a private CA with caPool over turning off verification. A config file fragment looks like this:
ingress:
- hostname: app.example.com
service: https://localhost:8443
originRequest:
originServerName: app.example.com
- service: http_status:404
Multi-level subdomains
Cloudflare notes that if you add a hostname with more than one level of subdomain, you must order an Advanced Certificate for it. Universal SSL does not cover a.b.example.com on a full setup. A browser certificate warning on a deep hostname is the sign.
When you still need a certificate
- You also expose the origin directly on a public port. Then see Cloudflare Origin CA vs Let's Encrypt.
- You serve other services on the same host without the tunnel. Use Certbot for those.
- You run a reverse proxy in front of the app, as in the Traefik guide.
Check the result
Open the hostname in a private window and inspect the certificate. Use the free SSL checker, and read what an SSL certificate chain is if a client reports a chain error. If the browser shows an error, the cause is in the reverse proxy troubleshooting guide more often than in the tunnel.
Sources: Cloudflare One docs on Cloudflare Tunnel and creating a tunnel, and Cloudflare SSL/TLS docs on Universal SSL.
✅ Post-Installation Verification & SEO Checklist
After applying the steps above, run through this 5-point checklist to prevent browser warnings and protect your Google SEO rankings:
- Verify full CA chain trust and TLS 1.3 support using our Live SSL Checker.
- Scan for Mixed Content HTTP links and check HSTS/CSP headers on Security Headers Checker.
- Enforce a permanent 301 HTTP-to-HTTPS redirect with our HTTPS Redirect Generator.
- Confirm both root and
wwwversions resolve cleanly to one canonical HTTPS URL. - Verify your HTTPS property and
sitemap.xmlinside Google Search Console and Bing Webmaster Tools.