Skip to content

Instantly share code, notes, and snippets.

@gpsarkar
Created March 4, 2019 14:23
Show Gist options
  • Save gpsarkar/2d59c73287c555f186a3bd1cee03994d to your computer and use it in GitHub Desktop.
Save gpsarkar/2d59c73287c555f186a3bd1cee03994d to your computer and use it in GitHub Desktop.
export pfx without password
openssl pkcs12 -in MyCertificate.pfx -clcerts -nokeys -out MyCertificate.crt
openssl pkcs12 -in MyCertificate.pfx -nocerts -out MyCertificate-encrypted.key
openssl rsa -in MyCertificate-encrypted.key -out MyCertificate_unenc.key
openssl pkcs12 -export -out MyCertificate_np.pfx -inkey MyCertificate_unenc.key -in MyCertificate.crt -passout pass:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment