rama::tls::rustls::dep::pemfile

Function rsa_private_keys

pub fn rsa_private_keys(
    rd: &mut dyn BufRead,
) -> impl Iterator<Item = Result<PrivatePkcs1KeyDer<'static>, Error>>
Expand description

Return an iterator over RSA private keys from rd.

Filters out any PEM sections that are not RSA private keys and yields errors if a problem occurs while trying to extract an RSA private key.