Skip to content

Instantly share code, notes, and snippets.

@trajakovic
Created October 23, 2013 11:36
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trajakovic/7116987 to your computer and use it in GitHub Desktop.
Save trajakovic/7116987 to your computer and use it in GitHub Desktop.
Split SSL PEM multiple certificates into files
wget -O - http://curl.haxx.se/ca/cacert.pem | awk 'split_after==1{n++;split_after=0} /-----END CERTIFICATE-----/ {split_after=1} {print > "cert" n ".pem"}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment