Random Project

Plugin Works Except on Expired Certificates

Does exactly what I wanted, checking the date on ssl certificates and informing me if they are about to expire.

After expiration it reports the certificate as good. The culprit is a missing exit statement in the expired check; see the diff output below for a fix.

@@ -156,2 +156,3 @@
print “$PROGNAME: CRITICAL – $cn expired ” . abs($daysLeft) . ” day(s) ago.n”;
+ exit $ERRORS{‘CRITICAL’};
} elsif ($daysLeft