pub fn cert_der_as_trust_anchor(
    cert_der: &[u8]
) -> Result<TrustAnchor<'_>, 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.