Error parsing email with signature

0 votes
asked Apr 29, 2016 by toty (120 points)

When i received mail from pop3 then i received this exception:

Invalid time node encountered.
Exception Type:
Source: Rebex.Common
v Rebex.Security.Cryptography.Pkcs.HC.WI()
v Rebex.Security.Cryptography.Pkcs.SignerInfo.DO()
v Rebex.Security.Cryptography.Pkcs.SignerInfo.ZH()
v Rebex.Security.Cryptography.Pkcs.BC.W()
v Rebex.Security.Cryptography.Pkcs.BC.Write(Byte[] buffer, Int32 offset, Int32 count)
v Rebex.Security.Cryptography.Pkcs.PkcsBase.NK(Stream A, Stream B)
v Rebex.Security.Cryptography.Pkcs.SignedData.Load(Stream input)
v Rebex.Mime.MimeEntity.GG()
v Rebex.Mime.MimeEntity.VG(Stream A, Boolean B)
v Rebex.Mime.MimeEntity.Load(Stream input)
v Rebex.Net.Pop3.TV(Int32 A)
v Rebex.Net.Pop3.GetMimeMessage(Int32 sequenceNumber)
v Rebex.Net.Pop3.UV(Int32 A)
v Rebex.Net.Pop3.GetMailMessage(Int32 sequenceNumber)
System.DateTime WI()

when i use GetMessage, then the message is downloaded correctly.
Then i try load message from file and the same error

MailMessage msg = new MailMessage();

Email I have, but I can not here publish. (Private message)

Applies to: Rebex Secure Mail

1 Answer

0 votes
answered Apr 29, 2016 by Tomas Knopp (58,890 points)


which version of Rebex Secure Mail are you using? Is is the latest one (2016R1.1) or some older?

If older, please give the latest version a try.
If the problem also occurs with 2016 R1.1 version, please send us the problematic email as a zip archive to

We will be able to look into it then.

commented Apr 29, 2016 by Lukas Pokorny (124,610 points)
It's a private message, they can't send it... If the problem occurs in the latest version as well, we can enhance the error message to include the supposedly invalid time node value. in the message signature. Then, we will be able to tell what is going on.
commented May 2, 2016 by toty (120 points)
Ok, sorry for bug, with new version is parsing ok. I had a 2015 version R4.1
commented May 2, 2016 by Lukas Pokorny (124,610 points)
Thanks for letting us know!