Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save ThemeSama/f1554a18af82afba3cd586033b1b2819 to your computer and use it in GitHub Desktop.

Select an option

Save ThemeSama/f1554a18af82afba3cd586033b1b2819 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