In short. These errors do not come from the visitor's browser: Cloudflare cannot establish (525) or validate (526) the HTTPS connection with your origin server. The visitor has nothing to do. You or your host fix the origin server's certificate or TLS configuration, or Cloudflare's SSL/TLS mode.
Cloudflare defines error 525 as "the SSL handshake between Cloudflare and the origin web server failed", and error 526 as "Cloudflare is unable to verify the SSL certificate on your origin server". Error 526 only appears when the SSL/TLS mode is Full (strict).
Last verified: November 27, 2026, against Cloudflare's official documentation on errors 525 and 526 and on SSL/TLS encryption modes.
Error 525: the SSL handshake fails
Cloudflare says error 525 occurs when the zone uses Full or Full (strict) and the handshake fails, or when a key exchange compliance requirement is enabled but the server does not support the required algorithm.
- Ask your host to rule out: a missing or invalid certificate, port 443 (or another secure port) closed, no SNI support, mismatched cipher suites, and an unsupported key exchange requirement.
- Check the certificate installed on the origin. If there is none, Cloudflare suggests installing a free Origin CA certificate.
- Compare cipher suites between the server and those Cloudflare accepts; see also ERR_SSL_VERSION_OR_CIPHER_MISMATCH.
- Look at the server logs around the time of the errors (Apache mod_ssl logging, a higher log level on nginx).
- If a key exchange compliance requirement is on, remove it in SSL/TLS > Overview > Origin connection & post-quantum encryption: automatic key exchange, with no requirement ticked, negotiates a method both sides support.
Error 526: invalid origin certificate in Full (strict) mode
Error 526 appears when Cloudflare cannot validate your origin server's certificate and the mode is Full (strict).
- Check the origin certificate: it is neither expired nor revoked; it is issued by a certificate authority and not self-signed; its name (Common Name or SAN) matches the domain; the chain is complete (leaf and intermediates); the server accepts connections on port 443.
- Test with an external SSL checker: you can pause Cloudflare temporarily for the test. Our free SSL certificate check will do.
- Install a Cloudflare Origin CA certificate on the origin: this is one of the fixes Cloudflare offers.
- If you keep a self-signed certificate, add it to the Custom Origin Trust Store: Cloudflare will then recognize it as valid.
- Quick fix, less safe: switch the mode from Full (strict) to Full, in the Overview tab of SSL/TLS.
Which SSL/TLS mode to choose?
According to Cloudflare, in Full mode the origin certificate is not validated (a self-signed one works), whereas in Full (strict) it must be valid, whether it comes from a public authority such as Let's Encrypt or from Cloudflare Origin CA. Cloudflare recommends Full (strict); Full is the fallback when Full (strict) is not possible. Flexible, which connects to the origin without encryption, is not recommended when the origin can be upgraded.
Free tool. SSL certificate check
Never be caught out by an expiry again. AttackScout monitoring checks your certificate every day and warns you 30, 14, 7 and 1 day before it expires. Check my domain
Frequently asked questions
Is this a problem with the visitor's certificate?
No. Cloudflare's documentation gives no visitor-side action for 525: it is addressed to the site owner and their host.
What is the difference between 525 and 526?
525: the TLS handshake between Cloudflare and the origin fails. 526: Cloudflare connects but cannot validate the origin certificate in Full (strict) mode.
Related pages
Sources
Accessed on 11/27/2026.
- Cloudflare, Error 525: SSL handshake failed: https://developers.cloudflare.com/support/troubleshooting/http-status-codes/cloudflare-5xx-errors/error-525/
- Cloudflare, Error 526: Invalid SSL certificate: https://developers.cloudflare.com/support/troubleshooting/http-status-codes/cloudflare-5xx-errors/error-526/
- Cloudflare, SSL/TLS encryption modes: https://developers.cloudflare.com/ssl/origin-configuration/ssl-modes/