ValidateCandidatePathInput
ValidateCandidatePathInput
Input for validateCandidatePath.
ts
interface ValidateCandidatePathInput extends PolicyValidationInput, InitialNameConstraintsInput {
readonly distrustedSpkiSha256?: readonly string[];
readonly policy?: PolicyValidationInput;
readonly nameConstraints?: InitialNameConstraintsInput;
readonly chain: readonly ParsedCertificate[];
readonly anchorCertificateInChain?: boolean;
readonly at?: Date;
readonly purpose?: VerifyPurpose;
readonly allowSelfSignedLeaf?: boolean;
readonly rejectOversizedDisplayText?: boolean;
readonly trustAnchor?: TrustAnchor;
}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.readonlypolicy?:PolicyValidationInput— Nested policy validation overrides (takes precedence over flat fields).readonlynameConstraints?:InitialNameConstraintsInput— Nested name constraint overrides (takes precedence over flat fields).readonlychain:readonlyParsedCertificate[]— Pre-built certificate chain in leaf-to-root order.readonlyanchorCertificateInChain?:boolean— Whether the terminal certificate inchainis the trust anchor (and so is excluded from policy processing). Defaults totrue, matching a chain that ends at a root certificate. Setfalsewhen a bare trust anchor verified the terminal certificate, which then must be processed as a path certificate.readonlyat?:Date— Validation time. Defaults tonew Date().readonlypurpose?:VerifyPurpose— Leaf purpose constraint to enforce.readonlyallowSelfSignedLeaf?:boolean— Whentrue, allows a self-signed leaf that is also the root. Defaults tofalse.readonlyrejectOversizedDisplayText?:boolean— Whentrue, rejects a certificate whose user noticeexplicitTextornoticeReforganization exceeds 200 characters withdisplay_text_oversized. Defaults tofalse, and the parsed certificate reports such a value asoversizedExplicitTextoroversizedOrganization.readonlytrustAnchor?:TrustAnchor— Bare anchor returned by buildCandidatePath. Required for distrust checks when anchorCertificateInChain is false.