Skip to main content

extract_subject_dn

Function extract_subject_dn 

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

Extract the raw DER-encoded subject Distinguished Name from an X.509 certificate.

Returns the content of the subject Name SEQUENCE (the RDNs), without the outer SEQUENCE tag and length bytes.