Skip to content

Commit

Permalink
Add checking of public key size for embedded certificates. Regard 102…
Browse files Browse the repository at this point in the history
…4 bits as the minimum for now.
  • Loading branch information
iay committed May 30, 2008
1 parent 879f2a8 commit 0575c63
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build/check_embedded.pl
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@
$subjectCN = $1;
# print "subjectCN = $subjectCN\n";
}
if (/RSA Public Key: \((\d+) bit\)/) {
$pubSize = $1;
# print " Public key size: $pubSize\n";
if ($pubSize < 1024) {
print " *** PUBLIC KEY TOO SHORT ***\n";
}
}
}
close SSL;
#print " text lines: $#lines\n";
Expand Down

0 comments on commit 0575c63

Please sign in to comment.