Converting Windows Signature/Key

From wiki.network-crawler.de
Jump to: navigation, search

Overview:

                +---> usercrt.pem ----+--->  usercrt.p7b
                |                     |
   user.pfx ----+---> cacrt.pem ------+
                |
                +---> userkey.pem -------->  userkey.pvk

To do:

openssl pkcs12 -in user.pfx -nokeys -clcerts -out usercrt.pem
openssl pkcs12 -in user.pfx -nokeys -cacerts -out cacert.pem
openssl pkcs12 -in user.pfx -nocerts -nodes -out userkey.pem

openssl crt2pkcs7 -certfile usercrt.pem -certfile cacert.pem -nocrl -outform PEM -out usercrt.p7b

pvk -in userkey.pem -topvk -nocrypt -out userkey.pvk

see man openssl ;)