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
readonlychain:readonlyParsedCertificate[]— Validated certificate chain (leaf first, root last).readonlycrls?:readonlyCrlSource[]— CRLs to evaluate.readonlyocspResponses?:readonlyOcspResponseSource[]— OCSP responses to evaluate.readonlyextraCertificates?:readonlyRevocationCertificateSource[]— Extra certs for indirect CRL issuers / delegated OCSP responders.readonlytrustedOcspResponders?:readonlyTrustedOcspResponder[]— 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.readonlyat?:Date— Evaluation time. Defaults tonew Date().readonlypolicy?:RevocationPolicy— Revocation policy.readonlysignatureVerifiers?: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 insidechainverifies with the key parameters it inherits alongchain(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 throwsRangeError.readonlydistrustedSpkiSha256?:readonlystring``[]— SHA-256 hashes of complete DER SubjectPublicKeyInfo values to distrust in the certification paths of CRL signers and delegated OCSP responders outsidechain. 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.readonlytrustAnchor?:TrustAnchor— The bare trust anchor that issued the last certificate ofchain, 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 ofchainis 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, throwsRangeError.