Cloudflare error 525: SSL Handshake Failed

Cloudflare couldn’t set up a secure (TLS) connection with the website’s server. This is an unofficial code used by Cloudflare. You won’t find it in the HTTP standard.

SSL Handshake Failed

5xx Server errorUnofficial: CloudflareCloudflare docs: error 525

Cloudflare couldn’t set up a secure (TLS) connection with the website’s server.

Example response
HTTP/2 525
server: cloudflare
cf-ray: 8f1c2a3b4d5e6f75-LHR
content-type: text/html; charset=UTF-8

<!DOCTYPE html>… Error 525: SSL handshake failed …

What 525 means

Unofficial, used by Cloudflare. The secure (TLS) handshake between Cloudflare and the website’s own server failed.

When servers send it

When the site uses Cloudflare’s Full or Full (strict) SSL mode and the origin can’t complete a TLS handshake.

Common causes

  • No certificate installed at the origin, or HTTPS not set up on port 443.
  • The origin not supporting SNI or any cipher Cloudflare offers.
  • A firewall interfering with port 443.

How to fix it as a developer

  • Make sure the origin serves HTTPS on port 443 with a certificate. A free Cloudflare Origin CA certificate works.
  • Test the handshake directly with openssl s_client -connect origin:443 -servername example.com.
  • Check the origin supports modern TLS versions and ciphers.

How to fix it as a visitor

  • Try again later. The site has a configuration problem.

Related codes

Where it’s defined

525 isn’t in any RFC or the IANA status code registry. It’s used by Cloudflare. Reference: Cloudflare docs: error 525.

Other 5xx codes

500 Internal Server Error · 501 Not Implemented · 502 Bad Gateway · 503 Service Unavailable · 504 Gateway Timeout · 505 HTTP Version Not Supported · 511 Network Authentication Required · 520 Web Server Returned an Unknown Error · 521 Web Server Is Down · 522 Connection Timed Out · 523 Origin Is Unreachable · 524 A Timeout Occurred · 526 Invalid SSL Certificate

Or search them all in the HTTP status code list.

Questions people ask

What does HTTP 525 SSL Handshake Failed mean?
Cloudflare couldn’t set up a secure (TLS) connection with the website’s server. It’s an unofficial code used by Cloudflare, not part of the HTTP standard.
What’s the difference between 525 and 526?
525: the TLS handshake with the origin failed outright. 526: the handshake worked, but in Full (strict) mode the origin’s certificate wasn’t valid.
Is 525 a problem with my browser’s connection?
No. Your connection to Cloudflare is fine. It’s the connection from Cloudflare to the website’s server that failed.
↑↓ move↵ openesc close