Skip to content
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

S/MIME signing - wrong hash #51

Open
Bykiev opened this issue Nov 25, 2020 · 1 comment
Open

S/MIME signing - wrong hash #51

Bykiev opened this issue Nov 25, 2020 · 1 comment

Comments

@Bykiev
Copy link

Bykiev commented Nov 25, 2020

Hi, I'm new to s/mime and need to digitally sign email with xml attachment, but unfortunately this email has a wrong hash value. I digged into the code of the library and found that it creates a sign for base64-encoded body part, is it correct or the signature should be computed for xml attachment content?

Also here is some more issues:

  1. Lots of headers/parameters are owerritten by library: for ex. ContentType parameters, some headers (like X-Mailer) and many others
  2. It creates an empty boundary for Content-Type: text/plain, though I haven't any text except attachment
  3. What is the difference between SmimeEnvelopeAndSignBy() and SmimeAttachSignatureBy()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@Bykiev and others