Skip to main content

expiry_words

Function expiry_words 

Source
pub fn expiry_words(
    tr: &Translator,
    cert: &Cert,
    expires: Option<i64>,
    now: i64,
) -> (String, bool, bool)
Expand description

What a certificate says of its expiry, part by part: each part expired, exactly (“Its encryption subkey (B81A…BF8C) expired on 8 April 2025: nobody can encrypt to you with it.”), and, when its subkeys alone expired, that Renew renews them; else until when it is valid, or that it expires soon (expires, the earliest of the keys that matter). What it says, whether warmly, and whether a part expired.