Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
Increased number of days for flagging an expiring certificate to 42 d…
Browse files Browse the repository at this point in the history
…ays, and parameterised the script.

Bug 1021
  • Loading branch information
Alex Stuart authored and Alex Stuart committed Jul 30, 2013
1 parent 7bd0fef commit 092ad39
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions build/check_embedded.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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".
#
Expand Down Expand Up @@ -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)");
}
Expand Down

0 comments on commit 092ad39

Please sign in to comment.