Revocation & CRL Distribution
Certificate revocation in the Eviden KMS follows the two-phase model defined by RFC 5280:
- Revoke a certificate โ the KMIP
Revokeoperation marks the certificateDeactivatedorCompromisedin the KMS database. - Publish the revocation โ the
Generate-CRLoperation (or automatic post-revocation refresh) signs a fresh CRL that relying parties can fetch.
CRL generation
The KMS generates X.509 v2 Certificate Revocation Lists (CRLs) per RFC 5280 ยง5.
A CRL lists all certificates issued by a CA that have been revoked. The KMS
automatically collects all revoked certificates โ those in Deactivated or
Compromised state with a CertificateLink pointing to the issuer โ regardless
of which user owns each certificate record in the KMS database, then signs the
CRL with the CA private key.
A CertificateLink can be set by any user who imports a certificate, so a linked
certificate only counts if the CA really issued it:
- its issuer name is the CA subject and its signature verifies with the CA public key;
- when several records carry the same serial (for example, someone imported a copy of a
certificate), only the records owned by the CA certificate owner or by a user allowed
to issue with the CA private key (
Certifygrant, orGeton a database key) count. If none of them qualifies, for example because the issuing user's grant was removed since, all of them count, so a revocation never silently disappears.
Each serial number is listed once, with its earliest revocation.
CLI usage:
ckms certificates generate-crl \
--certificate-id <CA_CERT_ID> \
--validity-days 7 \
--output-format pem \
--output-file /tmp/crl.pem
REST endpoint (authenticated):
GET /certificates/{issuer_id}/crl?format=pem&validity_days=7
Returns application/pkix-crl (DER, default) or application/x-pem-file (PEM).
validity_days must be at most 365; larger values are rejected with HTTP 422.
Any authenticated user with Get access to the CA certificate may call
this endpoint โ no Crypto Officer role is required. CRL content is public
information (RFC 5280 ยง3); the authentication check exists to prevent the CA
private key from being used as an unauthenticated signing oracle, not to
restrict access to the revocation list itself.
To make the KMS reject revoked client certificates, write the PEM CRL into the
clients_crl_dir directory; see
Revoking client certificates (CRL).
The generated CRL includes:
- Authority Key Identifier (AKI) โ derived from the CA's
subjectKeyIdentifierextension if present, or from a SHA-1 hash of the CA'sSubjectPublicKeyInfoDER. - CRL Number โ monotonically increasing integer, seeded at startup from
max(unix_timestamp, db_max_crl_number + 1)to guarantee strict monotonicity across server restarts (RFC 5280 ยง5.2.3). - Per-entry CRL Reason Code โ mapped from the KMIP revocation reason stored at revocation time (RFC 5280 ยง5.3.1).
- Per-entry Invalidity Date โ
GeneralizedTime-encoded date of compromise when available in object attributes (RFC 5280 ยง5.3.2).
Configuration
# kms.toml
[crl]
crl_default_validity_days = 7 # default CRL validity in days (1โ365)
crl_refresh_check_hours = 1 # background refresh check interval; 0 = disabled
crl_refresh_overlap_hours = 24 # pre-regenerate this many hours before expiry
All three keys may also be set as CLI flags or environment variables:
--crl-default-validity-days 7
--crl-refresh-check-hours 1
--crl-refresh-overlap-hours 24
Automatic CRL regeneration on revocation
When kms_public_url is set in kms.toml, the server automatically regenerates
the issuer's CRL in the background whenever a certificate is revoked via the
Revoke operation. The regeneration is fire-and-forget: it does not block the
Revoke response, and any signing failure is logged at WARN level without
affecting the revocation outcome.
The CRL is signed on behalf of the owner of the CA certificate, so the user who
revokes a leaf certificate does not need access to the CA private key. The same
applies to the scheduled refresh below. A certificate that is revoked and then
destroyed stays on the CRL: Destroy keeps its issuer link and revocation details.
In a multi-node deployment, each node re-reads the stored CRL from the shared database
at most every 60 seconds, so the public endpoint picks up CRLs regenerated by other
nodes.
# kms.toml โ enables CDP auto-injection and auto-CRL regeneration
kms_public_url = "https://kms.example.com"
The updated CRL is immediately available at the public CDP endpoint:
GET /public/certificates/{issuer_id}/crl # no authentication required
Scheduled CRL refresh
A background scheduler wakes every crl_refresh_check_hours (default: 1 h) and
regenerates any stored CRL whose nextUpdate timestamp falls within
crl_refresh_overlap_hours (default: 24 h) of the current time. This prevents
relying parties from seeing an expired CRL during the window between the scheduled
expiry and the next revocation-triggered regeneration.
Set crl_refresh_check_hours = 0 to disable the background scheduler entirely
(CRLs will only be refreshed on explicit generate-crl calls or Revoke events).
CRL distribution points
When kms_public_url is configured, the KMS automatically injects a
crlDistributionPoints (CDP) extension into every CA-issued certificate, pointing
to the server's own public CRL endpoint:
https://<kms_public_url>/public/certificates/<issuer_id>/crl
You do not need to supply a CDP extension manually for KMS-issued certificates
when kms_public_url is set.
To override or set a custom CDP manually (e.g. for an external CA), add a
crlDistributionPoints entry in the extension config file passed via
--certificate-extensions:
[ v3_ext ]
crlDistributionPoints=URI:http://ca.example.com/crl.pem
CRLs fetched by the KMS (Validate, Import)
When the KMS validates a certificate chain (KMIP Validate) or imports an Active certificate, it
downloads the CRLs named in the certificates' distribution points. Safeguards:
- Only
http://andhttps://URIs are fetched; redirects are never followed; the request times out after 30 s; at most 8 downloads run at the same time. - The body is capped at 10 MiB while streaming, including chunked responses without
Content-Length. - The host name is resolved by the KMS and every resolved address is checked. Distribution points that
resolve to a loopback, private, link-local, carrier-grade NAT (
100.64.0.0/10), documentation, benchmarking, multicast or reserved address (and IPv6 equivalents, including NAT64 embedding such an IPv4 address) are rejected; the connection is then pinned to the checked addresses. The server's ownkms_public_urlis exempt. - Only well-formed CRLs are cached (at most 256 entries and 64 MiB in total, 5 minutes each). CRL signatures are verified on every use.
When an outbound proxy is configured, the proxy resolves the distribution point host name itself. The KMS still checks its own resolution of the name (a name that only the proxy can resolve is treated as an unreachable distribution point), but cannot pin the proxy's connection: enforce egress restrictions (internal address ranges, cloud metadata endpoints) on the proxy.
A CRL that cannot be fetched, parsed or verified is not treated as evidence of revocation: Import
keeps the requested state (Active), and Validate skips an unreachable distribution point with a
warning (an address blocked by the rules above makes Validate report the chain as invalid). Only a
certificate actually listed in a verified CRL is imported as Compromised.
Public (unauthenticated) CRL endpoint
GET /public/certificates/{issuer_id}/crl is intended for CRL Distribution Point
(CDP) URIs embedded in certificates. Any relying party โ browser, TLS stack, OCSP
client โ can fetch the current CRL without credentials, as required by
RFC 5280 ยง3.
The response includes:
Content-Type: application/pkix-crlLast-Modified(RFC 7231 IMF-fixdate)Cache-Control: public, max-age=Nwhere N is derived fromnextUpdate โ 60 s
The endpoint returns 404 only if the CRL has never been generated and no CRL is stored in the database.
Generated CRLs are persisted in the KMS database (crls table) and reloaded
on server restart, so the public endpoint continues to serve the last signed CRL
without requiring a manual generate-crl call after each restart.
The KMS also includes a built-in OCSP responder (RFC 6960) for real-time, per-certificate revocation status โ see OCSP Responder.
In a multi-region deployment, CRL generation (ckms certificates generate-crl,
GET /certificates/{issuer_id}/crl) and the background refresh scheduler run on the leader
region only (region_role = "leader"), to keep the RFC 5280 crlNumber monotonic. The signed CRL
rows in the crls table replicate to every follower region, so the public CDP endpoint
(GET /public/certificates/{issuer_id}/crl) serves the replicated CRL in every region.
A certificate revoked on a follower does not regenerate the CRL: the leader gate refuses the
follower's automatic regeneration (logged at WARN). The revocation replicates to the leader, which
republishes the stored CRL at the next run of its refresh scheduler (every crl_refresh_check_hours,
default 1 h, when kms_public_url is set): the scheduler regenerates a CRL whose nextUpdate is
within crl_refresh_overlap_hours (default 24 h) or whose list of revoked certificates has changed.
To publish a revocation at once, revoke on the leader region, or run generate-crl on the leader
after revoking on a follower.
The OCSP response cache is in memory, per KMS process: a revocation evicts only the cached response
of the process that served it. Other KMS nodes, in every region, answer nonce-less requests from
their cache until ocsp_cache_ttl_secs (default 86400 s) elapses. Keep ocsp_cache_ttl_secs low in a
multi-region deployment, or have relying parties send a nonce, which bypasses the cache.
See Multi-region active-active deployment.
No Revocation Available (id-ce-noRevAvail, RFC 9608)
For self-signed certificates (no issuer key provided) that do not carry a CRL
distribution point, the KMS automatically adds the id-ce-noRevAvail extension
(OID 2.5.29.56, RFC 9608 ยง2). This signals to relying parties that no
revocation information is available for this certificate, and that they MUST NOT
reject it for lack of a CRL or OCSP response.
This behaviour applies to all algorithms (RSA, EC, ML-DSA, SLH-DSA, โฆ).
When validating a chain, the KMS skips CRL fetching for any certificate that carries this extension.