Skip to content

Instantly share code, notes, and snippets.



Created Jan 28, 2019
What would you like to do?
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