NAME

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

SYNOPSIS

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

DESCRIPTION

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.

OPTIONS

--file DATAFILE
-f DATAFILE

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
--duration DURATION
-d DURATION

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
-l

Add dummy link attribute.

SEE ALSO

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

AUTHOR

HIROSE, Masaaki <hirose31@gmail.com>