Fix Cloudflare SSL Error 526: Invalid SSL Certificate
Cloudflare Error 526 means Cloudflare cannot validate the SSL certificate on your origin server. This happens when Cloudflare connects to your server in Full (strict) or Full SSL mode and the certificate on your origin is invalid, expired, or self-signed without being trusted.
Understanding Cloudflare SSL Modes
Why Error 526 Occurs
Fix Option 1 — Use Cloudflare Origin CA Certificate (Recommended)
Cloudflare offers free Origin CA certificates trusted by Cloudflare's edge servers. This is the best approach for Full (Strict) mode:
Fix Option 2 — Install a Valid Public Certificate
If you want a certificate that also works without Cloudflare, use Let's Encrypt or another public CA:
Fix Option 3 — Downgrade to Full (Not Strict)
If you need a quick fix and have a self-signed certificate on origin, switch to Full mode (not strict) in the Cloudflare dashboard. This still encrypts traffic but does not validate the origin certificate. Upgrade to Full (Strict) once you have a valid cert.
Verify the Fix
Monitor your origin certificate
Even Cloudflare-proxied sites can trigger Error 526 when origin certs expire. CertNotify monitors both the Cloudflare edge and your origin certificate and alerts you 30 days before expiry.