Eric Monjoin
Staff Consulting Architect but also pilot, spending time in front of my computer or flying in the air...

PFX to PEM

mkdir C:\openssl-1.0.2d-x64_86-win64\certs\%1
C:\openssl-1.0.2d-x64_86-win64\openssl.exe pkcs12 -in %1.pfx -nocerts -out C:\openssl-1.0.2d-x64_86-win64\certs\%1\%1.key.pem -nodes -password pass:%2
C:\openssl-1.0.2d-x64_86-win64\openssl.exe pkcs12 -in %1.pfx -nokeys -out C:\openssl-1.0.2d-x64_86-win64\certs\%1\%1.cert.pem -password pass:%2
C:\openssl-1.0.2d-x64_86-win64\openssl.exe rsa -in C:\openssl-1.0.2d-x64_86-win64\certs\%1\%1.key.pem -out C:\openssl-1.0.2d-x64_86-win64\certs\%1\%1.server.key
del C:\openssl-1.0.2d-x64_86-win64\certs\%1\%1.key.pem

Pages: 1 2

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *