Skip to main content

certificate_key

Function certificate_key 

Source
pub fn certificate_key(der: &[u8]) -> Result<KeyMaterial, PeerError>
Expand description

A DER-encoded certificate as the trust store’s key material: method tls, PEM label CERTIFICATE.

§Errors

PeerError::Certificate when der is empty or larger than the store holds.