From 092ad396485b3abbd64c3b37e00416f51f80d99b Mon Sep 17 00:00:00 2001 From: Alex Stuart Date: Tue, 30 Jul 2013 09:25:23 +0000 Subject: [PATCH] Increased number of days for flagging an expiring certificate to 42 days, and parameterised the script. Bug 1021 --- build/check_embedded.pl | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/build/check_embedded.pl b/build/check_embedded.pl index 02e2fbe4..eec7c007 100755 --- a/build/check_embedded.pl +++ b/build/check_embedded.pl @@ -16,6 +16,16 @@ # -q quiet don't print anything out if there are no problems detected # +# +# Number of days when we issue a warning +# +my $daysBeforeWarning = 43; + +# +# Number of days when we issue an error +# +my $daysBeforeError = 18; + # # Number of days in the past we should regard as "long expired". # @@ -396,10 +406,10 @@ sub comment { error("EXPIRED ($notAfter)"); comment("fingerprint $fingerprint"); } - } elsif ($days < 18) { + } elsif ($days < $daysBeforeError) { $days = int($days); error("expires in $days days ($notAfter)"); - } elsif ($days < 36) { + } elsif ($days < $daysBeforeWarning) { $days = int($days); warning("expires in $days days ($notAfter)"); }