Diagnosing Cloudflare error 525 during the origin TLS handshake

Cloudflare error 525 means its TLS handshake with the origin failed. The browser may already have a valid connection to Cloudflare, so focus on the origin’s secure listener and handshake evidence.

Gather the details you will need

Record the failing hostname, URL, UTC time and Ray ID. Confirm the configured origin address and whether the error affects every request or only some servers or moments.

01 Diagnose Cloudflare error 525 during the origin TLS handshake

  1. Check that the origin web server is running and accepts HTTPS on the configured secure port.
  2. Verify a certificate and matching private key are installed for the requested hostname, with SNI support and compatible TLS settings.
  3. Ask the provider to test the origin with the real hostname and inspect SSL error logs at the recorded time. A bare-IP browser test can select the wrong virtual host.
  4. Review firewall or connection limits that could reset Cloudflare’s handshake, including intermittent resource exhaustion.
  5. Correct the identified listener, certificate or TLS problem and repeat the public request under the intended Full (strict) configuration.

Confirm the expected result

The origin should complete the handshake consistently and serve the application through Cloudflare. Test several requests if the failure was intermittent.

If the problem continues

Distinguish 525 from 526, which specifically concerns origin certificate validation under strict mode. Do not erase log evidence or weaken all server cipher settings without identifying the compatibility issue. Shared-hosting customers should provide the diagnostic details to support.

Will clearing the CDN cache fix a TLS handshake?

No. Cache purging does not repair the origin’s TLS listener or negotiation. It may increase origin requests, so resolve the connection problem first.

Sources and further reading

  • 0 Users Found This Useful
  • performance, security-ssl
Was this answer helpful?

Related Articles

Diagnosing a pending Cloudflare edge certificate

An edge certificate protects the browser-to-Cloudflare connection. If its status remains...

Moving a Cloudflare site to Full strict TLS safely

Full (strict) encrypts the Cloudflare-to-origin connection and validates the origin...

Enabling HSTS only after all required hostnames support HTTPS

HSTS tells browsers to require HTTPS for a period of time. Enable it only after HTTPS is...

Finding mixed content when HTTPS works through Cloudflare

Mixed content occurs when an HTTPS page requests assets through HTTP. The main certificate can...

Installing a Cloudflare Origin CA certificate and understanding its trust

Cloudflare Origin CA certificates secure traffic between Cloudflare and a proxied origin. They...