pub fn extract_trust_anchor<'a>(
    cert: &'a CertificateDer<'a>
) -> Result<TrustAnchor<'a>, Error>
Expand description

Interprets the given DER-encoded certificate as a TrustAnchor. The certificate is not validated. In particular, there is no check that the certificate is self-signed or even that the certificate has the cA basic constraint.