By NHI Mgmt Group Editorial TeamPublished 2025-09-29Domain: Workload IdentitySource: DigiCert

TL;DR: An expired legacy intermediate certificate can still trigger untrusted-certificate errors when it remains cached locally on clients or servers, affecting OS X keychains, Windows server-to-server links, and Apache chains, according to DigiCert’s guide. The deeper lesson is that certificate trust breaks when lifecycle cleanup lags behind installation and revocation hygiene.


At a glance

What this is: This is a certificate-chain troubleshooting post showing how expired intermediate certificates can remain locally cached and break TLS trust.

Why it matters: It matters because IAM, PAM, and NHI teams all rely on certificate trust chains, and stale intermediates create hidden availability and trust failures across systems.

👉 Read DigiCert's guide to fixing an expired intermediate SSL certificate chain


Context

An expired intermediate certificate can continue to affect TLS trust long after it should have been removed. In practice, the failure is not the certificate authority itself but the locally cached or installed copy that remains on a client, server, or backend application.

For identity and access teams, this is a lifecycle problem as much as a cryptography problem. Certificates are non-human identities in operational form, and if their chain components are not cleaned up consistently, trust decisions fail even when the active installation looks correct.


Key questions

Q: What breaks when expired intermediate certificates are still cached on clients or servers?

A: Expired intermediates can break TLS validation even when the active certificate is still valid. The client or server may trust or present an old chain element from a local keychain, trust store, or backend installation, which produces untrusted-certificate errors and disrupts secure connections.

Q: Why do expired intermediates create recurring trust failures in certificate programs?

A: They create recurring failures because certificate lifecycle processes often stop at issuance and overlook retirement. If old intermediates remain in local stores or compatibility chains, the environment keeps making trust decisions against stale artefacts instead of the current certificate path.

Q: How do security teams know whether a certificate chain problem is local or systemic?

A: Teams should compare the chain presented by the server with the trust stores and cached certificates on affected endpoints. If one platform fails while others succeed, the problem is usually local state, stale chain files, or an old intermediate still installed somewhere in the path.

Q: Who should own expired certificate cleanup in identity and security programmes?

A: Ownership should sit with the team responsible for certificate lifecycle and trust-store hygiene, not only with the team that issued the certificate. Cleanup must be treated as a tracked operational task because expired intermediates can continue to affect validation until every copy is removed.


Technical breakdown

Why locally cached intermediates break certificate validation

TLS validation does not just check the leaf certificate. It also walks the chain through intermediates to a trusted root, and a stale intermediate can disrupt that path if the client or server still presents or trusts it. That is why the same site can appear healthy in one environment and fail in another. The problem is often local state, not the current issuance. In identity terms, the trust decision is being made against an old artefact that should have been retired.

Practical implication: inventory client and server trust stores, then remove expired intermediates instead of reissuing working certificates.

How server-to-server TLS failures surface in Windows and Apache

Server-to-server connections fail when one endpoint still carries a legacy certificate chain that no longer matches the intended trust path. On Windows platforms, utilities can expose the wrong intermediate chain, while Apache deployments depend on the correct chain file being supplied with the certificate. This is a chain-management issue, not a leaf-certificate issue. If the server sends the wrong intermediate, the peer cannot validate the connection even though the private key and certificate may still be intact.

Practical implication: verify the full chain on each platform and replace any obsolete chain file or locally installed intermediate.

Why certificate lifecycle hygiene matters more than one-off fixes

The post makes clear that most current installations already include the right intermediates, which means the real risk is residual legacy material left behind in older systems. That is a governance failure in lifecycle hygiene: expired trust artefacts persist because no one owns their removal across endpoints, keystores, and servers. A certificate program that only tracks issuance misses the cleanup phase, and that gap becomes visible only when trust breaks in production.

Practical implication: treat certificate retirement, local store cleanup, and chain validation as mandatory lifecycle controls.


Threat narrative

Attacker objective: The failure outcome is to disrupt trusted communication by exploiting stale certificate-chain state rather than by compromising the certificate authority.

  1. Entry occurs when a client or server retains an expired legacy intermediate certificate in a local keychain, trust store, or backend installation.
  2. Escalation happens when the stale intermediate is used in validation or chain presentation, causing the endpoint to reject an otherwise valid TLS session.
  3. Impact is untrusted-certificate errors and broken secure connections across client, server, and application paths.
  • Sisense breach — unauthorized GitLab access led to exfiltration of access tokens, API keys and certificates.
  • DeepSeek breach — DeepSeek breach exposed 1M+ log lines and sensitive secret keys.

Read our 52 NHI Breaches Analysis report for a comprehensive view of breaches impacting Non-Human Identities including AI Agents.


NHI Mgmt Group analysis

Certificate lifecycle is only as strong as the cleanup step. This post shows that expired intermediates remain dangerous when local stores, backend servers, and chain files are not actively retired. The issue is not issuance alone, but whether every copy of the old trust artefact is removed from the environment. Practitioners should treat retirement and validation as part of the same lifecycle control.

Cached trust artefacts create hidden identity drift. The certificate that is supposed to be gone can still govern trust decisions if it remains on a client keychain or server. That means the programme may believe the current chain is authoritative when the runtime environment is still using an older one. The control gap is visibility into where trust artefacts persist after change.

Expired intermediate certificates are an NHI governance problem, not just a PKI nuisance. Certificates function as non-human identities, and their lifecycle failures mirror service-account problems: stale credentials, unclear ownership, and incomplete offboarding. The implication is that identity programmes need one lifecycle model for all machine trust artefacts, not separate silos for PKI and IAM.

Legacy compatibility chains create trust debt. A temporary intermediate used for older devices can survive long past its intended purpose and continue to shape validation outcomes. That pattern shows how compatibility exceptions become operational liabilities when nobody owns their removal. Practitioners should view these exceptions as scheduled retirement items, not permanent infrastructure.

From our research:

What this signals

Certificate trust will keep failing wherever lifecycle ownership is split. The operational signal is not just whether a certificate is valid today, but whether every expired intermediate has been removed from endpoints, servers, and application stores. With 57% of organisations lacking a complete inventory of their machine identities according to the machine identity management report, cleanup gaps are likely to persist unless trust artefacts are governed as assets.

Legacy chain debt: expired compatibility certificates often linger because they are treated as exceptions rather than governed objects. That means remediation is less about one server fix and more about proving where stale chain material still exists across the estate.

Teams that already map machine identities into lifecycle workflows should extend that discipline to certificate chain validation, because retirement without verification only moves the error from one host to another.


For practitioners

  • Audit all local trust stores Search client keychains, server stores, and application hosts for expired intermediate certificates, then remove any legacy chain elements that no longer support current installations.
  • Validate the full certificate chain on each platform Check Windows, Exchange, ISA, TMG, Lync, and Apache environments for the exact intermediate chain being presented or trusted, and replace outdated chain files where they persist.
  • Assign ownership to certificate retirement Make retirement and local-store cleanup a tracked lifecycle task, with explicit ownership for removing expired intermediates after replacement or compatibility changes.
  • Build chain-validation checks into change control Require post-change verification that the active certificate path is the one actually trusted by endpoints, not just the one installed on the issuing side.

Key takeaways

  • Expired intermediate certificates can still break TLS trust when local caches, keychains, or server stores retain old chain material.
  • The scale issue is lifecycle hygiene, not just certificate issuance, because stale trust artefacts survive across clients, servers, and compatibility paths.
  • Identity teams should treat certificate retirement, chain validation, and local-store cleanup as part of the same governance control.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST CSF 2.0 and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-03Expired intermediates are a lifecycle and rotation failure for machine trust artefacts.
NIST CSF 2.0PR.AC-1Trust decisions depend on valid credentials and chain state at the point of access.
NIST Zero Trust (SP 800-207)SC-23Zero Trust requires validating the full trust path, not assuming old intermediates remain safe.

Track certificate expiry, retirement, and replacement as lifecycle controls, then remove obsolete intermediates everywhere.


Key terms

  • Intermediate Certificate: An intermediate certificate sits between a root CA and a leaf certificate to extend trust without exposing the root directly. In practice, it must be installed and chained correctly or clients will reject the connection, even when the leaf certificate itself is valid.
  • Certificate Chain: A certificate chain is the ordered path of trust from the leaf certificate back to a trusted root through one or more intermediates. If any link in that path is expired, missing, or mismatched, validation can fail across browsers, servers, and application connections.
  • Trust Store: A trust store is the local set of certificates a system uses to decide what it will trust. When expired intermediates remain in a trust store or keychain, they can continue influencing validation decisions until they are explicitly removed.
  • Certificate Lifecycle Management: Certificate lifecycle management covers issuance, installation, renewal, replacement, retirement, and cleanup of certificates and related chain material. The control only works when expired artefacts are also removed from every place they may persist, including local stores and backend servers.

Deepen your knowledge

NHI governance, agentic AI identity, and machine identity lifecycle are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are building or maturing an IAM programme, it is worth exploring.

This post draws on content published by DigiCert: Fix for an expired intermediate SSL certificate chain. Read the original.

NHIMG Editorial Note
Published by the NHIMG editorial team on 2025-09-29.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org