DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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
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??
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.