Subscribe to the Non-Human & AI Identity Journal

What is the difference between certificate expiry and revocation?

Expiry ends trust automatically at a scheduled date, while revocation removes trust early because the certificate is no longer safe or appropriate to use. Expiry is time-based, but revocation is event-based and should happen when compromise, reassignment, or policy violation occurs. Both matter because a certificate can be current and still be wrong.

Why This Matters for Security Teams

Certificate expiry and revocation are often treated as the same operational event, but they solve different trust problems. Expiry is a built-in end date, while revocation is an emergency stop that should remove trust before the scheduled end. That difference matters because machine identities and service accounts can still be dangerous when a certificate is technically valid. NHI Management Group’s Ultimate Guide to NHIs — Lifecycle Processes for Managing NHIs frames this as a lifecycle control issue, not just a PKI task.

Operationally, teams get burned when they assume expiry will clean up risk on its own. It will not revoke a stolen key, prevent misuse after role changes, or stop a certificate from being accepted by downstream systems that ignore revocation signals. The OWASP Non-Human Identity Top 10 treats weak lifecycle governance as a core risk because secrets and certificates often outlive the business context that created them.

In practice, many security teams discover revocation gaps only after an incident or access dispute has already exposed the difference between “not expired” and “still trusted.”

How It Works in Practice

Expiry is deterministic. The certificate carries a not-before and not-after window, and once the end time passes, compliant clients should stop trusting it. Revocation is discretionary and event-driven. A CA, OCSP responder, or CRL can mark a certificate as no longer trustworthy because the private key was exposed, the workload was decommissioned, the certificate was issued in error, or policy changed. For NHI operations, that distinction is critical because certificates often authenticate services, pipelines, or automation that run without human supervision.

In a mature workflow, expiry and revocation serve different controls. Expiry supports routine rotation, while revocation supports emergency containment. Best practice is to pair them with inventory, ownership, and automated lifecycle handling so a certificate can be retired immediately when a workload is reassigned or compromised. NHI Management Group’s NHI Lifecycle Management Guide and Guide to the Secret Sprawl Challenge both reinforce that unmanaged sprawl is what turns routine certificate handling into a security problem.

  • Use expiry to force predictable rotation before a credential becomes stale.
  • Use revocation when a certificate should stop working immediately, even if it is still within its validity window.
  • Automate renewal, replacement, and revocation as part of the same lifecycle, not separate ticket flows.
  • Confirm that relying parties actually check revocation status, because some environments cache or ignore it.

Current guidance suggests treating revocation as a control that is only as effective as client validation, network reachability, and operational discipline. The strongest policy is the one that gets enforced at request time, not just the one written into the certificate authority. These controls tend to break down in disconnected, high-latency, or legacy environments because revocation status cannot be checked reliably in real time.

Common Variations and Edge Cases

Tighter revocation control often increases operational overhead, requiring organisations to balance faster containment against client compatibility and maintenance burden. Some teams rely heavily on short-lived certificates to reduce revocation dependence, but that is not the same as revocation. Short TTLs limit exposure; they do not stop an actively compromised certificate from working until it expires. The better pattern is to combine short-lived credentials with a real revocation path for exceptions and emergencies.

Edge cases matter. Offline systems may continue trusting a revoked certificate until the next sync. Some clients check OCSP responses in real time; others use cached CRLs or no revocation checking at all. In those environments, revocation should be treated as a best-effort containment measure unless enforcement is verified. The Ultimate Guide to NHIs — Static vs Dynamic Secrets is useful here because it shows why long-lived credentials and delayed response processes create unnecessary exposure.

There is no universal standard for this yet across every platform, but current guidance favours automated lifecycle controls, rapid replacement, and explicit ownership for every certificate. If a certificate cannot be rotated, revoked, and traced to a workload owner, it is already a governance problem rather than a PKI problem.

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 SP 800-63 set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP Non-Human Identity Top 10 NHI-03 Covers lifecycle and rotation gaps that make expiry and revocation controls fail.
NIST CSF 2.0 PR.AC-1 Access control depends on timely removal of trust, not just scheduled expiry.
NIST SP 800-63 IAL2 Identity proofing and credential lifecycle support trustworthy certificate issuance and retirement.

Map certificate trust decisions to access controls and validate revocation enforcement regularly.