@dottedice/trust-anchor-resolver
v1.0.4
Published
Certificate trust path builder and anchor resolver for AATL, eIDAS, and CCA India trust root structures
Maintainers
Readme
Legal Terms & Disclaimer
This open-source package is distributed strictly for technical education and architectural research purposes. For full warranty disclaimers, export control notices (US EAR / EU Dual-Use), and limitation of liability terms, please review our Open Source Terms & Disclaimer.
@dottedice/trust-anchor-resolver
Certificate trust path builder and anchor resolver. Validates intermediate certificate chains, parses distinguished name metadata, and verifies leaf signers against trusted Root CA Stores (AATL / eIDAS / CCA India).
Installation
npm install @dottedice/trust-anchor-resolverFeatures
- Zero Dependencies: Pure vanilla JavaScript module.
- Path Builder: Reconstructs leaf-to-root certificate hierarchies.
- DN Extractors: Extracts serialNumber, issuer, and subject metadata from X.509 DER streams.
API Reference
extractCertMetadata(certDer)
Parses subject and issuer CommonName details from DER bytes.
certDer(Uint8Array): Certificate DER bytes.
verifyTrustAnchor(leafCertDer, intermediates, rootStore)
Reconstructs certificate path and returns trust state.
leafCertDer(Uint8Array): Leaf certificate.intermediates(Array<Uint8Array>): Intermediate CAs.rootStore(Array<Uint8Array>): Trusted Root CA anchors.- Returns
{ trusted: boolean, reason: string, path: Array<Object> }.
