Re: M2Crypto SMIME Mail verification error in Outlook and Thunderbird
Heikki Toivonen <[email protected]>
| Newsgroups | gmane.comp.python.cryptography |
|---|---|
| Message-ID | <[email protected]> |
Patrick Hagelkruys wrote: > I tried to digital sign a message with m2crypto and verify it with Outlook. > But Outlook (also Thunderbird) failed to verify the signature, because the > digital signature of the message is invalid. I looked at what the OpenSSL smime tool does, and noticed it sets the detached flag as well, which you didn't do in your sample below. When I add that, I get output that looks compatible with the openssl tool. In other words, change this: > p7 = s.sign(buf,SMIME.PKCS7_TEXT) To this: p7 = s.sign(buf,SMIME.PKCS7_TEXT|SMIME.PKCS7_DETACHED) -- Heikki Toivonen
signature.asc
(application/pgp-signature, 251 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.1 (Cygwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEc0IOb8x8KoP+JuwRAgAuAJ9L1yWg7O0V644v8qxjxowRWMDWvwCglHfs 5teTKDZu5sAOMF43FfzAeb0= =jtNl -----END PGP SIGNATURE-----