ssl-expiration2

Crates.iossl-expiration2
lib.rsssl-expiration2
version0.4.0
sourcesrc
created_at2020-06-30 12:07:20.363853
updated_at2021-05-15 21:21:07.27625
descriptionChecks SSL certificate expiration
homepage
repositoryhttps://github.com/VerKnowSys/ssl-expiration
max_upload_size
id259811
size15,836
Daniel (dmilith) Dettlaff (dmilith)

documentation

https://docs.rs/ssl-expiration

README

ssl-expiration2

Checks SSL certificate expiration.

Usage

use ssl_expiration2::SslExpiration;

let expiration = SslExpiration::from_domain_name("google.com").unwrap();
if expiration.is_expired() {
    // do something if SSL certificate expired
}
use ssl_expiration2::SslExpiration;

let expiration =
    SslExpiration::from_domain_name("google.com").expect("Domain validation has to work");
if expiration.days() < 14 {
    // SSL certificate will expire in less than 2 weeks, run notification…
}

Commit count: 24

cargo fmt