For a user (not a server):
– instal certificate,
– extract it (with MMC “Certificates” or IE by example) in “filename.pfx”.
Use the “.bat” below:
openssl pkcs12 -in filename.pfx -nocerts -out key.pem
openssl pkcs12 -in filename.pfx -clcerts -nokeys -out cert.pem
openssl rsa -in key.pem -out server.key
The result file “server.key” contains the pivate key.
– in certificate, select file “cert.pem”,
– in key, select file “server.key”.
This doesn’t work for server: I’m not able to extract a file with private key, only without…
Thanks for all.