trillium-rustls-v0.11.2
·
54 commits
to main
since this release
Added
RustlsClientConfig::from_root_cert_pem(pem)— build a client config that trusts exactly the certificate(s) in the provided PEM (ignoring platform/webpki defaults) while keeping certificate verification intact. Useful for connecting to a service with a private or self-signed certificate without reconstructing the crate's provider/ALPN defaults by hand.RustlsClientConfigis now re-exported from the crate root.dangerouscargo feature, gatingRustlsClientConfig::dangerously_accept_any_cert()— a client config that disables server authentication entirely.
Fixed
- Connecting over TLS to a host given as an IP address (e.g.
https://127.0.0.1) failed with amissing domaintransport error; only DNS hostnames worked. IP-address hosts now connect, validated against the certificate's IP SAN (no SNI is sent for them, per the TLS spec).