We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

SMIME signature

Hi Team,

I am using version of Aspose 22.12. I am facing the following problem with SMIME signature:

  • Signature works fine, if I create a MailMessage object in memory and then use MailMessage’s method attachSignature to sign it. If that message is sent, mail clients will report a correctly signed mail
  • Signature does not work, if I create a MailMessage object in memory, save it, load it again and then sign it using attachSignature. Mail clients will then report that the signature is invalid because the mail has been changed after signing (which is not the case)
    I believe the problem is that there are additional headers in a part of the mail, that should not be present (they are not present in the correct mail). Those headers are probably not included in the signature.

Please find attached the test case, correctly signed email, the wrong one sent by Aspose and a description of the issue: SmimeEmail-2023.zip (1006.2 KB)

Could you please look into the issue?

Thanks and Regards,
Arne

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): EMAILJAVA-35141

You can obtain Paid Support services if you need support on a priority basis, along with the direct access to our Paid Support management team.