Skip to content

Instantly share code, notes, and snippets.

@atoa
Created May 16, 2015 00:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save atoa/48f38de2fe234f49a56f to your computer and use it in GitHub Desktop.
Save atoa/48f38de2fe234f49a56f to your computer and use it in GitHub Desktop.
expand cert bundle
#!/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