Expand description
Bounded X.509 helpers for Webizen trust (swarm-2 Track C / D6).
Hard caps: no full root program, no CT, no OCSP, no MDM. Agents must never invent PEMs — only verify principal-enabled material.
Structs§
- Path
Verify Result - Result of a bounded path check against enabled PEM roots.
Enums§
- Agent
TlsMode - Honesty: how agent TLS is configured.
Functions§
- agent_
tls_ mode - pem_
to_ ders - Split PEM into certificate DER blobs (CERTIFICATE blocks only).
- root_
cert_ store_ from_ trust - Build a rustls
RootCertStorefrom enabled PEM roots (for agent TLS). - spki_
pin_ matches - SPKI pin match: leaf SPKI fingerprint equals expected hex (case-insensitive).
- spki_
sha256_ hex - SHA-256 fingerprint of SubjectPublicKeyInfo (SPKI) as lowercase hex.
- verify_
chain_ against_ enabled_ roots - Verify leaf (and optional intermediates) against enabled PEM roots in the store.