I’m trying to figure out how to script such scenario:
- I got outlook msg files (one msg in one file) encrypted using PKI certtificates
- PKI certificates are stored in Cert:CurrentUserMy – I got private keys (Windows OS)
I’ve tried:
PS> Unprotect-CmsMessage -path mail.msg -To ‘thumprint_of_pki_certificate’ but got error “no ecrypted data”
I got info that there is diference beetween encrypting/decripting using certificates and smime encryption.
so I tried to figure out with:
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?
New contributor
Migel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.