Error Codes Wiki

HTTP 525 SSL Handshake Failed — Cloudflare Origin SSL Negotiation Error

Error5xx server error

Overview

Fix Cloudflare HTTP 525 error when the SSL/TLS handshake between Cloudflare and the origin server fails during secure connection setup.

Key Details

  • HTTP 525 indicates the SSL/TLS handshake between Cloudflare's edge and your origin server failed
  • Cloudflare requires a valid SSL configuration on the origin when using Full or Full (Strict) SSL mode
  • The handshake failure can be due to protocol mismatch, cipher suite incompatibility, or certificate issues
  • This error only occurs when Cloudflare's SSL mode is set to Full or Full (Strict) — not Flexible
  • The origin server must support at least TLS 1.2 for compatibility with Cloudflare

Common Causes

  • Origin server SSL certificate expired or not properly installed
  • SSL mode set to Full (Strict) but origin has a self-signed certificate
  • Origin server only supports outdated TLS versions (TLS 1.0/1.1) that Cloudflare no longer negotiates
  • Cipher suite mismatch between Cloudflare and the origin server configuration

Steps

  1. 1Verify origin SSL certificate is valid and not expired: openssl s_client -connect origin:443
  2. 2If using Full (Strict), ensure the origin has a valid CA-signed certificate or a Cloudflare Origin CA certificate
  3. 3Update origin server to support TLS 1.2 or higher in Nginx/Apache SSL configuration
  4. 4Temporarily set Cloudflare SSL mode to Flexible to confirm the issue is SSL-related, then fix and switch back
  5. 5Install a free Cloudflare Origin CA certificate on the origin server for guaranteed compatibility

Tags

cloudflare525sslhandshaketls

Related Items

More in 5xx Server Error

Frequently Asked Questions

It is a free certificate issued by Cloudflare specifically for encrypting traffic between Cloudflare and your origin server. It is trusted by Cloudflare but not by browsers directly, so it only works when proxied through Cloudflare.