-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| #!/usr/bin/perl -w | ||
| use File::Temp qw(tempfile); | ||
| use Date::Parse; | ||
| use Digest::SHA1 qw(sha1 sha1_hex sha1_base64); | ||
|
|
||
| # | ||
| # Check individual certificate files. | ||
| # | ||
| # This utility performs certificate checking against raw certificate files. | ||
| # | ||
| # ./check_certificate.pl /tmp/foo.pem | ||
| # | ||
| open(PIPE, "|(cd ../xml;perl ../build/check_embedded.pl)") | ||
| || die 'could not open certificate check process'; | ||
|
|
||
| while (@ARGV) { | ||
| $fn = shift @ARGV; | ||
| open(IN, $fn); | ||
| print PIPE "Entity: $fn keyname (none)\n"; | ||
| while (<IN>) { | ||
| print PIPE $_; | ||
| } | ||
| close IN; | ||
| } | ||
|
|
||
| close PIPE; |