Restore secure proxying by updating the origin TLS setup

Updating your origin server’s SSL/TLS configuration for Cloudflare compatibility is a step-by-step process rather than a single toggle. The work combines certificate renewal, protocol negotiation, hostname routing and a Cloudflare-side mode that matches what the origin can actually support. Treat each change as reversible until traffic has been verified through the proxy.

Australian teams should plan around Sydney and Melbourne hosting regions, daytime support coverage and the two- or three-hour gap with Perth depending on daylight saving. A .com.au hostname can sit behind Cloudflare like any other domain, although auDA’s delegation rules do not change the TLS handshake. Record the expected origin address and change owner before altering DNS or web-server configuration.

Many Australian small and mid-sized businesses use cPanel, Plesk, managed hosting or a hyperscaler console, so the control path differs even when the goal is identical. Keep keys and customer details out of chat, and follow the Australian Privacy Act 1988 and Privacy Principles when collecting diagnostic logs. The ASD Essential Eight, promoted in Australia by the ACSC, also rewards repeatable configuration and auditable evidence.

Match Cloudflare mode to origin capability

Cloudflare proxies browser traffic to an origin over a separate connection. That connection must present a trusted certificate, select the virtual host for the requested hostname and negotiate a shared protocol. Certificate validation failures usually appear as 526, while failed handshakes appear as 525.

Compare the available modes before changing the origin:

Cloudflare mode Browser to Cloudflare Cloudflare to origin Certificate handling Practical choice
Full (strict) Encrypted Encrypted Validates the certificate, chain and hostname Preferred
Full Encrypted Encrypted Does not validate the origin certificate Temporary fallback only
Flexible Encrypted Usually HTTP No origin certificate validation Avoid for sensitive traffic

Choose Full (strict) when the origin has a valid public CA certificate or a Cloudflare Origin CA certificate with the correct names. Origin CA certificates are trusted by Cloudflare, not ordinary browsers, so keep them on the proxied connection. Full mode encrypts traffic without validating the origin certificate, while Flexible mode sends the Cloudflare-to-origin leg in clear text by default; neither is a sensible target when strict validation can be made to work.

Diagnose the handshake at each network edge

Reproduce the failure directly against the origin while preserving SNI and the Host header: curl -Iv --resolve www.example.com.au:443 <ORIGIN_IP> https://www.example.com.au/ and openssl s_client -connect <ORIGIN_IP>:443 -servername www.example.com.au -tls1_2. Repeat with -tls1_3. A direct failure identifies the origin; success with only this test points towards DNS, edge routing or an intermittent service.

Check that TCP port 443 reaches the intended host and that host firewalls, security groups and load balancers permit Cloudflare traffic. Review the origin’s TLS and service logs for alerts, handshake resets or a connection arriving before TLS starts. A wrong upstream, exhausted connection pool or process restart can all look like a certificate problem from the browser.

Keep public and origin routes separate. If the affected domain is the mallawi-demet website, begin with an external DNS and certificate check, but do not treat that result as a substitute for testing your exact origin IP with the correct SNI value. Compare public DNS, the origin address recorded in Cloudflare and the address returned by dig before changing ciphers.

Install a complete renewable certificate chain

Install the complete chain—leaf certificate and intermediates—not only the leaf file. Point Nginx ssl_certificate or Apache SSLCertificateFile at the full chain, and point ssl_certificate_key or SSLCertificateKeyFile at the matching private key. Test the pair with openssl x509 -noout -subject -issuer -dates -in /path/fullchain.pem and openssl pkey -check -in /path/privkey.pem. A matching public-key fingerprint confirms that the certificate belongs to the loaded key.

Renew through ACME tooling such as Certbot or the hosting provider’s AutoSSL service, then add a deploy hook that validates configuration and reloads the web server. On Apache and Nginx, use sudo apachectl configtest or sudo nginx -t before the reload. A dry run with sudo certbot renew --dry-run exercises renewal without replacing the live certificate.

Confirm that the certificate covers the exact public hostname through its Subject Alternative Name. A wildcard for *.example.com.au does not cover the apex example.com.au, and a certificate for example.com.au may not cover www.example.com.au. Keep private keys readable only by the service account, and retain the previous chain and key until the replacement has passed verification.

Align TLS protocols, ciphers and SNI

Offer TLS 1.2 and TLS 1.3, and disable obsolete TLS 1.0 and 1.1 after confirming that no supported client needs them. Modern TLS 1.3 cipher defaults are generally safer than overriding them. For TLS 1.2, retain the platform’s modern cipher defaults rather than copying an obsolete cipher string from an old guide. A typical Apache configuration is:

SSLEngine on
SSLProtocol -all +TLSv1.2 +TLSv1.3
SSLCertificateFile /path/to/fullchain.pem
SSLCertificateKeyFile /path/to/privkey.pem

For Nginx, use ssl_protocols TLSv1.2 TLSv1.3; with the full-chain and key paths, then run sudo nginx -t and reload. Configure SNI explicitly whenever several sites share an IP: Nginx uses server_name, while Apache needs the correct name-based virtual host and certificate. If Cloudflare sends the public hostname but the default virtual host answers, the handshake may succeed with the wrong identity.

Match firewall rules to Cloudflare’s published source ranges and keep a separate administrator path. If PROXY protocol is enabled, configure it consistently at both the load balancer and web server; an unrecognised header can break the connection before TLS. Communicate planned outages through approved channels: teams using Telegram can publish Telegram channel stories, but never include private keys, Cloudflare API tokens or origin credentials.

Control the change with operational safeguards

Roll out the change in stages. Back up the certificate paths, Nginx or Apache configuration, firewall rules and Cloudflare settings. Use a staging hostname first, then update one low-traffic proxied record. Australian support windows should name AEST or AEDT explicitly, particularly when Sydney, Melbourne and Perth colleagues are working across daylight-saving changes.

Use these controls during the cutover:

Verify recovery and keep the origin healthy

Retest directly against the origin, then through Cloudflare using the public hostname. Use curl -I https://www.example.com.au/ and openssl s_client -connect www.example.com.au:443 -servername www.example.com.au to confirm the negotiated version, issuer, dates and SAN. Check Cloudflare’s diagnostics and application logs for continued handshake errors, and ensure port 80 redirects to HTTPS once the secure path works.

Public advisories can be checked with inline web search without placing internal hostnames or certificate details in a search box. Apply the same data minimisation to support tickets and Telegram updates. This matters under the Australian Privacy Act 1988 when logs contain customer IP addresses or request details.

Make the repair durable:

Start now with one proxied .com.au hostname: capture its certificate and handshake, correct any chain, protocol or SNI fault, confirm it directly, then select Full (strict) and verify proxied access. Record the final configuration so the next renewal cannot silently recreate the failure.