I've been trying to figure out how to get Kmail working with OpenGPG (actually I'm just trying to set up a launchpad account). I can't seem to get this working, though. I was able to setup pgp-agent, generate a key and a passphrase and what not, and I seem to be able to import it into Kmail OK. However, when I try to compose a message, digitally sign it, and send it, I get a bad passphrase error. Also, when I try to decrypt a signed message (actually launchpad's Confirm Your OpenPGP Key email), I get this error:
But, I never get a dialogue box to actually type a passphrase in. I just keeps giving me an error without a way to actually type it in.You just entered an invalid passphrase.
Do you want to try again, or cancel and view the message undecrypted?
From some advice around the net, I installed kgpg, made sure that my gpg.conf file had "use gpg-agent" uncommented, and created a gpg-agent.conf file with the following:
From what I read, the system can have a hard time finding the pinentry program and this file is needed to fix it. However, after both restarting the system and manually killing then restarting gpg-agent, I'm still getting the error.pinentry-program /usr/bin/pinentry-qt4
I also found some information about changing some settings under Kmail's Settings -> Configure KMail -> Security tab -> Crypto Backends from this guide. But, I don't seem to have a "Crypto Backends" tab in my settings.
I really don't like Kmail and am going to replace it when I have the time to migrate everything over. For now, though, does anyone have a solution for me to get this up and running?