When I load signed mail by Rebex.Mail.MailMessage.Load(string), then method failed on following exception during deserialize ASN1:
Neošetřená výjimka: System.Security.Cryptography.CryptographicException: Expected ASN.1 type was not found.
v svmr.bxvz(Asn1Type arc, Asn1Type ard, Boolean are)
v svva.Rebex.Security.Cryptography.Asn1.IAsn1Node.xyyk(Asn1Type ggy, Boolean ggz, Int32 gha)
v svmr.Write(Byte[] buffer, Int32 offset, Int32 count)
v Rebex.Security.Cryptography.Pkcs.AlgorithmIdentifier.tqsc()
v Rebex.Security.Cryptography.Pkcs.AlgorithmIdentifier.tqsb(HashingAlgorithmId dxt)
v Rebex.Security.Cryptography.Pkcs.SignerInfo.GetSignatureParameters()
v Rebex.Mail.SubjectInfo..ctor(SignerInfo auz, MailSignatureStyle ava)
v Rebex.Mail.SubjectInfoCollection..ctor(SignedData avc)
v Rebex.Mail.MailMessage.pkmy(MimeEntity gy)
v Rebex.Mail.MailMessage.pkms(MimeEntity gr)
v Rebex.Mail.MailMessage.pkmr(MimeMessage gq)
v Rebex.Mail.MailMessage.Load(Stream input)
v Rebex.Mail.MailMessage.Load(String fileName)
PKCS7 signature has following structure: download
I'm testing it on Rebex.Mail version 5.0.7206 on .Net 4.5. At current stage I will not want to validate signature, but I don't find option to skip PKCS7 deserialize. And in faraway future I may be need validate signature.
Do you have any idea where the problem is?
Thank you for any advice.