LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Kmail doesn't allow gpg encrypted emails (https://www.linuxquestions.org/questions/debian-26/kmail-doesnt-allow-gpg-encrypted-emails-286109/)

steve1401 02-04-2005 04:17 AM

Kmail doesn't allow gpg encrypted emails
 
Hi

I am posting this to the Debian forum because as far as I can ascertain it is a Debain problem - tell me if I'm wrong...

The problem;
When using KMail, I can't set it to use my gpg (or pgp) encryption. I am using Debian unstable, KDE 3.3 and KMail 1.7.2.

I have KGpg installed and it works fine for creating and importing keys. I have tried the Security > Crypto area of the setup in KMail and it says it can see OpenPGP (gpg) but it doesn't allow me to configure it. Below it in the box is the S/MIME setting but it is greyed out and says '(failed)'

I have libgpgme11 installed but I can't get an install of gpg-agent from anywhere. Apparently gpg-agent will not be commited to the Debain repositories (reading from Debain discussion forums), hence the reason for me posting here.

Any help or advise appreciated

Steve

Ironi 02-04-2005 11:55 AM

This worked for me:

Code:

aptitude purge newpg gpgsm cryptplug cryptplug-dev libgpgme6 libgpgme-dev libksba0

echo "deb http://smurf.noris.de/code/debian/ experimental smurf" >>/etc/apt/sources.list

apt-get update && apt-get install gnupg2 gnupg-agent dirmngr kleopatra gpgsm

(from http://lists.debian.org/debian-kde/2.../msg00102.html with the addition of kleopatra and gpgsm)

steve1401 02-07-2005 06:11 AM

Thanks...

This has got me a little further on, I have more options open to me in the crypto area of KMail setup, but I still have a problem with decrypting emails.

If I send an encrypted message to myself, all seems ok - it asks me which key to use and the email sends successfuly.

If I open the email in Evolution, I get prompted for a passphrase and then it allows me to view the mail. However, in KMial, it doesn't prompt for a password and I get the following message in the body of the email;

Encrypted message (decryption not possible)
Reason: Crypto plug-in "openpgp" could not decrypt the data.
Error: Bad passphrase

Any ideas?

Steve

Ironi 02-07-2005 01:10 PM

Make sure that you set the key to use for each identity. :)

Configure KMail -> Identities -> Modify -> Cryptography

steve1401 02-07-2005 01:16 PM

I've done that, but it still doesn't allow me to view the email, whereas Evolution asks for a passphrase and then lets me view it. It's as though there is something stopping the prompt for the passphrase??

Steve

steve1401 02-07-2005 05:07 PM

sorted :-)
 
I have sussed this thanks to the KDE mailing list helping out.

Follow this guide;
http://216.239.37.104/translate_c?hl...decrypt_verify()%2Breturned%2Bthis%2Berror%2Bcode:%2B%2B117440523%26hl%3Den%26lr%3D%26client%3Dfirefox%26rls%3Dorg .mozilla:en-US:unofficial

Basically, you need to add eval "$(gpg-agent --daemon)" to ~/.kde/env/gpgagent.sh (create the file/directory if required). KDE will then pick up these settings when it starts and (for ma at least) it will allow Kmail to use the agent and decrypt the message.

Steve


All times are GMT -5. The time now is 07:04 PM.