Crate rustls_helper

Crate rustls_helper 

Source

Functionsยง

cert_from_pem
create rustls::Certificate from pem file
create_client_config
create rustls::ClientConfig from CA certificate and optional client auth. Note cert and key need to be both Some(...) to enable client auth.
create_server_config
create rustls::ServerConfig from certificate,private key and optional client auth.
key_from_pem
create rustls::PrivateKey from pem file