I have an e-mail S / MIME key p7s should read the attachment postacert.eml but this is not one of my attachments, why?
It is found in the case smime.p7s?
Why I can not decrypt it with this code?
byte[] VetByte = File.ReadAllBytes("smime.p7s");
var cmsMessage = new SignedCms();
cmsMessage.Decode(VetByte);
ContentInfo ci = cmsMessage.ContentInfo;
File.WriteAllBytes("pippo.txt",ci.Content);
Why pippo.txt is empty?
Sorry I forgot to say that I use the library for read email http://hpop.sourceforge.net/
Thanks :-)