-
-
Notifications
You must be signed in to change notification settings - Fork 373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include CmsSigner or other SignedAttributes in Signed Message #101
Comments
What you can do instead is this: var mailbox = new SecureMailboxAddress ("Joe Sixpack", "[email protected]", fingerprint);
var signed = ctx.Sign (mailbox, digestAlgo, content); I've added the Pkcs9SigningTime as a standard attribute. I haven't really spent a lot of time on the In the other backend, the reason you can override |
I've tried your fixed code and it works for my case as well. (Btw, I'm implementing As2 Protocol communication) When will be this fix available on MimeKit Nuget Package? Tomas |
I've just released a 1.0.7 NuGet with this fix. |
Thank you. It works now for me 👍 |
Awesome :-) |
Hello again.
I'm facing problem with missing required SignedAttributes in signed/non-encrypted/non-compressed mime message. Is there any way, how to include for example SigningTime attribute for CmsSigner? I have solved this only by creating own derived classes for WindowsSecureMimeContext and MultipartSigned but it's a lot of duplicate code from MimeKit...
public MimePart Sign(string certificateThumbprint, DigestAlgorithm digestAlgo, Stream content)
{
if (string.IsNullOrEmpty(certificateThumbprint))
throw new ArgumentNullException("certificateThumbprint");
Regards,
Tomas
The text was updated successfully, but these errors were encountered: