Skip to content

CheckChainRevocationInput ​

CheckChainRevocationInput ​

Input for checkChainRevocation.

ts
interface CheckChainRevocationInput {
	readonly chain: readonly ParsedCertificate[];
	readonly crls?: readonly CrlSource[];
	readonly ocspResponses?: readonly OcspResponseSource[];
	readonly extraCertificates?: readonly RevocationCertificateSource[];
	readonly trustedOcspResponders?: readonly TrustedOcspResponder[];
	readonly at?: Date;
	readonly policy?: RevocationPolicy;
	readonly signatureVerifiers?: SignatureVerifiers;
	readonly distrustedSpkiSha256?: readonly string[];
	readonly trustAnchor?: TrustAnchor;
}

Properties

  • readonly chain: readonly ParsedCertificate[] — Validated certificate chain (leaf first, root last).
  • readonly crls?: readonly CrlSource[] — CRLs to evaluate.
  • readonly ocspResponses?: readonly OcspResponseSource[] — OCSP responses to evaluate.
  • readonly extraCertificates?: readonly RevocationCertificateSource[] — Extra certs for indirect CRL issuers / delegated OCSP responders.
  • readonly trustedOcspResponders?: readonly TrustedOcspResponder[] — Explicitly trusted OCSP responder certificates (RFC 6960 §4.2.2.2 criterion 1), each bound to the issuing CA for which it is authorized. A response signed by a matching responder is accepted without delegated- responder issuance, EKU, and revocation checks only in that issuer scope.
  • readonly at?: Date — Evaluation time. Defaults to new Date().
  • readonly policy?: RevocationPolicy — Revocation policy.
  • readonly signatureVerifiers?: SignatureVerifiers — Caller verifiers for signature algorithms micro509 does not verify through WebCrypto, keyed by dotted-decimal signature algorithm OID, for CRL and OCSP signatures and the signer paths checked here. A CRL or OCSP signer inside chain verifies with the key parameters it inherits along chain (RFC 5280 §6.1.4 (e)). A key that micro509 verifies natively, a key that is no OID, or a value that is no function throws RangeError.
  • readonly distrustedSpkiSha256?: readonly string``[] — SHA-256 hashes of complete DER SubjectPublicKeyInfo values to distrust in the certification paths of CRL signers and delegated OCSP responders outside chain. Supply 64 hexadecimal characters per hash (case-insensitive, no separators). Defaults to an empty list. Malformed entries throw RangeError. A signer whose path carries one yields no evidence.
  • readonly trustAnchor?: TrustAnchor — The bare trust anchor that issued the last certificate of chain, when the path ends below one (RFC 5280 §6.1.1 (d)). The last certificate is then certificate 1 of the path and is checked too (RFC 5280 §6.1.3 (a)(3)), with the anchor as its issuer: its key signs CRLs and OCSP responses and certifies delegated signers (X.509 (2019) §7.5). Omitted, the last certificate of chain is the trust anchor and is not checked. A chain that ends with the anchor's own certificate, or whose last certificate the anchor did not issue, throws RangeError.

Released under the MIT License.