Skip to content

Instantly share code, notes, and snippets.

@max-potapov
Created September 10, 2015 07:58
Show Gist options
  • Save max-potapov/b9f11e6fac3877c27984 to your computer and use it in GitHub Desktop.
Save max-potapov/b9f11e6fac3877c27984 to your computer and use it in GitHub Desktop.
convert p12 certificates to pem
#!/bin/sh
for i in $(find . -name "*.p12"); do
IN=$i
OUT=$(echo $i | sed 's/\.p12/.pem/g')
openssl pkcs12 -in $IN -out $OUT -nodes -clcerts
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment