![]() ![]() P7m = p7m.Decrypt() as ApplicationPkcs7Mime Like to know if what I'm doing is achievable using Mimekit.Īfter suggestion from Jeff, I did this: Cryptograph圜ontext.Register(typeof(WindowsSecureMimeContext)) Īnd then it was just a matter of calling: if (p7m != null & p7m.SecureMimeType = SecureMimeType.EnvelopedData) Stream.Read(filebytes, 0, (int)stream.Length) ĪpplicationPkcs7Mime(SecureMimeType.EnvelopedData, ms) Key = await PersistedKeyProvider.OpenKeyPairFromCertificateAsync(Cert,Īnd currently, I'm reading in the p7m file from local folder like this: StorageFile file = await openPicker.PickSingleFileAsync() ![]() I'm currently able to obtain the private key in the smart card by enumerating all Certs into a CryptogrphicKey object like so: CryptographicKey key = null I have a requirement to decrypt p7m attachments using a private key which is stored on the smart card. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |