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

Function public_keys

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

Return an iterator over SPKI-encoded keys from rd.

Filters out any PEM sections that are not SPKI-encoded public keys and yields errors if a problem occurs while trying to extract a SPKI-encoded public key.