Cloudflare error 526: invalid SSL certificate
Full (strict) mode rejected your origin's certificate: expired, self-signed, wrong name or missing chain. How to check it and fix it properly.
· 3 min read · By the Spot Downtime team
Error 526: Invalid SSL certificate means Cloudflare connected to your origin over HTTPS, looked at its certificate, and refused to trust it. You only get it in Full (strict) mode, which is the one doing its job: it checks your origin's certificate the way a browser would.
What makes the certificate invalid
It expired
Visitors don't see your origin certificate, Cloudflare's edge certificate is what they get, so an expired origin certificate can go unnoticed until strict mode rejects it. Renewal jobs on origins behind Cloudflare fail quietly more often than you'd think.
It's self-signed
Fine for Full mode, rejected by Full (strict).
It doesn't cover the hostname
The certificate is for example.com but the request is for www.example.com or app.example.com. Check the names it lists.
The chain is incomplete
The server sends only its own certificate without the intermediate. Use the full chain file (for Let's Encrypt, fullchain.pem, not cert.pem).
Check the origin's certificate
openssl s_client -connect 203.0.113.10:443 -servername example.com </dev/null 2>/dev/null \
| openssl x509 -noout -subject -issuer -dates -ext subjectAltNameHow to fix it
Pick one:
Install a Cloudflare Origin CA certificate. Free, long-lived, and trusted by Cloudflare in strict mode. The simplest option when all traffic goes through Cloudflare.
Use a publicly trusted certificate such as Let's Encrypt, with automatic renewal, and the full chain configured.
Don't fix it by switching to Full or Flexible
The best fix is not finding out from a 526. Read why certificates still expire, and consider monitoring the origin directly: Spot Downtime warns you 14, 7 and 1 day before a certificate it checks expires.
Get new guides by email
Practical posts on monitoring, outages, error fixes and on-call, when they're published. No spam.
Keep reading
- Cloudflare errors · DNS · TroubleshootingCloudflare error 1000: DNS points to prohibited IP, and how to fix itError 1000 means a proxied DNS record points at an address Cloudflare won't connect to, often its own IP. How to find the bad record and what to put there instead.November 23, 2026 · 6 min read
- Cloudflare errors · DNS · TroubleshootingCloudflare error 1001: DNS resolution error, causes and fixesError 1001 means Cloudflare could not resolve a hostname it needed. How to find the CNAME, Worker or custom hostname that points at a name with no address, and fix it.November 22, 2026 · 6 min read