Skip to main content

extract_signature_algorithm_oid

Function extract_signature_algorithm_oid 

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

Extract the signature algorithm OID from an X.509 certificate.

Returns the raw OID bytes from the signatureAlgorithm field of the certificate (NOT the TBSCertificate’s inner signature field — those are the same per RFC 5280 but the outer one is what covers the signed data).