|
I'am writing an application which works with signed mails (S/MIME). In saved message (as ".eml") i see signature part (filename smime.p7s). I need whole this part as a file or stream (for storing in db). How to achieve it? |
|
In Rebex Secure Mail, you can use Rebex.Net.MimeMessage object's SignedContentInfo property to access the raw signature data. C# sample:
The high-level Rebex.Net.MailMessage object can't be used for this - it's purpose is to shield the user from the internals :-) Please be advised that the S/MIME standard also allows an "enveloped" signature variant where the actual content of the message (including any body parts and attachment) is a part of the signature blob. This variant is quite rare, but depending on the kind of input data you need to process, it might be necessary to take this into account when designing our database. In Rebex Mail (the "unsecure" variant without S/MIME capabilities), the signature part is accessible as an ordinary attachment. |