Skip to content

Instantly share code, notes, and snippets.

@4ndrej 4ndrej/
Last active Mar 22, 2018

What would you like to do?
pfx to key/cer chain
# convert from pfx to passwordless key/crt chain
# based on
# params
# key
openssl pkcs12 -in $PFX -password pass:$PASSWORD -nodes -nocerts -out $OUT.key
# crt
openssl pkcs12 -in $PFX -password pass:$PASSWORD -nodes -nokeys -clcerts -out host.crt
openssl pkcs12 -in $PFX -password pass:$PASSWORD -nodes -nokeys -cacerts -out ca.crt
cat host.crt ca.crt > $OUT.crt
rm host.crt ca.crt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.