Having done a fresh install I need to set this up again. We could do with an up to date guide. This might encourage more people to use encryption and signing.

I already have a keyring, but others need to know how to do that. That should probably be a separate question. I use KGPG to manage my keys.

In Kmail I know you need to set the default signing and encryption keys on your Identity.

When I try to sign an email it complains that signing failed without asking for my pass-phrase. What am I missing? How should I configure cryptography in Kmail?

link|improve this question

64% accept rate
What is the exact error when it fails? – mac9416 Aug 13 '10 at 12:44
Signing failed: Bad passphrase – steevc Aug 13 '10 at 15:47
Do you have pinentry (pinentry-qt4) installed? If so, by any chance does the password dialog pop up for a moment and immediately close itself once it gains focus? – David Zaslavsky Aug 14 '10 at 8:45
feedback

1 Answer

up vote 1 down vote accepted

You need to put

use-agent

in your ~/.gnupg/gpg.conf

I know because Seahorse used to put a blank file there and break things for people using GNOME & KDE together. I wrote the patch that made it properly copy the skeleton file, but that wasn't until 2009.

link|improve this answer
I've done that and gpg-agent is installed. How do I make sure it is running? – steevc Aug 13 '10 at 15:48
ps -ef | grep agent – maco Aug 13 '10 at 16:46
It's running. And I had pinentry-qt4 already. – steevc Aug 14 '10 at 18:54
Maybe I just needed another restart, but it's working now. Pinentry is popping up for my passphrase – steevc Aug 16 '10 at 19:03
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.