trust_dns_openssl::tls_server

Function read_key_from_pkcs8

Source
pub fn read_key_from_pkcs8(
    path: &Path,
    password: Option<&str>,
) -> Result<PKey<Private>, ProtoError>
Expand description

Reads a private key from a pkcs8 formatted, and possibly encoded file