pub fn client_tls_from_pem(
key_prefix: &str,
ca_pem: Option<&[u8]>,
server_name: &str,
client_cert_pem: Option<&[u8]>,
client_key_pem: Option<&[u8]>,
) -> Result<ClientTls, String>Expand description
As client_tls, but parses PEM bytes already in memory rather than
reading a file.
ยงErrors
Returns a message if ca_pem/client_cert_pem/client_key_pem does
not parse, if the OS trust store cannot be read and ca_pem is None,
if only one of client_cert_pem/client_key_pem is set, or if
server_name is not a usable DNS name or IP address.