Skip to main content

extract_spki_from_cert

Function extract_spki_from_cert 

Source
pub fn extract_spki_from_cert<'a>(cert_der: &'a [u8]) -> Result<&'a [u8], Error>
Expand description

Extract the SubjectPublicKeyInfo DER from an X.509 certificate.

Returns the raw DER bytes of the subjectPublicKeyInfo field inside the tbsCertificate SEQUENCE.