Australian cloud for business software — built and run in Sydney since 2002

NetLeverage
NetLeverage

Cloudflare Error 526: Invalid SSL certificate

Technical article
Troubleshooting

About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.

Cloudflare Error 526 means Cloudflare cannot validate the origin SSL certificate while SSL/TLS mode is Full (strict). Repair names, expiry, chain and CA; install a Cloudflare Origin CA certificate; or add a self-signed certificate to the Custom Origin Trust Store. Switching to Full only skips validation — use it briefly. This is not Error 525, where the handshake itself fails.

What the symptom means

Cloudflare titles the fault "Error 526: invalid SSL certificate" and states: "This error indicates that Cloudflare is unable to verify the SSL certificate on your origin server, preventing a secure connection from being established."

Error 526 occurs when both are true: Cloudflare cannot validate the origin certificate, and "Full SSL (Strict) SSL is set in the Overview tab of your Cloudflare SSL/TLS app."

Full (strict) is similar to Full, "but with added validation of the origin server’s certificate, which can be issued by a public CA like Let’s Encrypt or by Cloudflare Origin CA." Full still uses HTTPS for HTTPS visitors without that validation.

Likely causes

Cause What you see How to confirm
Certificate expired or not yet valid 526 after a missed renewal Origin certificate notAfter / notBefore
Certificate revoked 526 while dates look fine CA revocation status for the leaf
Self-signed certificate under Full (strict) 526 on every path Leaf not signed by a trusted CA
Name mismatch 526 for one hostname only Common Name / SAN vs requested host
Incomplete certificate chain 526; leaf alone presented Missing intermediate CA certificates
Port 443 not accepting TLS Failures that may present as related origin TLS faults Listener on SSL port 443

Prove the cause before changing anything

These steps only read.

  1. Confirm SSL/TLS > Overview shows Full (strict) / Full SSL (Strict).

  2. Review the origin certificate: not expired, not revoked, signed by a Certificate Authority (not self-signed), hostname in Common Name or Subject Alternative Name, complete chain (leaf plus intermediates), and SSL port 443 accepting connections.

  3. Cloudflare also suggests temporarily pausing Cloudflare and checking the hostname with an SSL checker. Save proxy state before any pause or DNS-only change.

Fix

Repair or replace the origin certificate (preferred)

Save copies of the current origin certificate and private key files first (paths vary; use the paths your server actually uses):

cp /etc/ssl/example.com/fullchain.pem fullchain-before.pem
cp /etc/ssl/example.com/privkey.pem privkey-before.pem

Risk: the next step replaces the TLS certificate and private key the origin presents to Cloudflare. A mismatched key, wrong names or incomplete chain keeps Error 526 in place under Full (strict), or can break HTTPS for every hostname that shares that pair until you restore the previous files.

Install a public CA certificate with the correct names and full chain, or a Cloudflare Origin CA certificate. For a self-signed certificate you must keep, add it to the Custom Origin Trust Store so the edge recognises it as valid. Point the web server at the new files, test the configuration, and reload with your normal process.

To undo it: restore fullchain-before.pem and privkey-before.pem to the live paths and reload the web server again.

Temporary workaround: set SSL to Full instead of Full (strict)

"For a potential quick fix, set SSL to Full instead of Full (strict) in the Overview tab of your Cloudflare SSL/TLS app for the domain."

Record the current encryption mode first:

echo "ssl_mode=<mode shown in Overview>" > cloudflare-ssl-mode-before.txt

Write the mode the Overview tab shows.

Risk: the next step changes the zone from Full (strict) to Full, so Cloudflare still uses HTTPS to the origin for HTTPS visitors but stops validating the origin certificate until you return to Full (strict).

In SSL/TLS > Overview, choose Full. Retest the URL that returned 526.

To undo it: set the mode back to Full (strict) per cloudflare-ssl-mode-before.txt after the origin certificate validates.

"If possible, Cloudflare strongly recommends using Full or Full (strict) modes to prevent malicious connections to your origin." Flexible is not the Error 526 workaround Cloudflare lists.

Pause or DNS-only while you inspect the origin certificate

Save the DNS proxy state first:

echo "www.example.com proxied=yes" > cloudflare-dns-proxy-before.txt

Disruptive step: the next change pauses Cloudflare or sets the hostname to DNS-only, so traffic bypasses the proxy and the origin IP is visible until you reverse it.

Pause Cloudflare or set DNS only, then verify the origin certificate. The Error 526 page suggests that check but does not give the pause or DNS-only clicks. Repair names, dates and chain before returning traffic to the proxy.

To undo it: end the pause or set the record back to Proxied per cloudflare-dns-proxy-before.txt, and keep Full (strict) once the certificate validates.

Example (illustrative): renewal installed the leaf without intermediates under Full (strict). Reinstalling leaf plus intermediates clears 526; switching to Full would only hide the broken chain.

Confirm the fix

  1. With Full (strict) and the hostname proxied, reload the URL; it should not return Error 526.
  2. Confirm a complete chain and the hostname on the certificate.
  3. If you used Full temporarily, return to Full (strict) and retest.

What to watch afterwards

  • Renewals that drop intermediates.
  • New hostnames missing from the certificate SAN list.
  • Custom Origin Trust Store entries after replacing a self-signed certificate.

Risks and limits

These steps have not been lab-tested.

Error 526 requires Full (strict). Leaving the zone on Full disables origin certificate validation for that mode. Separate 526 cases exist for Gateway (Zero Trust) and for Workers subrequests to non-proxied hostnames (always Full (strict) for those fetches). DNS-only or a pause removes proxy protections while active.

Sources

  • Error 526 — Cloudflare, Last updated Oct 12, 2026, accessed 1 December 2026
  • Encryption modes — Cloudflare, Last updated Apr 16, 2026, accessed 1 December 2026