
check-cert-expire.pl - check and list expired certificates

check-cert-expire.pl [ --help ] [ --duration DURATION ] --file DATAFILE
$ cat <<EOF > server-list.txt https://rt.cpan.org https://www.google.com EOF $ check-cert-expire.pl --duration '3 months' --file server-list.txt $ check-cert-expire.pl -d '3 months' -f server-list.txt --- entry: - date: 2015-04-14T05:12:17 title: https://rt.cpan.org title: Certificate Expire Date

Examine expire date of certificate and output name and expire date if expired. Output format is YAML.
Examinee certificate is both OK via network (HTTPS) and local file.

DATAFILE is name of plain text file contains testee list.
Acceptable list format is the following.
FORMAT EXAMPLE =============================== https://FQDN https://rt.cpan.org file://PATH file:///etc/ssl/cert.pem FQDN rt.cpan.org PATH /etc/ssl/cert.pem
Specify the furtur point to check expiration. If omitted, check against just now.
DURATION accepts human readable text. See also Time::Duration::Parse.
3 days 4 months 10 years 4 months and 3days
Add dummy link attribute.

Net::SSL::ExpireDate, Time::Duration::Parse

HIROSE, Masaaki <hirose31@gmail.com>