In this guide
Why an HTTPS website can still fail AutoSSL
A business places Cloudflare in front of a website hosted on cPanel. Visitors see the site over HTTPS, but the hosting control panel reports that AutoSSL cannot issue or renew its certificate. This situation is possible because the certificate presented to a visitor at the Cloudflare edge and the certificate installed on the origin server are different parts of the connection.
A working browser padlock therefore does not prove that cPanel can validate control of the hostname or that the origin certificate is healthy. The task is to identify which hostname failed, which validation method was attempted and where the challenge stopped.
Find the precise failure message
Open the relevant SSL/TLS Status or AutoSSL interface and record the failing hostname and the domain-control validation message. A main domain, www alias and mail-related hostname may not all resolve or validate in the same way.
Check whether the failure concerns HTTP validation, DNS validation, a wrong destination IP, an unexpected redirect or a connection error. Do not assume Cloudflare is responsible just because it sits in front of the website. Incorrect A or AAAA records, a parked domain, a firewall rule and a stale cPanel virtual host can produce similar symptoms.
Keep a record of the current configuration before making changes. SSL repair often overlaps with DNS, and a careless edit can affect mail, another website or an external service.
Understand the two TLS connections
With a proxied Cloudflare record, a browser connects to Cloudflare, and Cloudflare connects to the origin server. The first connection uses an edge certificate. The second connection depends on the configured SSL/TLS mode and the certificate available on the origin.
For a production website, aim for correctly validated encryption on both legs. Do not switch to a weaker encryption mode merely to hide an origin certificate problem. Confirm the appropriate Cloudflare mode and keep origin certificates renewed independently.
If the browser works because Cloudflare serves a valid edge certificate, cPanel can still report a separate origin renewal error that deserves attention.
Check DNS and the intended origin
Identify the current authoritative nameservers and inspect public A and AAAA records for the affected hostnames. Confirm that each hostname belongs on the cPanel server you expect. An old IPv6 record can send some validation traffic towards a server that does not host the site.
Cloudflare's proxy can cause DNS lookups to return Cloudflare addresses rather than the origin address. That is expected for proxied records. It is not, on its own, proof that validation is impossible. Different certificate authorities and AutoSSL providers can use different challenge mechanisms, so follow the actual error rather than a generic rule about orange-cloud records.
A hostname that should remain connected to another provider, such as email services, must not be pointed at the web server merely to satisfy an unrelated certificate check.
Inspect the challenge route
HTTP-based validation commonly involves a temporary file or token served over a challenge path under the requested hostname. A web application rewrite, maintenance redirect, access control rule or bot protection service may prevent the validator from retrieving the expected response.
Check logs for the challenge request and the returned status. A 403 may indicate firewall intervention. A 404 may indicate that the request reached the wrong document root or that a rewrite intercepted it. A redirect loop can indicate competing HTTPS or www rules. A connection timeout points towards DNS or network reachability.
If a temporary exception is needed for validation traffic, scope it narrowly and document why. Avoid disabling an entire firewall or opening private administration paths just to make one certificate issue disappear.
Watch for www and subdomain differences
A certificate renewal might succeed for example.co.za but fail for www.example.co.za because the two DNS names resolve differently. In multi-domain hosting, an addon domain may also have its own document root or external service.
Check each reported hostname separately. Decide which names should legitimately be included on the origin certificate. Unused aliases can be removed from the intended certificate coverage if appropriate, rather than forcing every historical hostname to pass validation.
For websites that have moved from an older hosting server, compare the current DNS, cPanel account configuration and redirects. An abandoned host entry can keep causing failures long after public visitors have stopped using it.
Test the origin without breaking Cloudflare
Where authorised, test the origin server directly with the correct hostname and TLS server name indication. This distinguishes an origin problem from an edge behaviour issue. Do not publish or expose private origin IP details unnecessarily, especially if the architecture relies on restricted origin access.
If you temporarily change a proxy setting, plan the timing, check whether security rules or caching behaviour will change, and restore the intended configuration after the test. For production systems, confirm any change against the host and Cloudflare's current guidance first.
Monitor certificate expiry independently
Set up an expiry check for the public endpoint and, where operationally appropriate, the origin certificate. These may have different issuers and expiry dates. Alerting only on the public-facing certificate can miss a failed origin renewal until a mode change or connection issue exposes it.
Also monitor repeated AutoSSL failures in cPanel logs. An automated renewal that quietly fails for weeks can turn into a business outage when a certificate eventually expires.
Cache and redirects can obscure the evidence
A cached page may continue to load from Cloudflare even when the origin server is serving the wrong challenge response. Compare a normal page request with a request to the precise validation path, using authorised diagnostics and available access logs. Be careful with blanket 'always redirect' rules because two layers can rewrite the same URL differently. If a certificate error appears immediately after moving hosting, inspect DNS propagation and the origin's virtual-host mapping as separate issues. Restoring a prior configuration without understanding which layer failed can make the certificate appear healthy temporarily while leaving the renewal path broken. Record the working final route so the next renewal does not repeat the investigation.
When to request hosting assistance
Certificate validation problems are often fixable through a correctly scoped DNS or routing change. They become more complicated when several domains, Cloudflare rules, multiple origin servers and legacy redirects overlap.
Digital4Front supports domains, hosting and website infrastructure for South African businesses. We can help determine whether a failure is at DNS, Cloudflare, the web server or cPanel's validation stage, then correct the relevant layer without unnecessary disruption to the live site.
