Invalid Certificate Error: How to Diagnose and Fix It

December 4, 2026
11 mins read
Invalid Certificate Error: How to Diagnose and Fix It

Key takeaways

An invalid certificate error means a client rejected the certificate it was shown, not that the site is down. Treat the error code as a hypothesis, then find which endpoint presented the certificate: the browser, DNS A and AAAA destinations, a CDN or load balancer edge, or the origin. More than half of Chrome's certificate errors come from client or network problems such as wrong clocks, captive portals and interception software, so compare devices before changing the server. Fix the layer that failed (chain, hostname, expiry or revocation), confirm with a fresh handshake on several clients, and monitor what visitors actually receive.

A visitor sends you a screenshot of a red privacy warning. Your browser loads the site, but a deployment script fails with an invalid certificate error, and someone has already suggested renewing SSL. Before changing anything, find out which endpoint presented the certificate and which client rejected it. Those answers separate a server fix from a device problem and a successful renewal from a certificate deployed to the wrong place.

Match Your Error Message to Its Cause#

The warning page or failed command gives you the first useful clue. Expand the browser's technical details, or preserve the complete command-line error rather than just the application's summary. A certificate warning means the client couldn't establish the expected identity and trust, not necessarily that the website stopped running.

Certificate validation spans several checks. The certificate must be within its validity dates, cover the requested hostname, form a valid chain to a trusted root, and meet the client's applicable policy requirements. The CA/Browser Forum's certificate requirements[1] sit within this shared system of certificate authorities, browsers, and other relying-party software.

Use the Message as a Starting Hypothesis#

These messages narrow the investigation, but they don't prove the cause.

Error messageUsual causeFirst check
NET::ERR_CERT_DATE_INVALIDExpired or not-yet-valid certificate, or device clock is wrongCompare the device clock with a trusted time source, then read notBefore and notAfter
NET::ERR_CERT_COMMON_NAME_INVALIDHostname missing from the certificate, often www or a new subdomainCheck the Subject Alternative Name list for the exact hostname
NET::ERR_CERT_AUTHORITY_INVALIDUnknown issuer, missing intermediate, or HTTPS inspection by a proxy or antivirusCheck whether the issuer is the expected authority or a local security product
NET::ERR_CERT_REVOKEDIssuing authority revoked the certificateCheck revocation status and issuer, then replace it with a certificate using a new key
unable to verify the first certificateIncomplete chain, with required intermediates not servedInspect the served chain and confirm every required intermediate is present

Don't let the wording send you straight to a configuration change. A date error can come from the client's clock, while an authority error can come from either the server's chain or a network appliance. A hostname error may mean the certificate was issued incorrectly, but it can also mean the connection reached an unintended listener.

Preserve Evidence Before Making Changes#

Record the error code, exact hostname, timestamp, device, operating system, and browser or runtime. Include whether the device was on office Wi-Fi, mobile data, a VPN, or another network. For scripts, record the runtime and certificate-store configuration without copying secrets into the ticket.

Keep the failing hostname intact. An apex domain and its www version are separate certificate identities, even if visitors expect them to lead to the same page.

Practical rule: Treat the error message as a hypothesis to test, not permission to renew, replace, or bypass a certificate.

That evidence gives colleagues a reproducible failure instead of a vague report that SSL is broken.

Find Which Layer Presents the Wrong Certificate#

A browser might connect to a CDN, reverse proxy, load balancer, hosting platform, or inspection appliance before any request reaches your application. The certificate that matters is the one the failing client receives, not the one sitting in an origin server's certificate directory.

The workflow below separates certificate inspection from endpoint isolation.

Invalid certificate error certificate troubleshooting

Inspect the Served Certificate and Chain#

  1. Capture the connection. Run openssl s_client -connect example.com:443 -servername example.com -showcerts with the exact failing hostname. The -servername argument sends Server Name Indication, or SNI. Without it, a shared listener may return its default certificate rather than the certificate visitors receive.
  2. Inspect the leaf certificate's Subject Alternative Name, or SAN, extension. The exact requested hostname must be covered. Don't rely on the subject's Common Name alone, and don't assume that covering the apex also covers www.
  3. Read the validity interval. Compare notBefore and notAfter with a trusted clock. Inspect the intermediate certificates too, rather than stopping at the leaf.
  4. Follow the issuer relationships through the chain. The server should provide the leaf followed by its required intermediates; the client supplies trust through its local trust anchors. Sending a root certificate doesn't make an otherwise untrusted root trusted.
  5. Verify independently. Save the leaf as leaf.pem and the intermediates as intermediates.pem, then run openssl verify -untrusted intermediates.pem leaf.pem. For an explicit server-identity check, add -purpose sslserver -verify_hostname example.com. Confirm that OpenSSL is using the intended trust store.

The path-validation rules in RFC 5280[2] require valid issuer relationships, acceptable certificate constraints, and a path to a trust anchor. A successful connection alone isn't sufficient evidence: inspect the verification result, not just the fact that the server returned certificates.

Locate the Endpoint That Disagrees#

Inspect the hostname's A and AAAA destinations through your DNS tooling, then test each destination with the original hostname preserved as SNI. Compare the public edge with the origin using a controlled direct connection. You don't need to change public DNS or take the site offline to perform that comparison.

LayerHow to test itSign of a wrong certificate
Browser or clientLoad the exact hostname and inspect the certificate shown in the warningFailure appears on one device or network only
DNS A recordInspect the resolved IPv4 destination and its infrastructure ownerDestination belongs to an old host or unexpected provider
DNS AAAA recordInspect the IPv6 destination and compare its infrastructure with IPv4IPv6 reaches a different edge holding a stale certificate
CDN or load balancer edgeFetch the certificate from each reachable endpoint with SNIAn edge serves an expired or mismatched certificate
Origin serverConnect directly to the origin while preserving the requested server nameOrigin passes while the public edge fails

DNS doesn't present a certificate itself. It determines which endpoint the client reaches, so a DNS mistake can expose an otherwise unrelated certificate.

Chrome's certificate-warning guidance[3] distinguishes authority, hostname, date, and other validation failures. Tie that failure category to the endpoint you tested.

Say a team renews its origin certificate, but IPv6 visitors still reach an edge serving the previous certificate. Repeating the origin renewal won't fix that deployment. A redirect or branded short link also fails at this point, which is why redirecting a domain over HTTPS needs a certificate for every source hostname: TLS must succeed before the server can return an HTTP redirect.

What each redirect hostname costs once its certificate works#

Every hostname a visitor passes through opens its own HTTPS connection, so a redirect hop adds a handshake and a response before the destination starts loading. The RedirHub redirect speed benchmark[4] measures that cost: from 27 November to 4 December 2026, it timed 25 providers’ redirects over a fresh connection from Washington, D.C., Frankfurt and Tokyo, and the median time to first byte ranged from 12 ms to 491 ms. The certificate fixes above get the hop working; where the redirect is served decides how long it takes.

ProviderMedian time to first byte (mean of 3 locations)
Fastly12 ms
Amazon CloudFront13 ms
RedirHub17 ms
Cloudflare32 ms
Vercel65 ms
Bitly113 ms
nginx260 ms
Rebrandly268 ms
urllo313 ms

Keep certificate fingerprints, endpoint ownership, and verification output with the incident. CEFCore's guidance on documenting encryption controls for auditors[5] provides useful context for retaining evidence beyond a screenshot.

When layers disagree, fix the layer presenting the wrong certificate, not the layer someone most recently renewed.

Client Clock, Proxy and Trust Store Causes#

A Google study of more than 300 million Chrome certificate errors[6] found that more than half were caused by client-side or network issues, not server misconfigurations. Investigating only the server leaves a large part of the problem unexplored.

When controlled tests show an acceptable public certificate, compare the failing client's environment with a working one. Don't immediately install a new root certificate or turn off a security product.

Check Time and Network Interception#

Start with the device clock and time synchronization. A clock outside the certificate's validity interval can make a correctly deployed certificate appear expired or not yet valid. Correct the clock through the operating system's normal time settings, then repeat the original request.

On guest Wi-Fi, complete the captive-portal login before testing the destination again. Use the network's login prompt or a known plain-HTTP page to trigger it. Don't enter credentials into the unrelated site's certificate-warning page.

Then inspect the certificate issuer seen by the failing device:

  • Antivirus inspection: An issuer naming a local security product suggests that software is terminating and recreating the HTTPS connection. Check its managed configuration and certificate deployment.
  • Enterprise proxy: A corporate issuer may be expected, but the device still needs the organization's approved trust anchor. Have IT repair enrollment rather than importing a certificate from an unverified download.
  • Outdated trust store: Update the operating system or runtime through its supported mechanism. Remember that an application may use a bundled CA store rather than the operating system's store.

A client-side inspection proxy isn't the same as a public reverse proxy. If issuance is blocked behind the latter, use the HTTPS issuance troubleshooting guidance for Cloudflare proxying to investigate that specific path rather than changing workstation trust.

Interpret Differences Carefully#

Use the pattern of failures to choose the next test, not to declare the root cause prematurely.

  • One device fails: Investigate its clock, trust store, VPN, and inspection software, while confirming it reached the same endpoint.
  • Every tested device fails: Prioritize the public endpoint's certificate and chain.
  • One browser passes: Check whether it has a cached intermediate or a locally installed issuer that another client lacks.
  • Only the managed network fails: Compare the served issuer from an unmanaged network and involve the network-security owner.

Don't disable certificate verification in curl, Node.js, Git, or an API client to make the symptom disappear. That removes the identity check you're trying to restore.

If the endpoint belongs to a third-party API, send its owner the hostname, timestamp, error, and observed certificate details. Changing local trust settings won't repair its deployment.

Fixing Chain, Hostname and Renewal Failures#

Apply the correction that matches the failed test. Replacing a valid leaf certificate won't repair an incomplete bundle, and reinstalling a bundle won't add a missing hostname. Before deployment, preserve the current files and listener configuration in protected storage so you can reverse a bad change without exposing private keys.

Use the certificate details from the failing connection as your reference during deployment.

Invalid certificate error certificate analysis

Correct the Specific Failure#

For a missing intermediate, install the leaf and the issuing authority's required intermediate chain in the order your server expects. Don't build a bundle from unrelated certificates that happen to have similar issuer names. Validate the chain before reloading the service.

For a hostname mismatch, reissue with the intended names in the SAN extension. Include both apex and www when both accept HTTPS connections. A wildcard covers a single subdomain label: *.example.com doesn't cover a.b.example.com, and it doesn't cover the apex itself.

For expiry, renew the certificate, confirm the matching private key, and reload the process that terminates TLS. Replacing a file on disk doesn't prove that a running worker loaded it. Inspect the certificate presented by a fresh connection after the reload.

For a revoked certificate, issue a replacement with a new key and investigate why the authority revoked the previous certificate. If compromise is possible, protect the replacement key and correct the exposure before deploying it.

CauseFixRollback
Missing intermediateInstall the leaf with all required intermediates in the correct orderRestore the previous valid certificate and chain
Hostname missingReissue with apex and www in the SAN list when both are usedRetain the previous certificate and key until tests pass
Expired certificateRenew, then reload or restart the TLS-serving processRestore previous configuration only with a still-valid certificate
Stale node after renewalDeploy and reload the affected load balancer, edge, or secondary originRestore known-good files on that node
Revoked certificateRequest a new certificate with a new keyNone, a revoked certificate must not be restored

Measure Deployment Instead of Guessing#

There's no universal propagation time for these fixes. A local listener changes after a successful reload; a managed edge changes after its deployment completes. Record when a fresh handshake first presents the intended certificate rather than promising an unsupported wait time.

A hypothetical shop might renew its apex certificate while www remains attached to a separate load balancer. Updating that balancer is the necessary correction, not another issuance request.

Rollback safeguard: Previous doesn't mean safe. Never restore an expired, revoked, compromised, or hostname-incompatible certificate merely because it was installed before.

Renewal automation also needs a deployment step, a reload strategy, and failure reporting. The operational implications of shorter Let's Encrypt certificate lifetimes are useful when reviewing whether an existing renewal job does more than request a certificate.

Confirm the Fix on Every Client Before You Close the Ticket#

Close the incident when the original failing request succeeds across representative clients, not when the certificate dashboard turns green. Use a desktop browser on the office network, a phone on mobile data, and a command-line or API client with a current trust store. Keep verification enabled throughout.

For each test, record the endpoint reached, certificate serial or fingerprint, validity interval, hostname coverage, and chain-validation result. Different endpoints can legitimately use different certificates, so compare against the expected deployment inventory rather than demanding identical serial numbers everywhere.

Make the Closure Evidence Reproducible#

Test the apex, www, and any campaign or redirect hostnames affected by the incident. Follow redirects through to their destination and confirm that each HTTPS hostname validates independently. A passing final destination doesn't prove that the source link works.

  • Capture the result: Attach successful validation output and the original failure context to the ticket.
  • Check deployment completeness: Confirm that expected edge, load-balancer, and origin configurations contain the intended certificate.
  • Assign ownership: Record who owns renewal, deployment, DNS validation, and incident escalation.
  • Retain a safe recovery path: Keep protected configuration backups and document which certificates remain valid for rollback.

Shorter lifetimes make this an ongoing operational responsibility. NetCheckIT's certificate-error guide[7] reports a maximum lifetime of 200 days from March 2026, with a scheduled reduction to 47 days by 2029. That schedule makes a manual renewal calendar an increasingly fragile substitute for issuance and deployment monitoring.

Monitor What Visitors Actually Receive#

Run recurring automated checks against every public hostname, with expiry alerts early enough for investigation and reissuance. Monitor issuance failures separately from endpoint validation: a successful renewal job can coexist with a stale listener. Keep chain details and expiry information available for the next incident or audit.

For redirect domains, the certificate can be someone else’s job. A domain connected to RedirHub through DNS gets its HTTPS certificate issued automatically once DNS is in place, served on 130 Global PoPs. With Self-Hosted Edge, RedirHub issues, renews and syncs each domain’s certificate to your own servers through managed SSL certificates, covering www when it points there too. Keep your own endpoint checks running anyway, so deployment health stays independently observable.

The next action is concrete: turn the exact request that failed into a monitored validation test. That gives the next on-call engineer an actionable signal before another visitor has to send a warning screenshot.

Redirect domains without managing their certificates

Connect a domain through DNS and RedirHub issues its HTTPS certificate automatically and serves the redirect, root and www, on 130 Global PoPs. Automatic HTTPS comes with domain redirects on Core, Pro and Enterprise.

Set up domain redirects

Sources

  1. [1]Ballot SC081v3: Introduce Schedule of Reducing Validity and Data Reuse Periods (CA/Browser Forum Baseline Requirements)
  2. [2]RFC 5280 - Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile
  3. [3]Get help with common error messages in Chrome - Google Chrome Help
  4. [4]RedirHub redirect speed benchmark, 2026-11-27 to 2026-12-04
  5. [5]TLS 1.3 Security Explained for Church Extension Funds
  6. [6]Where the Wild Warnings Are: Root Causes of Chrome HTTPS Certificate Errors (ACM CCS 2017)
  7. [7]SSL certificate errors: understand them and fix them | NetCheckIT

Frequently asked questions

The browser or client could not confirm the site's identity with the certificate it received. The certificate may be expired, issued for another hostname, missing an intermediate or revoked, or the device's clock, proxy or trust store may be at fault. The website itself may still be running.

First check the device's clock against a trusted time source, since a wrong clock makes a valid certificate look expired. If the clock is right, read the served certificate's notBefore and notAfter dates, renew it if it has expired, and reload the process that terminates TLS.

When only one device or network fails, the cause is usually local: a wrong clock, an outdated trust store, a captive portal, a VPN, or antivirus or proxy software inspecting HTTPS. Compare the issuer that device sees with the one a working device sees before changing the server.

Run openssl s_client -connect host:443 -servername host -showcerts with the exact failing hostname, so the server returns the certificate visitors get. Check the Subject Alternative Name list, the validity dates and the chain, then confirm it with openssl verify.

Not unless www is listed in its Subject Alternative Name extension. The apex and www are separate identities, and a wildcard such as *.example.com covers one subdomain level but not the apex itself.

Leo Astarothman

Leo Astarothman is the Brand & Content Lead at RedirHub, where he shapes the company's visual identity, educational content, product experiences, and marketing strategies. He also specializes in system design. Simplifying complex redirect infrastructure into practical resources, product experiences, and campaigns that help businesses understand and adopt modern redirect management.