Skip to content

Commit

Permalink
Update the known issuers to current contents of master.xml, and start…
Browse files Browse the repository at this point in the history
… flagging up entities with KeyNames which are from GlobalSign or VeriSign issuers.
  • Loading branch information
iay committed Dec 16, 2013
1 parent 21a2e98 commit 637a548
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions build/check_embedded.pl
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,11 @@
$issuerMark{'AddTrust External CA Root'} = 'R';
$issuerMark{'UTN-USERFirst-Hardware'} = 'i';
$issuerMark{'TERENA SSL CA'} = 'i';
$issuerMark{'VeriSign Class 3 Secure Server CA'} = '<'; # has unnamed 1024 bit root
$issuerMark{'VeriSign Class 3 Secure Server CA - G2'} = '<'; # has unnamed 1024 bit root
$issuerMark{'VeriSign Class 3 Public Primary Certification Authority - G3'} = 'R'; # root alone
$issuerMark{'GlobalSign Root CA'} = 'R';
$issuerMark{'GlobalSign Organization Validation CA'} = 'i';
$issuerMark{'GlobalSign Primary Secure Server CA'} = 'i';
$issuerMark{'GlobalSign ServerSign CA'} = 'i';
#$issuerMark{'VeriSign International Server CA - Class 3'} = '?';

# NOT from master.xml
$issuerMark{'Cybertrust Educational CA'} = 'x'; # ex trust root
$issuerMark{'Thawte Premium Server CA'} = 'x'; # ex trust root; directly signs; 1024 bit key

#
# Load expiry whitelist.
Expand Down Expand Up @@ -468,6 +461,10 @@ sub comment {
warning("issuer '$issuerCN' suspect; verify");
}
}
if ($hasKeyName && ($issuerCN =~ /(Global|Veri)Sign/)) {
warning("issuer $issuerCN to be retired; expires $notAfter; remove KeyName?");
$issuerMark{$issuerCN} = '<';
}

#
# Count issuers.
Expand All @@ -480,6 +477,9 @@ sub comment {
} else {
$issuers{$issuerCN}++;
}
if ($hasKeyName) {
$knIssuers{$issuerCN}++;
}
}

#
Expand Down Expand Up @@ -522,6 +522,15 @@ sub comment {
my $mark = $issuerMark{$issuer} ? $issuerMark{$issuer}: ' ';
print " $mark $issuer: $count\n";
}
print "\n";

print "KeyName certificate issuers:\n";
foreach $issuer (sort keys %knIssuers) {
my $count = $knIssuers{$issuer};
my $mark = $issuerMark{$issuer} ? $issuerMark{$issuer}: ' ';
print " $mark $issuer: $count\n";
}
print "\n";

my $first = 1;
foreach $fingerprint (sort keys %expiry_whitelist) {
Expand Down

0 comments on commit 637a548

Please sign in to comment.