🔐 trillium-native-tls — TLS via native-tls
TLS adapter for Trillium using native-tls, which delegates to the platform's built-in TLS implementation (SChannel on Windows, Secure Transport on macOS, OpenSSL on Linux). Provides NativeTlsAcceptor for servers and NativeTlsClientTransport for clients.
Example
use Conn;
use NativeTlsAcceptor;
The key may be PKCS#8, PKCS#1 (RSA), or SEC1 (EC) PEM — the same inputs
accepted by trillium-rustls and trillium-openssl. PKCS#12 archives are also
supported via NativeTlsAcceptor::from_pkcs12(der, password) for callers who
already have a password-protected bundle.
Safety
This crate uses #![forbid(unsafe_code)].