Crate rustls_helper
source ·Functions
- create
rustls::Certificate
from pem file - create
rustls::ClientConfig
from CA certificate and optional client auth. Notecert
andkey
need to be bothSome(...)
to enable client auth. - create
rustls::ServerConfig
from certificate,private key and optional client auth. - create
rustls::PrivateKey
from pem file