Reputation: 1
I'm trying to figure out how to script such scenario:
openssl smime -decrypt -in mail.msg -recip mycert.pem -inkey key.pem
this shoud work if I can use windows store (can't export private keys to get key.pem)... Q: is a way to show to openssl windows local store?
Upvotes: 0
Views: 318
Reputation: 4243
You need to export the private key either in PEM format or as a pfx file. Then
openssl smime -decrypt -in mail.msg -recip recipient.pem
or, if you have a pfx file (which is PCKS#12 format), then first convert it to pem with
openssl pkcs12 -in recipient.pfx -out recipient.pem
Your question is a bit confusing. Does this answer it?
Upvotes: 0