After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 273233 - s/mime failures cryptic
s/mime failures cryptic
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Mailer
2.22.x (obsolete)
Other All
: Normal normal
: ---
Assigned To: Milan Crha
Evolution QA team
: 323539 325029 335984 (view as bug list)
Depends on:
Blocks: 502515
 
 
Reported: 2005-03-02 20:33 UTC by Evan Prodromou
Modified: 2009-02-25 12:09 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
proposed eds patch (28.74 KB, patch)
2009-02-24 19:06 UTC, Milan Crha
committed Details | Review

Description Evan Prodromou 2005-03-02 20:33:52 UTC
Description of Problem:

Email-address cacert.org certificates don't work for sending S/MIME signed
email.

Steps to reproduce the problem:
1. Create a new X.509 email cert at http://www.cacert.org/ and save it to disk.
2. Import the certificate (Edit -> Preferences, Certificates, Import).
3. Assign it to an email account (Edit -> Preferences, Mail Accounts,
<select account>, Edit, Security, S/MIME Signing).
4. Compose a new email message from that account.
5. Specify signing it (Security -> S/MIME Sign). Uncheck any other security
stuff.
6. Enter any values (that won't otherwise cause errors) for To: and the
message body.
7. Click "Send".  

Actual Results:

A message box comes up saying:

 Could not create message.

 Because "Cannot add SMIMEEncKeyPrefs attribute", you may need to select 
different mail options.

Expected Results:

Send an S/MIME signed message.

How often does this happen? 

Every time.

Additional Information:

I imported my cert before importing cacert.org's root cert. When I got
around to importing the root cert, Evolution said it already knew the root
cert. I'm not sure if it matters for this bug.
Comment 1 Not Zed 2005-03-31 03:59:23 UTC
do you have the key also set as your "encryption certificate" in the
security settings page?

the above can only happen if you have this option set.  try unsetting
this option.

perhaps the cert isn't setup for encryption?
Comment 2 Shawn McMahon 2005-05-17 20:14:38 UTC
This seems to happen if you don't trust the signing CA, and thus don't trust the
encryption certificate.  That in mind, it's probably not a bug, per se, but
incomplete error reporting.

Go into the Certificate settings, and over to Authorities.  Edit the trust
settings for CACert to say you trust them for signing email keys.
Comment 3 Not Zed 2005-08-04 09:57:39 UTC
changing sense of bug.  above is actually "user error", but the error message is
meaningless (this may be a duplicate now)
Comment 4 Teppo Turtiainen 2005-12-27 14:45:06 UTC
*** Bug 323539 has been marked as a duplicate of this bug. ***
Comment 5 Teppo Turtiainen 2005-12-27 14:45:20 UTC
*** Bug 325029 has been marked as a duplicate of this bug. ***
Comment 6 Daniel Holbach 2006-04-26 18:24:09 UTC
https://launchpad.net/distros/ubuntu/+source/evolution/+bug/41602 discusses the bug as well, part of the comment: 

"This error message does not explain anything! I found out that the error occurs when
a) the certificate is not capable of signing
b) the certificate's CA certificate is not installed

Evolution should find out what's wrong and print an appropriate error-message.

This problem was observed with evolution 2.6.1"

(bumping version)
Comment 7 André Klapper 2008-04-18 20:10:38 UTC
https://answers.launchpad.net/ubuntu/+source/evolution/+question/14871
seems to provide a solution.
Comment 8 Tobias Wolf 2008-11-02 14:56:37 UTC
I also got this error for a few days and had no idea what was wrong with my setup. Turns out my thawte freemail cert had expired a few days ago, and I just had to re-issue it on thawte’s website.

A more informational message would be more obvious: "S/Mime cert for xyz has expired on xxxx/yy/zz."

Comment 9 Milan Crha 2009-02-24 18:25:54 UTC
*** Bug 335984 has been marked as a duplicate of this bug. ***
Comment 10 Milan Crha 2009-02-24 19:06:29 UTC
Created attachment 129422 [details] [review]
proposed eds patch

for evolution-data-server;

No new translatable string had been added here.

Note: I'm looking forward to see NSS exposing SECU_Strerror function to others. Even those strings are not translated, why should everyone have them in each module?
Comment 11 Srinivasa Ragavan 2009-02-25 08:02:17 UTC
Matt: review?
Comment 12 Matthew Barnes 2009-02-25 10:56:45 UTC
camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM, "%s (%d) - %s", err_str, (int) err_code, def_error);

Are you sure this is the format you want?  Wouldn't it make more sense to put the shorter error message first?  (def_error, err_code, err_str)
Comment 13 Milan Crha 2009-02-25 11:43:58 UTC
As we chatted on IRC, yes, it is what I wanted. Our error is mostly useless, just something like "function call failed", but it's probably better than nothing, in case no special error from the NSS library.
Comment 14 Milan Crha 2009-02-25 12:09:02 UTC
Committed to trunk. Committed revision 10098.