Skip to content

Commit

Permalink
Reduce warning and error times for about-to-expire certificates from …
Browse files Browse the repository at this point in the history
…60 and 30 days to 28 and 14 days.
  • Loading branch information
iay committed May 3, 2011
1 parent 21342e5 commit 8997be6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/check_embedded.pl
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,10 @@ sub comment {
$days = (str2time($notAfter)-time())/86400.0;
if ($days < 0) {
error("EXPIRED");
} elsif ($days < 30) {
} elsif ($days < 14) {
$days = int($days);
error("expires in $days days ($notAfter)");
} elsif ($days < 60) {
} elsif ($days < 28) {
$days = int($days);
warning("expires in $days days ($notAfter)");
}
Expand Down

0 comments on commit 8997be6

Please sign in to comment.