pub fn client_tls(
ca_pem: Option<&Path>,
domain: Option<&str>,
) -> Result<ClientTlsConfig, Error>Expand description
Builds a client TLS config, optionally trusting a custom CA and overriding the domain name expected on the server certificate.
ยงErrors
Returns an error when the CA file cannot be read.