#ssl-certificate #expiration

bin+lib ssl-expiration

Checks SSL certificate expiration

3 releases

Uses old Rust 2015

0.1.2 Sep 22, 2018
0.1.1 Apr 12, 2017
0.1.0 Apr 11, 2017

#1230 in Cryptography

31 downloads per month

MIT license

8KB
114 lines

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.

Dependencies

~4–11MB
~128K SLoC