Checking origin cipher support for Cloudflare

A Cloudflare 525 SSL handshake failure means the visitor reached Cloudflare’s edge, but Cloudflare could not complete a secure connection with the origin server. The public error therefore says more about the edge-to-origin leg than about the visitor’s browser. Common triggers include TLS being disabled at the origin, no shared protocol or cipher, a certificate or server-name mismatch, and firewall rules that reject Cloudflare’s source addresses.

Before changing a hostname, prove which TLS version, cipher suite and certificate the origin presents when contacted directly. A successful browser request through Cloudflare proves only that the visitor-to-edge leg works; it does not prove that the origin accepts Cloudflare’s TLS settings. This process is designed for Australian administrators and avoids assumptions about the inaccessible site’s owner or purpose.

Why the handshake fails at the origin

TLS negotiation starts with a protocol version and then a mutually supported cipher suite. For an RSA certificate, practical TLS 1.2 candidates include ECDHE-RSA-AES128-GCM-SHA256 and ECDHE-RSA-AES256-GCM-SHA384; for an ECDSA certificate, use ECDHE-ECDSA-AES128-GCM-SHA256 and ECDHE-ECDSA-AES256-GCM-SHA384. Cloudflare also supports ECDHE-RSA-CHACHA20-POLY1305 and ECDHE-ECDSA-CHACHA20-POLY1305. TLS 1.3 names such as TLS_AES_128_GCM_SHA256, TLS_AES_256_GCM_SHA384 and TLS_CHACHA20_POLY1305_SHA256 are configured separately in OpenSSL.

Cloudflare and the origin need one usable overlap, not every published suite. The origin must also have a private key and certificate matching the hostname presented through server name indication, or SNI. A frequent error is offering an ECDSA cipher for an RSA certificate, or enabling TLS on a listener that serves the wrong virtual host. Static-RSA suites may provide compatibility, but they should not be the first choice because they lack forward secrecy.

Current Cloudflare documentation remains the final authority because accepted protocols and edge configuration can change. Keep server TLS notes as a secondary reference while comparing settings, then confirm recommendations against your installed OpenSSL version and the live handshake. Record the exact protocol and cipher instead of treating one successful connection as proof that every configured suite works.

Build a reliable direct test path

Create a DNS-only hostname for the origin, such as origin-direct.example.com, while leaving the live hostname proxied. Point the direct hostname at the actual server address and retain the public hostname as the SNI value in every test. This distinction matters in Australia, where Sydney and Melbourne hosting regions can sit behind provider load balancers or private network rules, and another public DNS answer may lead to a different node.

Test from a machine that can reach the origin directly. Australian homes and small offices often use NBN connections with CGNAT or carrier firewalls, so a failed local connection may reflect the access network rather than TLS. A controlled VPS, an on-premises jump host, or a tunnel under your control can provide a cleaner test without exposing the origin to the public internet.

Check origin firewall and provider access controls before interpreting cipher errors. Cloudflare’s published address ranges are dynamic, so avoid pasting an old list into a firewall rule. If direct testing must be restricted, use a current range source and temporary access for the test host, then remove it. An access-control timeout can look identical to a 525 even when every required cipher is supported.

Run focused OpenSSL cipher checks

Run the probes from a machine with a recent OpenSSL build that supports TLS 1.3. Replace the example hostnames, address and SNI name with your own values. Forcing protocol and cipher choices prevents a successful default test from hiding a missing overlap.

openssl ciphers -v describes the OpenSSL build on the test host, not the server. The decisive evidence is the negotiated Protocol, Cipher and Verification lines from s_client. If the server logs no shared cipher, add an ECDHE suite that matches its certificate; if it reports a protocol version error, enable TLS 1.2 or TLS 1.3 on the listener.

Interpret the handshake evidence

A healthy direct handshake can be checked against the expected outcomes below. Missing application-layer ALPN is not itself a cipher failure, while a certificate error requires different remediation from an absent suite.

Probe Healthy result Meaning or action
Protocol TLSv1.2 or TLSv1.3 At least one Cloudflare-supported version was negotiated.
Cipher An ECDHE GCM, ECDHE ChaCha20 or TLS 1.3 suite The client and origin share an acceptable cipher.
Verification Verification: OK The chain and hostname validate for the tested connection.
Certificate name The expected hostname appears in the SAN Cloudflare is reaching the intended virtual host.
ALPN http/1.1 or h2 Useful for application behaviour, but not the cause of every 525.

Interpret no shared cipher as a configuration intersection problem, not evidence that the certificate is untrusted. Conversely, Verification: OK does not guarantee that Full (strict) will work if the certificate has expired between probes or the hostname does not match its SAN. Re-run the test immediately before and after a configuration change.

Platform differences can alter the names shown by command-line tools. For comparison work, origin configuration notes may help with command syntax, but verify the output against s_client, the web-server log and the provider console. A Cloudflare error generated before the HTTP request never reaches path, cache or application rules.

Repair the origin with controlled changes

Change only the component proven faulty. On Nginx, review ssl_protocols, ssl_ciphers, ssl_certificate and ssl_certificate_key; on Apache, review SSLProtocol, SSLCipherSuite and the certificate chain. Keep TLS 1.2 available for compatibility and add TLS 1.3 where supported. Full (strict) accepts a publicly trusted certificate or a Cloudflare Origin CA certificate. IIS and Windows Server use Schannel, so apply the matching cipher policy in Windows rather than copying an Apache directive.

Full (strict) encrypts and validates the origin certificate. Full mode can conceal certificate trust errors but still requires successful TLS negotiation, while Flexible removes origin encryption and should not be a lasting workaround. In the Australian market, support may come from a global hyperscaler or a local managed-service provider; check whether the contract includes after-hours escalation for edge-to-origin TLS faults.

Secure the connection after recovery

Keep a DNS-only origin path for monitoring after recovery, and restrict it with firewall rules and access controls. This also helps with Australian domain estates: a .com.au or .au hostname still needs its exact name in the certificate SAN, and changing a registrar or DNS provider does not alter that requirement. Australian Cyber Security Centre guidance stresses supported TLS versions and prompt patching, so schedule OpenSSL and server updates rather than leaving a compatibility exception indefinitely.

Protect logs containing handshake details. For covered organisations handling personal information, the Privacy Act 1988 and Australian Privacy Principles still apply; encryption in transit is one control, not a substitute for limiting access, retaining only necessary logs and securing the platform. Cloudflare should reach the intended origin while unrelated internet traffic remains blocked.

Run the two forced TLS handshakes against your Australian origin now, save the protocol, cipher and verification output with the change ticket, and give that evidence to your hosting provider. If the origin still rejects the connection, keep the public service protected while the provider corrects TLS support and the certificate chain, then return traffic to Full (strict) only after both direct and proxied checks pass.