certificate validity dates should contain the timezone; ignoring it may result in an error when the enddate is during a daylight saving time related clock change
--- a/check_cert.pl Mon Jan 07 12:43:56 2019 +0100
+++ b/check_cert.pl Mon Jan 07 13:00:25 2019 +0100
@@ -142,7 +142,7 @@
# check expire date
foreach ( sort keys %certs ) {
my $enddate;
- if ( @{ $certs{$_} }[1] =~ /(\w+\s+\d+\s+\d+:\d+:\d+\s+\d+)/ ) {
+ if ( @{ $certs{$_} }[1] =~ /(\w+\s+\d+\s+\d+:\d+:\d+\s+\d+\s+(\w+)?)/ ) {
$enddate = $1;
}
$enddate = ParseDate($enddate);