Opens in a new tab

Cloudflare error 526: Invalid SSL certificate

Cloudflare is set to Full (strict) and the certificate on your server failed its checks: expired, self-signed, issued for another name, or served without its chain. The fix is a valid certificate on the origin — a free Cloudflare Origin CA certificate is enough.

Error 526 Invalid SSL certificate
ErrorError 526 Invalid SSL certificate
Usually fixed byThe website
Shown byCloudflare, instead of your site
Happens inSSL/TLS mode Full (strict)
BetweenCloudflare and your server — not the visitor

Check the certificate a site serves

Cloudflare answers for your domain, so this checks Cloudflare’s certificate; to see your server’s own, connect to its IP address with openssl s_client (below).

What it means

In Full (strict) mode Cloudflare validates your server’s certificate the way a browser would. When validation fails it shows 526 instead of your site. Full mode would connect anyway — it accepts an expired, self-signed or mismatched certificate — which is why switching to Full is a quick fix that removes the protection.

Why it happens

  • The origin certificate has expired or been revoked.
  • It is self-signed, or not signed by a public CA or Cloudflare’s Origin CA.
  • The requested host name is not in its common name or subject alternative names.
  • The server does not send the full chain, or does not accept connections on port 443.

How to fix it

  1. Install a valid certificate on the origin: renew it, or create a free Cloudflare Origin CA certificate covering your host names.
  2. Make sure the server sends the certificate with its intermediate chain.
  3. For a self-signed certificate you want to keep, upload it to Cloudflare’s Custom Origin Trust Store rather than downgrading to Full.

See it for yourself

openssl s_client -connect 203.0.113.10:443 -servername example.com -showcerts

Connect to your origin’s IP address: the output shows the certificate and chain the server sends, and the verification result.

Questions

Does Cloudflare warn me before an Origin CA certificate expires?

No — Cloudflare says it does not currently send expiration notices for Origin CA certificates. Note the expiry date when you create one; they can be issued for up to 15 years.

Sources

Error text and meaning checked on 25 September 2026 against these official sources:

Hear about it before your visitors do

Add your domain and we check its certificate on every scan and email you before it expires, and when it changes or stops being valid — along with DNS, email and security headers. Free for your first domain.

Create a free account