Skip to content

Instantly share code, notes, and snippets.

@odytrice
Forked from andrewabest/Conversion.bat
Created December 31, 2018 20:28
Show Gist options
  • Save odytrice/3a2d1d09ec24f8cc4b3c8e4b82187890 to your computer and use it in GitHub Desktop.
Save odytrice/3a2d1d09ec24f8cc4b3c8e4b82187890 to your computer and use it in GitHub Desktop.
Convert a crt + p7b (from godaddy) to pfx
echo off
:: download OpenSSL if you don't have it for the below
:: Conver the p7b into PEM format
openssl pkcs7 -in mydomain.p7b -print_certs -out mydomain.pem
:: Combine this with the crt server certificate and private key into a PFX
openssl pkcs12 -export -in mydomain.crt -inkey mydomain.key -certfile mydomain.pem -out mydomain.pfx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment