Let's Encrypt vs Cloudflare SSL
Two certificates, two jobs
When a site sits behind Cloudflare, there are two separate HTTPS connections: visitor to Cloudflare, and Cloudflare to your server. Cloudflare's Universal SSL handles the first. The second needs a certificate on your server, and that is where Let's Encrypt fits.
Let's Encrypt vs Cloudflare: side by side
| Let's Encrypt | Cloudflare SSL | |
|---|---|---|
| Where the certificate lives | Your origin server | Cloudflare's edge network |
| Cost | Free | Universal SSL is included on free plans |
| Validity | 90 days, renewed automatically | Managed and renewed by Cloudflare |
| Setup effort | Install a client such as Certbot | Turn on proxying, little else |
| Protects origin traffic | Yes | Only with a valid origin certificate |
| Works without Cloudflare | Yes | No |
| Wildcards | Yes, via DNS-01 validation | Covers the apex and first-level subdomains for proxied hosts |
Let's Encrypt vs Cloudflare: the four modes
- Off: no HTTPS to visitors. Avoid.
- Flexible: HTTPS to visitors, plain HTTP to your server. Easy but leaves the second hop open, and often causes redirect loops.
- Full: HTTPS to your server, but any certificate is accepted, even self-signed.
- Full (Strict): HTTPS to your server with a certificate that must be valid and trusted. This is the one to aim for.
Full (Strict) accepts either a public CA certificate such as Let's Encrypt or a Cloudflare Origin CA certificate.
Let's Encrypt or Origin CA on the origin?
Cloudflare also offers Origin CA certificates, which can last many years but are trusted only by Cloudflare. Let's Encrypt is trusted by browsers everywhere. Choose based on how you run things:
- Pick Let's Encrypt if you might ever turn off the proxy, test the origin directly, or serve the same host elsewhere.
- Pick Origin CA if you want a long-lived certificate with no renewal job and the site will always stay proxied.
Renewing behind Cloudflare
HTTP-01 validation usually still works through the proxy, but a forced HTTPS redirect or firewall rule can block the challenge. If that happens, switch to DNS-01 using a Cloudflare API token. A minimal Certbot command looks like this:
sudo certbot certonly --dns-cloudflare \
--dns-cloudflare-credentials /root/.secrets/cloudflare.ini \
-d example.com -d www.example.com
Keep the credentials file readable only by root and scope the API token to DNS edits for that zone.
Verify the result
After setup, confirm the origin answers with a valid certificate (see our guide to fixing Cloudflare error 526 for the OpenSSL test), then run the SSL checker on the public hostname and the security headers tool to review HSTS and friends.
Related reading: the Full (Strict) setup, the other Cloudflare and Let's Encrypt comparison and the ZeroSSL comparison.
Frequently Asked Questions
Do I need Let's Encrypt if I use Cloudflare?
For strong security, yes, or an Origin CA certificate. Without a valid origin certificate you are limited to Flexible mode, which leaves the origin hop unencrypted.
Can I use both at the same time?
Yes. This is the recommended setup: Cloudflare's certificate faces visitors and Let's Encrypt faces Cloudflare.
Why does Flexible mode cause a redirect loop?
Cloudflare requests your site over HTTP, your server redirects to HTTPS, and Cloudflare asks over HTTP again. Full (Strict) with an origin certificate ends the loop.
Does Cloudflare replace SSL on my host?
No. It secures the visitor side only. The origin still needs its own certificate for end-to-end encryption.
Can I use both at once?
Yes, and most sites should. Cloudflare terminates the visitor connection, and a Let's Encrypt certificate on the origin keeps the second hop encrypted and verified in Full (Strict) mode.
✅ 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.