trust_dns_rustls::tls_server

Function read_key_from_pem

Source
pub fn read_key_from_pem(path: &Path) -> Result<PrivateKey, ProtoError>
Expand description

Reads a private key from a pem formatted file