pub fn private_key(
rd: &mut dyn BufRead,
) -> Result<Option<PrivateKeyDer<'static>>, Error>Expand description
Return the first private key found in rd.
Yields the first PEM section describing a private key (of any type), or an error if a problem occurs while trying to read PEM sections.