Crate rustls_helper

source ·

Functions

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