Skip to content

CandidatePathAnchor ​

CandidatePathAnchor ​

How a CandidatePath ends: anchorCertificateInChain: true when CandidatePathCertificates.root is a trusted root certificate included in the chain; false with the selected bare trustAnchor when that anchor verified the terminal certificate, which stays a path certificate.

ts
type CandidatePathAnchor = {
  readonly anchorCertificateInChain: true;
  readonly trustAnchor?: never
} | {
  readonly anchorCertificateInChain: false;
  readonly trustAnchor: TrustAnchor
}

Released under the MIT License.