Created
June 1, 2017 17:28
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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