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 | |
#------------------ | |
# Extract the key, pem, certficiate, and chain from a PFX file | |
# | |
# https://gist.github.com/mbomb007/68e4e662027c72736826f1abf7b2cde9 | |
# | |
# Must supply the input pfx file | |
PFX_PATH="$1" | |
if [ "${PFX_PATH}" == "" ]; then |