pub fn public_key_key(spki: &[u8]) -> Result<KeyMaterial, PeerError>Expand description
A DER-encoded SubjectPublicKeyInfo (a raw public key, RFC 7250) as the trust store’s key
material: method tls, PEM label PUBLIC KEY. Its id is the SHA-256 of the SubjectPublicKeyInfo.
§Errors
PeerError::Certificate when spki is empty or larger than the store holds.