Rewind cursor

This commit is contained in:
Frank Denis 2021-02-15 00:06:50 +01:00
parent 9f092224cd
commit 2179ceae67

View file

@ -61,6 +61,7 @@ where
"Unable to parse the certificates private keys (PKCS8)",
)
})?;
reader.set_position(0);
let mut rsa_keys = pemfile::rsa_private_keys(&mut reader).map_err(|_| {
io::Error::new(
io::ErrorKind::InvalidInput,