Enable TLS 1.2 or 1.3 for Reliable Cloudflare Origin Connections

A Cloudflare 525 error means the edge network reached your origin server but could not complete the TLS handshake. In practical terms, Cloudflare is trying to establish an encrypted HTTPS connection to the server behind your domain, and the origin is rejecting it, presenting an unusable certificate, or speaking an incompatible protocol. Learn more about Telegram%E8%80%81%E5%8F%B8%E6%9C%BA%E7%BE%A4%E7%BB%84%E7%9C%8B%E4%B8%8D%E5%88%B0.

The fix is usually found in the origin server’s HTTPS configuration rather than in Cloudflare’s dashboard. Confirm that the server supports TLS 1.2 or TLS 1.3, presents a valid certificate for the requested hostname, allows modern cipher suites, and accepts connections on the expected port. These checks apply to Nginx, Apache, IIS, load balancers, container platforms and managed hosting services used by Australian businesses.

What Cloudflare Needs From Your Origin

Cloudflare connects to the origin according to the SSL/TLS mode selected for the zone. In Flexible mode, traffic between Cloudflare and the origin is unencrypted, while Full mode uses HTTPS but may accept a self-signed certificate. Full (strict) requires a valid, currently usable certificate whose names match the hostname.

For production websites, Full (strict) is generally the safer choice. The origin certificate can come from a public certificate authority or Cloudflare Origin CA, provided it is installed correctly and has not expired. A certificate issued only for www.example.com will not satisfy a request for example.com, and a missing intermediate certificate can cause failures even when the leaf certificate appears correct.

Confirm that DNS points to the intended server and that port 443 is reachable from Cloudflare’s network. A firewall rule allowing local testing but blocking Cloudflare IP ranges can produce confusing results. Keep an allowlist current, especially after infrastructure changes or when moving from a Sydney data centre to a provider in Melbourne or another region.

A useful certificate troubleshooting reference can be kept with your incident records, but validate all technical advice against your operating system, web server version and hosting provider documentation.

Check The Existing TLS Configuration

Begin by identifying the software that terminates HTTPS. It may be Nginx on a Linux virtual machine, Apache behind a control panel, IIS on Windows Server, or a hardware or cloud load balancer in front of the application. The component terminating the connection must support the required protocol; enabling TLS in the application alone will not help if the proxy handles HTTPS first.

From a trusted administration machine, inspect the handshake with OpenSSL:

openssl s_client -connect example.com:443 -servername example.com -tls1_2
openssl s_client -connect example.com:443 -servername example.com -tls1_3

The -servername option is important because it sends Server Name Indication, allowing a virtual host to return the correct certificate. Look for a successful protocol line, an appropriate cipher, the expected certificate chain and a verification result without errors. If TLS 1.3 is unavailable, TLS 1.2 is still widely supported and is an acceptable baseline when configured with modern ciphers.

External scanners can reveal certificate-chain, protocol and cipher problems, but do not expose private keys or internal hostnames while testing. Australian teams should also record the result in their change-management system. That creates an audit trail useful for Essential Eight reviews, cyber-insurance evidence and incident response under the Privacy Act when a service handles personal information.

Configure Modern Protocols And Ciphers

On Nginx, a typical configuration includes TLS 1.2 and TLS 1.3 in the server block:

server {
    listen 443 ssl http2;
    server_name example.com www.example.com;

    ssl_certificate     /etc/letsencrypt/live/example.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;

    ssl_protocols TLSv1.2 TLSv1.3;
    ssl_prefer_server_ciphers off;
}

The exact syntax depends on the Nginx and OpenSSL versions installed. Apache commonly uses SSLProtocol and SSLCipherSuite, while IIS settings are normally managed through Windows registry policy, a hardened server template or a supported administration tool. Do not copy a cipher string designed for an old operating system into a newer platform without checking compatibility.

Setting Recommended baseline Why it matters
TLS protocols TLS 1.2 and TLS 1.3 Provides broad Cloudflare compatibility with modern security
TLS 1.0 and 1.1 Disabled These protocols are obsolete and commonly rejected
Certificate Valid chain and matching hostname Prevents Full (strict) validation failures
SNI Enabled and correctly routed Selects the right virtual host certificate
Port TCP 443 reachable Allows Cloudflare to reach the HTTPS listener
Private key Matches the certificate Completes certificate authentication
Cipher suites Current AEAD suites Supports secure TLS 1.2 and TLS 1.3 handshakes

TLS 1.3 cipher selection is usually controlled by the underlying cryptographic library and cannot be managed in the same way as TLS 1.2. Avoid disabling every older cipher without testing clients that still need to access the service, such as point-of-sale systems, warehouse devices or older software used by regional offices.

After editing the configuration, run the server’s syntax test before reloading. For Nginx, use nginx -t; for Apache, use apachectl configtest. Reload rather than restart where possible, and keep a second administrative session available in case a configuration mistake interrupts access.

Validate The Handshake From Several Locations

A successful test from an office network does not prove that Cloudflare can connect. Test the public hostname through Cloudflare and, where possible, test the origin address separately with the correct SNI value. If the origin is protected by a firewall, review logs for rejected Cloudflare addresses, failed protocol negotiation or connections arriving on an unexpected port.

Use a staged validation process to separate certificate issues from protocol issues:

Once the handshake succeeds, check an ordinary page, a redirect, a form submission and any API endpoint. A website can pass TLS negotiation while still failing because of an incorrect host header, blocked request method, application timeout or restrictive web application firewall rule. Australian users on NBN connections, mobile networks and corporate VPNs may follow different routes, so include at least one test from outside the hosting network.

For businesses operating across Perth, Brisbane, Adelaide and the eastern states, compare monitoring results by region and time. Scheduled certificate renewal can occur during local overnight hours, while a failed reload may leave one node serving the old certificate and another serving the new one. In a multi-server pool, every origin must have consistent TLS settings.

Keep Certificates And Server Policies Current

TLS compatibility is an ongoing maintenance task. Set renewal alerts well before expiry, preferably at 30, 14 and seven days, and verify that automation reloads the service after obtaining a new certificate. A renewed certificate sitting on disk does not help if Nginx, Apache or the load balancer continues serving the previous one.

Maintain an inventory of certificate names, issuing authorities, private-key locations, renewal owners and listening services. Restrict private-key permissions, back up configuration securely and remove obsolete certificates from active listeners. If Cloudflare Origin CA is used, remember that those certificates are intended for Cloudflare-to-origin encryption and are not suitable for direct browser access when visitors bypass Cloudflare.

Review protocol support after operating-system upgrades, hosting migrations and changes to security policy. Australian organisations should align this work with internal risk controls, the Australian Privacy Act obligations relevant to personal information, and Essential Eight practices such as patching and restricting administrative access. Local businesses often rely on weekend trading, school-holiday traffic or evening online orders, so schedule disruptive changes outside proven peak periods rather than assuming a quiet weekday is safe.

When documenting third-party material, keep the context clear; for example, a note about Telegram group visibility should remain separate from the certificate incident unless it directly relates to the affected service. Clear records prevent unrelated links, experiments or content changes from being mistaken for evidence of a TLS fault.

Apply the protocol settings, validate the certificate chain, test both TLS 1.2 and TLS 1.3, then switch Cloudflare to Full (strict) once the origin is ready. Monitor the next renewal and retain the successful configuration so the same 525 failure can be resolved quickly if a server, certificate or firewall policy changes.