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

Commit

Permalink
Flag expired certificates associated with a KeyName.
Browse files Browse the repository at this point in the history
  • Loading branch information
iay committed Jan 13, 2014
1 parent 49f00c3 commit 18cd6e3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions build/check_embedded.pl
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,16 @@ sub comment {
} elsif ($error eq 'unable to get local issuer certificate') {
$error = "non trust fabric issuer: $issuerCN: remove KeyName?";
}

#
# KeyName with an expired certificate indicates some kind of misconfiguration.
# Either the KeyDescriptor isn't working, or the expired certificate is still
# in use (in which case the KeyName is superfluous) or a different certificate
# is in use via PKIX (which means we have the wrong one).
#
if ($days < 0) {
error("expired certificate has KeyName; acquire/ensure correct certificate and remove KeyName");
}
}

if ($error eq 'certificate has expired' && $days < 0) {
Expand Down

0 comments on commit 18cd6e3

Please sign in to comment.