Created
January 28, 2019 08:40
-
-
Save minhng99/5ebc322a08a43108a7e7b3b422c7ffc3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set OPENSSL_CONF=D:\Program Files\OpenSSL-Win64\bin\openssl.cfg | |
set PATH=D:\Program Files\OpenSSL-Win64\bin | |
echo "%1" | |
openssl pkcs12 -in "%1" -nocerts -nodes -out "FINAL_key.pem" | |
openssl rsa -in "FINAL_key.pem" -outform PVK -pvk-strong -out "FINAL.pvk" | |
openssl pkcs12 -in "%1" -nokeys -nodes -out "FINAL_cert.pem" | |
openssl crl2pkcs7 -nocrl -certfile "FINAL_cert.pem" -outform DER -out "FINAL.spc" | |
del "FINAL_key.pem" | |
del "FINAL_cert.pem" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment