> For the complete documentation index, see [llms.txt](https://www.x509.wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.x509.wiki/other-stuff/certificate-lifecycle-management.md).

# Certificate Lifecycle Management

In the context of a **Public Key Infrastructure (PKI)**, situations arise where an issued certificate needs to be invalidated. Three primary techniques address this: **Certificate Revocation Lists (CRLs)**, **Online Certificate Status Protocol (OCSP)**, and **Short Lifetime Certificates**.

### **CRLs**

Historically, CRLs were the standard for PKIs. A Certification Authority (CA) periodically publishes a list of revoked certificates, including serial numbers, revocation times, and reasons.

CRLs are stored on **CRL Distribution Points (CDPs)**, with HTTP being today's by far most common access method. Because CRLs can become quite large, systems cache them.

The CRL validity enables certificate revocation checks without direct CA involvement and CRL caching even ensures availability during CDP outages. However, they suffer from latency in propagating revocations.

### **OCSP**

OCSP provides real-time certificate status checks. It is an HTTP-based protocol, specified in [RFC 6960](https://www.rfc-editor.org/rfc/rfc6960). Clients query an OCSP responder to verify a single certificate’s validity.

It eliminates the need for large CRLs and reduces the latency between revocation of a certificate and the certificate actually becoming invalid everywhere.

It also allows to consider the live status of the certificate subject, like whether the user the certificate was issued for is still listed in some user directory.

### **Short Lifetime Certificates**

Issuing short-lived certificates (e.g., 1-2 weeks, sometimes only a single day) minimizes the impact of compromised keys and avoids the need for revocations.

It requires systems to fetch fresh certificates more frequently and is therefore unusable in some cases.

Whether the revocation latency is better or worse than CRLs depends on the PKI design, but it cannot get as low as OCSP.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://www.x509.wiki/other-stuff/certificate-lifecycle-management.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
