Skip to main content

load_private_key

Function load_private_key 

Source
pub fn load_private_key(path: &str) -> Result<PrivateKeyDer<'static>, TlsError>
Expand description

Loads the PEM private key at path (PKCS#8, PKCS#1, or SEC1). Errors if the file is missing or contains no private key.