rustls_pemfile

Function public_keys

Source
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.