Function rustls_pemfile::certs
source · pub fn certs(
rd: &mut dyn BufRead
) -> impl Iterator<Item = Result<CertificateDer<'static>, Error>> + '_Expand description
Extract all the certificates from rd, and return a vec of byte vecs
containing the der-format contents.
This function does not fail if there are no certificates in the file – it returns an empty vector.