Expand description
Local, fail-closed TLSA matching for HNS HTTPS certificates.
This crate supports DANE-EE (usage 3), full-certificate and
SubjectPublicKeyInfo selectors, and exact/SHA-256/SHA-512 matching. It
does not contain a WebPKI or network fallback.
Structs§
- Dane
Limits - Bounded DANE verification inputs.
- Dane
Match - Successful local match details.
Enums§
- Certificate
Usage - Supported TLSA certificate usage.
- Dane
Error - Local TLSA/DANE validation failure.
- Matching
Type - Supported TLSA matching type.
- Selector
- Supported TLSA selector.
Constants§
- DEFAULT_
MAX_ CERTIFICATE_ LEN - Default maximum DER certificate size.
- DEFAULT_
MAX_ SPKI_ LEN - Default maximum DER
SubjectPublicKeyInfosize. - MAX_
TLSA_ ASSOCIATION_ LEN - Maximum TLSA association bytes representable by DNS RDATA after its prefix.
Functions§
- extract_
subject_ public_ key_ info - Extract the exact DER
SubjectPublicKeyInfoTLV from a leaf certificate. - verify_
dane_ chain - Verify a TLS server certificate chain against DANE-EE or DANE-TA records.
- verify_
dane_ ee - Verify a leaf certificate against a strict DNSSEC-authenticated DANE-EE RRset.