Cloudflare Error 525: SSL Handshake Failed

Share
Ongoing All Updated November 13, 2026Based on 3 user reportsHow we research

Quick answer

Error 525 means the TLS handshake between Cloudflare and your origin failed while SSL mode is Full or Full (strict). Install a valid certificate and open port 443.

Most likely fix: Install a certificate on the origin

How to fix it

Try these in order — the most common fix is first.

  1. 1. Install a certificate on the origin

    1. Generate a free Cloudflare Origin CA certificate under SSL/TLS > Origin Server
    2. Install it in nginx/Apache and reload
    Did this fix it?
  2. 2. Open port 443

    1. Check the host firewall and cloud security group allow inbound 443
    2. Test with openssl s_client -connect <origin-ip>:443 -servername <domain>
    Did this fix it?
  3. 3. Read the error logs

    1. Check Apache mod_ssl or nginx error logs at the time of the error
    2. Look for resets during the handshake
    Did this fix it?
  4. 4. Temporary workaround

    1. Set SSL/TLS mode to Flexible only to restore the site briefly, then fix the origin (Flexible is not encrypted to your origin)
    Did this fix it?

Symptoms

'Error 525 SSL handshake failed' appears on a proxied site; it often starts right after changing SSL mode or moving hosts.

Why it happens

  • No SSL certificate installed on the origin
  • Port 443 closed or blocked
  • Origin does not support SNI
  • Cipher suite mismatch with Cloudflare
  • Authenticated Origin Pulls misconfigured

This guide also covers

  • cloudflare error 525
  • ssl handshake failed cloudflare
  • 525 cloudflare nginx

Still not working?

If Cloudflare keeps failing, you're not alone. See every Cloudflare problem users report or the alternatives people switch to.

Have an app idea? Our small team builds any software: web and mobile apps, games, desktop, AI tools. Price agreed together.

Talk to us
Fixed it? Share this guide

Other Cloudflare errors

All 15 Cloudflare errors and fixes →