Skip to main content

expiry

Function expiry 

Source
pub fn expiry(cert: &Path) -> Result<String, String>
Expand description

The expiry date openssl reads out of a certificate.

openssl x509, not a parser: the workspace already requires openssl for everything key-shaped and adding an X.509 crate to read one field would be a supply-chain edge bought for a date.

ยงErrors

Returns a description when the file cannot be read or is not a certificate.