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.

Revisions

  1. @andrewabest andrewabest created this gist Feb 10, 2016.
    9 changes: 9 additions & 0 deletions Conversion.bat
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    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