SSL ERRORS
525 SSL handshake failed: causes and fixes
Cloudflare error 525 means the edge-to-origin TLS handshake failed. The visitor-facing edge can have a valid certificate while this separate connection fails.
What it means
Locate the origin listener and the TLS policy Cloudflare uses for it. Intermittent errors can indicate different origin nodes or configurations. The error is an HTTP response produced after the browser has already connected to the edge, so checking only the public edge expiry misses the failing TLS leg.
What to check
- Record the failing request time and Cloudflare request identifier if available.
- Inspect origin TLS error logs and determine which listener or backend accepted the attempt.
- Check origin TLS availability, SNI support and the expected secure protocol configuration.
Test the connection
curl -Iv --connect-timeout 10 --max-time 20 https://www.example.com/
# Authorized origin test with the same hostname:
curl -Iv --resolve 'www.example.com:443:192.0.2.20' https://www.example.com/Use the origin’s IP for the second request. Cloudflare Origin CA certificates use Cloudflare’s origin trust; a direct test needs that trust configured. Publicly trusted origin certificates can be checked with the client’s public CA store.
How to fix it
- Repair the origin listener or certificate deployment shown by the logs.
- Align the supported secure handshake configuration and intended SNI virtual host.
- Retest each relevant origin node and a request through Cloudflare; keep origin verification enabled where required.
Check the fix
Confirm that authorized edge-to-origin connections complete and the original public request succeeds. A direct test must use the correct hostname and trust context, especially for Origin CA certificates.
Details worth checking
Match the error time to the origin logs. For intermittent failures, compare each origin node’s listener, certificate and TLS configuration.