How to Enable Free SSL on Cloudflare
To enable free SSL on Cloudflare, put a free certificate on your origin server, switch the SSL/TLS mode to Full (Strict), then force HTTPS. The default Flexible mode leaves the Cloudflare to origin hop unencrypted.
How Cloudflare SSL modes actually work
Cloudflare sits between your visitors and your origin server, so there are two separate connections to secure. The SSL/TLS mode you choose controls the second one.
| Mode | Visitor to Cloudflare | Cloudflare to Origin | Verdict |
|---|---|---|---|
| Off | Plain HTTP | Plain HTTP | Never use |
| Flexible | Encrypted HTTPS | Plain HTTP (port 80) | Insecure, causes redirect loops |
| Full | Encrypted HTTPS | HTTPS, no certificate validation | Vulnerable to interception |
| Full (Strict) | Encrypted HTTPS | HTTPS with a verified certificate | The correct production setting |
Step 1: Get a free certificate for your origin server
Full (Strict) requires a certificate on your server that Cloudflare can verify. You have two free options.
- Cloudflare Origin CA. In the Cloudflare dashboard open SSL/TLS, then Origin Server, and create a certificate. It is valid for up to 15 years, but Cloudflare is the only party that trusts it, so it only works behind the orange cloud proxy.
- A publicly trusted certificate. A free Let's Encrypt certificate from TryFreeSSL works whether traffic goes through Cloudflare or directly to your server, which makes migrations and debugging much easier. It lasts 90 days and renews automatically with Certbot.
Install the certificate in your web server (Nginx, Apache, or your hosting panel) and confirm the site answers on port 443 before changing any Cloudflare settings.
Enable free SSL on Cloudflare: Full (Strict)
- Open the Cloudflare dashboard and select your domain.
- Go to SSL/TLS, then Overview.
- Change the encryption mode to Full (Strict).
- Under Edge Certificates, enable Always Use HTTPS.
If the site breaks the moment you switch, the origin certificate is missing, expired, or issued for the wrong hostname. Fix the origin first, then switch modes.
Enable free SSL on Cloudflare: force HTTPS
Always Use HTTPS handles requests that reach Cloudflare, but your origin should also enforce the redirect for direct traffic. Generate the exact rule for your server with our HTTPS Redirect Generator and test the result with curl -I http://example.com. You want a single 301 to the HTTPS version, not a chain of two or three redirects.
Fixing Error 525 and Error 526
Error 525 (SSL handshake failed) means Cloudflare could not complete a TLS handshake with your origin. Usual causes: nothing is listening on port 443, a firewall blocks Cloudflare's IP ranges, or the server has no certificate at all.
Error 526 (invalid SSL certificate) means the origin presented a certificate Cloudflare could not validate: expired, self-signed (in Full Strict mode), wrong hostname, or a missing intermediate. Run your domain through our free SSL checker against the origin IP to see exactly which link in the chain is broken.
Related reading: fixing Cloudflare error 525 and Cloudflare SSL vs Let's Encrypt.
Frequently Asked Questions
Is Cloudflare Flexible SSL ever acceptable?
No. It shows visitors a padlock while the traffic between Cloudflare and your server travels in plain text, which is worse than honest HTTP because it hides the risk. Always use Full (Strict) with a real origin certificate.
Do I still need a certificate on my server if Cloudflare gives me one?
Yes. The Cloudflare edge certificate only covers the visitor-to-Cloudflare leg. The origin needs its own certificate for Full (Strict), either from Cloudflare Origin CA or a public CA like Let's Encrypt.
Why does my site show a redirect loop after enabling SSL?
Almost always because the origin forces HTTPS while Cloudflare is in Flexible mode and connects over HTTP, so the origin redirects forever. Switch to Full (Strict) and the loop stops.
How do I verify the whole chain works?
Check the edge certificate and headers with the Security Headers Checker, then check the origin directly by IP with the SSL Checker. Both should show a valid, unexpired chain.
✅ 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.