Skip to content
Log In Sign Up info@muvcloud.com

What Error 525 Means

In the Full and Full (strict) SSL modes, the edge connects to your origin over HTTPS. Error 525 means the TCP connection worked but the TLS handshake on top of it failed: the server sent no certificate, closed the connection, or could not agree on a protocol version or cipher. If the handshake works but the certificate is invalid under Full (strict), the edge shows error 526 instead.

If You See It on Someone Else's Site

  • Reload later: the problem is between the CDN and the site's server, not in your browser.
  • Leave your settings alone: clearing the cache or changing the clock does not help with a 525.
  • Tell the site owner the time and the Ray ID shown on the error page.

The SSL Mode and What It Expects

ModeEdge to originOrigin needs
FlexibleHTTPNo certificate
FullSame as visitorAny certificate
Full (strict)HTTPSA valid certificate for the name

Switching to Flexible hides a 525 but leaves traffic between the edge and your server unencrypted, and it causes redirect loops when the server redirects to HTTPS. Fix HTTPS on the origin and use Full (strict).

Is Anything Listening on Port 443?

sudo ss -tlnp | grep ':443 '

Nginx needs a server block with listen 443 ssl; plus ssl_certificate and ssl_certificate_key lines. Apache needs mod_ssl: sudo a2enmod ssl on Debian and Ubuntu, sudo dnf install mod_ssl on AlmaLinux and Rocky Linux, and a virtual host on port 443. Test with sudo nginx -t or sudo apachectl configtest before you reload.

Test the Handshake with openssl

openssl s_client -connect 203.0.113.10:443 -servername example.com </dev/null

A working handshake prints the certificate chain, the subject and issuer, the negotiated protocol, and a verify return code. A failed one ends early with an alert or reports that no peer certificate is available. Run it from a machine your firewall allows to reach port 443.

SNI and the Right Server Block

The edge sends the site's host name in the handshake (SNI). Nginx picks the server block whose server_name matches; if none matches, it uses the default server for port 443. When that default has no working certificate, the handshake fails for every unmatched name. Make sure each proxied host name, including www and other subdomains, has an HTTPS server block. Run the openssl test once with and once without -servername to compare.

Protocol and Cipher Mismatch

A configuration that allows only very old protocols, or a cipher list cut down too far, leaves nothing in common with the edge. Keep TLS 1.2 and 1.3 enabled:

ssl_protocols TLSv1.2 TLSv1.3;

Start from your distribution's default cipher settings rather than a hand-written short list. Test each version with -tls1_2 and -tls1_3 added to the openssl command.

A Certificate for the Origin

  • Let's Encrypt: certbot issues a publicly trusted certificate that works for visitors and for the edge.
  • A Cloudflare Origin CA certificate: created in the Cloudflare dashboard and trusted only by Cloudflare, so visitors who reach the server directly see a warning.

Either one passes Full (strict) as long as it covers the host name and has not expired.

Confirm the Fix

curl -I https://example.com/

Through the CDN, expect 200. If the handshake now works but the edge times out, see error 522 or error 524.

Updated:

Linux VPS with Full Root Access

MUVCloud cloud servers run on KVM with Enterprise NVMe SSD storage and full root access, in Turkey, the Netherlands, and the USA.

Cloud VPS Plans Starting at2.99 $/mo Cheap Linux VPS

No Limits on Service or Support

You are not on your own as your projects grow. Our support engineers are ready 24/7, on several channels, whenever you need them.

Support specialist
  • 100% customer satisfaction goal
  • Our own hardware
  • 24/7 ticket and email support
  • 4 countries with locations