ssl-expiration

Crates.iossl-expiration
lib.rsssl-expiration
version0.1.2
sourcesrc
created_at2017-04-11 21:58:57.491538
updated_at2018-09-22 15:37:18.586019
descriptionChecks SSL certificate expiration
homepage
repositoryhttps://github.com/onur/ssl-expiration
max_upload_size
id10334
size8,381
Onur Aslan (onur)

documentation

https://docs.rs/ssl-expiration

README

ssl-expiration

Build Status License Crates.io docs.rs

Checks SSL certificate expiration.

Usage

use ssl_expiration::SslExpiration;

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

CLI

This crate also comes with a handy command line program. You can install it with: cargo install ssl-expires and check expiration of SSL certificates with:

$ ssl-expiration google.com docs.rs github.com
google.com SSL certificate will expire in 69 days.
docs.rs SSL certificate will expire in 8 days.
github.com SSL certificate will expire in 399 days.
Commit count: 8

cargo fmt