Function rustls_pemfile::pkcs8_private_keys
source ยท pub fn pkcs8_private_keys(
rd: &mut dyn BufRead,
) -> impl Iterator<Item = Result<PrivatePkcs8KeyDer<'static>, Error>> + '_
Expand description
Return an iterator over PKCS8-encoded private keys from rd
.
Filters out any PEM sections that are not PKCS8-encoded private keys and yields errors if a problem occurs while trying to extract an RSA private key.