Skip to content

Instantly share code, notes, and snippets.

@whereisaaron
Created June 1, 2017 17:28
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 whereisaaron/a63e732ab82440772887328e2b6eed69 to your computer and use it in GitHub Desktop.
Save whereisaaron/a63e732ab82440772887328e2b6eed69 to your computer and use it in GitHub Desktop.
Wrapper for pfx-to-crt-and-key.sh to extract all PFX files in a folder
#!/bin/bash
# Read password if not in environment variable
if [[ ! ${PFXPASSWORD+x} ]]; then
echo -n "Password: "
read -s PFXPASSWORD
echo
export PFXPASSWORD
fi
for i in *.pfx; do
./pfx-to-crt-and-key.sh $i
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment