uselesskey-rustls
rustls /
rustls-pki-types adapter for
uselesskey test fixtures.
Converts fixture certs and keys into CertificateDer / PrivateKeyDer, with
optional ServerConfig / ClientConfig builders (including mTLS support).
Features
| Feature | Description |
|---|---|
x509 (default) |
X.509 cert and chain conversions |
rsa |
RSA keypairs → PrivateKeyDer |
ecdsa |
ECDSA keypairs → PrivateKeyDer |
ed25519 |
Ed25519 keypairs → PrivateKeyDer |
all |
All key conversion traits |
server-config |
rustls::ServerConfig builders |
client-config |
rustls::ClientConfig builders |
tls-config |
Both server and client config builders |
rustls-ring |
ring crypto provider integration |
rustls-aws-lc-rs |
aws-lc-rs crypto provider integration |
Usage
[]
= { = "0.2", = ["tls-config", "rustls-ring"] }
use Factory;
use ;
use ;
let fx = random;
let chain = fx.x509_chain;
let server = chain.server_config_rustls;
let client = chain.client_config_rustls;
let _ = ;
License
Licensed under either of Apache License, Version 2.0 or MIT license at your option.
See the uselesskey crate for full
documentation.