An HTTPS certificate error needs a specific diagnosis: the wrong hostname, an expired certificate, an incomplete chain or a client that does not trust the issuer. Start by identifying which endpoint the failing client reaches. A valid certificate at the CDN does not prove that a separate HTTPS origin connection is healthy.
This guide uses OpenSSL 3.x and curl for an HTTPS website you administer. Check the installed command help when using another version or TLS backend. The probes open network connections but do not replace certificates, change DNS or weaken verification.
1. Record the failing request and the client
Capture the exact hostname, error, time and network location. Include whether the failure affects every browser, one application or only an internal service. Check the client clock. Keep private query strings, authentication headers and cookies out of shared diagnostic output.
openssl version
curl --version
date -uUse the hostname visitors actually enter, including www when relevant. A working apex hostname does not establish that another subdomain is covered. If the site uses a CDN or reverse proxy, draw the connection path and label which leg uses TLS.
2. Check the public HTTPS endpoint without bypasses
WC_HOST=www.example.com
curl --silent --show-error --connect-timeout 10 --max-time 20 \
--output /dev/null --write-out 'HTTP: %{http_code}\n' \
"https://$WC_HOST/"Replace the example hostname. This intentionally does not follow redirects: inspect each hostname in a redirect chain separately. curl verifies certificates by default. A TLS failure can occur before an HTTP response exists; HTTP 000 alone is not a server status code. Read the accompanying error. The curl certificate guide explains verification and trust stores.
Do not turn a failed check into a pass with --insecure or -k. That changes what is being tested and can conceal an impersonation or configuration problem. If a private CA is intentional, verify its provenance and configure the correct trust anchor for the intended client.
3. Inspect the handshake with the intended hostname
timeout 20s openssl s_client \
-connect "$WC_HOST:443" \
-servername "$WC_HOST" \
-verify_hostname "$WC_HOST" \
-verify_return_error \
-showcerts </dev/nullThe timeout wrapper shown is for Linux systems providing that command. SNI selects the intended virtual host; hostname verification checks the identity presented. -verify_return_error makes verification failures fail the handshake instead of merely reporting them. -showcerts displays the certificates sent by the server, not a guarantee that a trusted chain was built. These distinctions are documented in OpenSSL s_client.
A successful result is evidence for this hostname, endpoint, client trust store and moment in time. It does not establish the health of every application client, protocol or origin. A timeout is also not a certificate verdict; first establish connectivity.
4. Match the failure to the correction
Finding | Investigate | Correction boundary |
|---|---|---|
Hostname mismatch | Subject Alternative Names and the selected virtual host | Deploy a certificate covering the actual hostname at the correct endpoint. |
Expired or not yet valid | Certificate dates and client clock | Renew or correct the clock; verify which certificate the listener actually serves. |
Issuer cannot be found | Intermediates sent by the server and the client trust store | Repair the chain or approved trust configuration; do not disable verification. |
Only one client fails | Its CA bundle, proxy interception and software version | Reproduce with that client before replacing a certificate that other clients validate. |
Public endpoint passes; backend request fails | The independent CDN-to-origin or service-to-service connection | Inspect that connection’s hostname, trust policy and certificate separately. |
5. Inspect a certificate file safely
If the operator provides the public certificate in PEM form, inspect its identity and dates. A certificate file is different from a private key; never send the private key with a diagnostic ticket.
openssl x509 -in certificate.pem -noout \
-subject -issuer -dates -ext subjectAltName
openssl x509 -in certificate.pem -noout -checkend 604800The second command checks whether expiry falls within seven days, expressed in seconds. It is not a hostname or chain-validation check. OpenSSL’s x509 reference describes these inspection options. Compare the file with the certificate served by the listener; successfully renewing a file does not prove that the service loaded it.
6. Compare a known origin only when it is reachable by design
If you administer a directly reachable HTTPS origin, curl can connect to its approved IP while retaining the hostname for the request and certificate check. Substitute the real origin address; the address below is documentation-only:
curl --silent --show-error --connect-timeout 10 --max-time 20 \
--resolve 'www.example.com:443:192.0.2.10' \
--output /dev/null --write-out 'Origin HTTP: %{http_code}\n' \
'https://www.example.com/'Do not open firewall ports or expose a tunnel-only origin merely to run this comparison. Test a private connection from an authorized location using its intended trust configuration. A CDN origin certificate may intentionally be trusted by the CDN rather than by ordinary public clients; assess it against that designed connection, not against an unrelated browser trust store.
7. Verify after the repair
Keep the previous valid service configuration for rollback, apply the narrow certificate or chain correction and use the server’s supported validation and reload process. Repeat the failing-client test and the public probe. Check both the primary hostname and required aliases, and confirm that no temporary verification bypass remains.
Record the certificate expiry, renewal owner and next renewal verification. For cPanel-managed issuance, follow the AutoSSL checks. For the concepts behind certificates and encryption, use the SSL and TLS explainer. This diagnostic page owns certificate failures; it does not replace either installation guidance or the foundational explanation.
If you want the provider to handle certificate maintenance on a server, review our server-management scope and specify the hostnames, TLS endpoints, renewal checks and escalation owner. Confirm those tasks for your selected service; the agreement must distinguish server certificates from application trust-store changes.
References and further reading
Documentation reviewed on 29 November 2026. This is a documentation-based operating guide, not a report of a customer incident or a benchmark. Examples are illustrative; verify paths, permissions and installed command options in your own environment.



