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 693527 - PGP Signing of Emails Stores Password for Subsequent Emails
PGP Signing of Emails Stores Password for Subsequent Emails
Status: RESOLVED OBSOLETE
Product: evolution
Classification: Applications
Component: Plugins
3.6.x (obsolete)
Other Linux
: Normal critical
: ---
Assigned To: evolution-plugin-maintainers
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2013-02-10 15:32 UTC by Mark Lee
Modified: 2015-04-15 17:49 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
mine PGP password prompt (19.89 KB, image/png)
2013-02-26 15:23 UTC, Milan Crha
Details
Evolution PGP Prompt (44.07 KB, image/png)
2013-02-26 18:23 UTC, Mark Lee
Details
GPG Configuration File (7.71 KB, application/octet-stream)
2013-02-27 15:51 UTC, Mark Lee
Details

Description Mark Lee 2013-02-10 15:32:43 UTC
PGP signing an email in evolution (3.6.3-1) leaves the key open for subsequent emails (despite user opting out of leaving the key open). The key needs to be opened again upon reboot. I have filed an arch linux bug at :<https://bugs.archlinux.org/task/33792>

Initially I though the bug was only relegated to :
1) successfully sign an email with a PGP key
2) cancel the mail sending process
3) send another email (to find I do not need to open the key)

However, I have found this issue replicates even when :
1) successfully sign an email with a PGP key
2) successfully send an email
3) send another email (to find I do not need to open the key)

An excerpt of of the PGP debugging log from evolution (with sensitive information removed (bracketted in "<>") :
status: [GNUPG:] USERID_HINT <16 characters> Mark Edward Lee (Mark's Email PGP Key) <email>
status: [GNUPG:] NEED_PASSPHRASE <16 characters> <16 characters> <2 characters> <1 characters>
status: [GNUPG:] GOOD_PASSPHRASE
status: [GNUPG:] BEGIN_SIGNING H8
status: [GNUPG:] SIG_CREATED <1 characters> <2 characters> <1 character> <2 characters> <10 characters> <40 characters>
status: [GNUPG:] SIG_ID <27 characters> 2013-02-10 <10 characters>
status: [GNUPG:] GOODSIG <16 characters> Mark Edward Lee (Mark's Email PGP Key) <email>
status: [GNUPG:] VALIDSIG <40 characters> 2013-02-10 <10 characters> <1 character> <1 character> <1 character> <2 characters> <1 character> <2 characters> <40 characters>
Comment 1 Milan Crha 2013-02-26 15:23:51 UTC
Created attachment 237453 [details]
mine PGP password prompt

Thanks for a bug report. How does the password prompt look like, please? It can be either a builtin prompt from evolution, or a gpg agent, as evolution follows this setting. The attached is a builtin prompt, where if I do not check the "remember for this session", then I'm reasked when sending the next email.
Comment 2 Mark Lee 2013-02-26 18:23:43 UTC
Created attachment 237464 [details]
Evolution PGP Prompt
Comment 3 Mark Lee 2013-02-26 18:23:57 UTC
The prompt seems built in (see attached picture).
Comment 4 Michael Catanzaro 2013-02-26 23:55:03 UTC
That's coming from gnome-keyring-daemon, not Evolution.  It's correct for that to store your pgp key until the end of your session (i.e. until you log out of GNOME). If you don't want Evolution to use gnome-keyring-daemon then hit Alt+F2, launch gnome-session-properties, uncheck "GPG Password Agent" and re-login to GNOME; I think then Evolution will handle the key itself and you'll get the prompt Milan attached.

(But I am learning and any of that might be wrong.)
Comment 5 Milan Crha 2013-02-27 08:49:33 UTC
Aha, I see, you've it the opposite, you do use the agent, but you do not want to use it. As I wrote to the evolution-list:

   I think this is led by gpg itself, if you let it use its own 'agent'
   then it'll possibly offer you gnome-shell's prompt, instead of that
   evolution's. Check
      ~/.gnupg/gpg.conf
   for
      use-agent
   when you uncomment it, the next prompt should use it (supposing you've
   the agent installed, while I do not know what extra package it requires,
   if any).

But as I noticed only now, the email was initiated by Michael, not by Mark.
Comment 6 Michael Catanzaro 2013-02-27 14:21:47 UTC
Yeah, Mark you should also try commenting out that line!
Comment 7 Mark Lee 2013-02-27 15:51:20 UTC
Created attachment 237527 [details]
GPG Configuration File
Comment 8 Mark Lee 2013-02-27 15:51:41 UTC
MY GPG configuration file doesn't contain the line "use-agent"
Comment 9 Milan Crha 2013-02-27 17:49:44 UTC
Hmm, in that case, does the UI way of doing so, see comment #4, work for you?
Comment 10 Mark Lee 2013-02-28 18:28:59 UTC
I get the prompt after applying Comment #4, and the agent correctly asks for my pass phrase each time now. Thanks! Is there a way to have gnome-keyring run and still have evolution handle its own passwords?
Comment 11 Mark Lee 2013-02-28 18:35:21 UTC
Is there a way to make evolution always use its own method for handling PGP keys?

Disabling gnome-keyring may cause problems with automatically logging on wifi networks
Comment 12 Milan Crha 2013-03-01 11:23:27 UTC
It's mostly a GPG internal thing, as I understood it, with the use-agent option. Why you do not have it in your preferences I do not know, maybe the GPG folks moved it elsewhere. Try this:
   $ gpg -a --sign /path/to/file
if you get a UI prompt, the same as in evolution, then it does gpg itself, its 'agent', otherwise you might get a password prompt inside the terminal, which may suggest you've the agent off (unlikely, based on your description).

That said, the only option I was aware of was the use-agent. If it's moved to other file or completely other place for configuration I do not know. You might try to ask GPG folks, or someone better knowledgeable.
Comment 13 André Klapper 2013-09-26 11:59:45 UTC
Mark: have you tried comment 12?
Comment 14 Mark Lee 2013-10-01 17:48:07 UTC
Andre : Yes that is the current solution I applied.
Comment 15 Milan Crha 2015-04-15 17:49:39 UTC
I guess this got obsolete meanwhile. As least it doesn't seem to be in evolution's hands.