Skip to main content

pem_decode

Function pem_decode 

Source
pub fn pem_decode(label: &str, pem: &str) -> Option<Vec<u8>>
Expand description

Decode a PEM block with the expected label. Returns the DER bytes. Returns None if the label doesn’t match or base64 is invalid.