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

Commit

Permalink
Indicate expiry date for expired certificates.
Browse files Browse the repository at this point in the history
  • Loading branch information
iay committed Sep 10, 2012
1 parent 5268ae4 commit 9c2d01f
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 @@ -219,9 +219,9 @@ sub comment {
$days = ($notAfterTime-time())/86400.0;
if ($days < -180) {
my $d = floor(-$days);
error("EXPIRED LONG AGO ($d days)");
error("EXPIRED LONG AGO ($d days; $notAfter)");
} elsif ($days < 0) {
error("EXPIRED");
error("EXPIRED ($notAfter)");
} elsif ($days < 18) {
$days = int($days);
error("expires in $days days ($notAfter)");
Expand Down

0 comments on commit 9c2d01f

Please sign in to comment.