Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
inc-meta/build/check_certificate.pl
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
executable file
26 lines (23 sloc)
577 Bytes
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
#!/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) || die "could not open $fn: $!"; | |
print PIPE "Entity: $fn keyname (none)\n"; | |
while (<IN>) { | |
print PIPE $_; | |
} | |
close IN; | |
} | |
close PIPE; |