Created
May 16, 2015 00:27
-
-
Save atoa/48f38de2fe234f49a56f to your computer and use it in GitHub Desktop.
expand cert bundle
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 -n | |
$cert++ if /BEGIN/ ; | |
$certs{ $cert } .= "$_"; | |
END{ | |
foreach $key (keys %certs) { | |
open(OPENSSL, "|openssl x509 -text"); | |
print OPENSSL $certs{ $key }; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment