Skip to content

Commit

Permalink
Certificate checking utility.
Browse files Browse the repository at this point in the history
  • Loading branch information
iay committed Feb 16, 2009
1 parent 69d803d commit c6df760
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions build/check_certificate.pl
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;

0 comments on commit c6df760

Please sign in to comment.