Skip to main content

load_private_key

Function load_private_key 

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

Load a private key from a PEM file

ยงErrors

Returns an error if the file cannot be opened, the PEM cannot be parsed, or no private key is found.