Skip to main content

Crate hns_dane

Crate hns_dane 

Source
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§

DaneLimits
Bounded DANE verification inputs.
DaneMatch
Successful local match details.

Enums§

CertificateUsage
Supported TLSA certificate usage.
DaneError
Local TLSA/DANE validation failure.
MatchingType
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 SubjectPublicKeyInfo size.
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 SubjectPublicKeyInfo TLV 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.