Function hsmtool::util::key::rsa::load_private_key

source ·
pub fn load_private_key<P: AsRef<Path>>(path: P) -> Result<RsaPrivateKey>
Expand description

Loads an RSA private key from a file. The key may be in either PKCS#1 or PKCS#8 format encoded in either DER or PEM encodings.