Skip to content

Commit

Permalink
Stop reporting certificate expiry for self-signed trust fabric certif…
Browse files Browse the repository at this point in the history
…icates.

See ukf/ukf-meta#189
  • Loading branch information
Alex Stuart committed Sep 23, 2019
1 parent 6a7c457 commit dcd6955
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions utilities/check_embedded.pl
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,9 @@ sub comment {
#print " text lines: $#lines\n";

#
# Deal with certificate expiry.
# Deal with certificate expiry for CA-issued certificates.
#
if ($issuer ne $subject) {
if ($days < -$longExpiredDays) {
my $d = floor(-$days);
if (defined($expiry_whitelist{$fingerprint})) {
Expand All @@ -348,7 +349,7 @@ sub comment {
$days = int($days);
warning("expires in $days days ($notAfter)");
}

}

#
# Handle public key size.
Expand Down

0 comments on commit dcd6955

Please sign in to comment.