BuildCandidatePathInput
BuildCandidatePathInput
Input for buildCandidatePath.
ts
interface BuildCandidatePathInput {
readonly distrustedSpkiSha256?: readonly string[];
readonly leaf: CertificateSource;
readonly intermediates?: readonly CertificateSource[];
readonly roots: readonly CertificateSource[];
readonly trustAnchors?: readonly TrustAnchor[];
readonly at?: Date;
readonly maxPathBuildingChecks?: number;
}Properties
readonlydistrustedSpkiSha256?:readonlystring``[]— SHA-256 hashes of complete DER SubjectPublicKeyInfo values to distrust. Supply 64 hexadecimal characters per hash (case-insensitive, no separators). Defaults to an empty list. Malformed entries throw RangeError. Applies to every path certificate and bare trust anchor, before revocation. A match returnspublic_key_distrusted, with the hash indetails.actual.readonlyleaf:CertificateSource— End-entity certificate to verify.readonlyintermediates?:readonlyCertificateSource[]— Intermediate CA certificates available for path building. Order does not matter.readonlyroots:readonlyCertificateSource[]— Trusted root CA certificates. At least one root or trust anchor must be supplied.readonlytrustAnchors?:readonlyTrustAnchor[]— Bare trust anchors to try when no root certificate matches.readonlyat?:Date— Validation time. Defaults tonew Date().readonlymaxPathBuildingChecks?:number— Maximum issuer candidates and trust anchors the path search may try before it stops withpath_building_limit_exceeded. Defaults to100_000.