Skip to main content

extract_principal_from_cert

Function extract_principal_from_cert 

Source
pub fn extract_principal_from_cert(cert_der: &[u8]) -> Option<String>
Expand description

Parse cert_der and return the Subject DN in RFC 2253 format.

This function returns None if the bytes do not parse as a valid X.509 cert.