Skip to main content

cert_validity

Function cert_validity 

Source
pub fn cert_validity(der: &[u8]) -> Result<(i64, i64), Err<X509Error>>
Expand description

Extracts the validity period (notBefore, notAfter) from a DER-encoded certificate as UNIX timestamps (seconds since epoch).