Skip to content

Instantly share code, notes, and snippets.

@atoa
Created May 16, 2015 00:27
Show Gist options
  • 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