pub fn create_client_config(
cert: Option<Vec<Certificate>>,
key: Option<PrivateKey>,
ca: Vec<Certificate>,
) -> Result<ClientConfig, Error>Expand description
create rustls::ClientConfig from CA certificate and optional client auth.
Note cert and key need to be both Some(...) to enable client auth.