GPG Encryption Problems in Kmail
Hi.
This may be a silly question, but I am having a problem with GPG inside of Kmail. I have already installed GPG, generated a key, signed it and imported it into Kmail via the "Security" setup options. My problem is whenever I send myself an encrypted email, just as a test, when I try to read the received mail, I get a large error message inside the email saying the file cannot be decrypted. I am probably missing something minor, but I have spent a couple hours trying to figure out why I can't decrypt my own email with my own key. It doesn't even prompt me for my password, it just says the encryption plug-in could not decrypt the message. Thoughts? |
Hi,
Couple of questions: Which version of KDE/KMail are you using? Is your GPG-Agent process running? Cheers, Tink |
I am using Mandriva 2006, so I think the Kmail version is 1.8. As for gpg-agent that is another thing, whenever I go to the command line I get a message saying gpg-agent is not running, but I am pretty sure it is installed. Maybe I just need to reconfigure gpg-agent?
|
The thing is that you need to start the agent, and then (from the
same shell!) start kmail. Make a script like Code:
#!/bin/bash Cheers, Tink |
I tried that script twice and it started kmail but still I get the message when I look at the encrypted email of "Encrypted Data Not Shown" and it says the "crypto-plug-in failed." Maybe I don't have gpg-agent installed afterall. Is there a way to check? When I go to the terminal and enter: "gpg-agent" I get the following reply:
PHP Code:
If it isn't installed, is there a quick link from where I can download an rpm? |
OK, I just checked and gpg-agent is indeed running. I sent myself another email encrypted and I still get the message:
Encrypted message (decryption not possible) Reason: Crypto plug-in "openpgp" could not decrypt the data. Error: Decryption failed Encrypted data not shown. End of encrypted message Maybe I need to change settings inside of Kmail itself? The problem is I cannot find recent tutorials for Kmail 1.8. |
The agent is actually part of GNU PG ... (if you're using GPG 1.9 or
above) or separately available for older GPGs ... no idea about the RPMs, I'm compiling these things :} As for the "being installed" ... does which gpg-agent return anything? Or a locate gpg-agent? Cheers, Tink |
Well, obviously GPG and GPG aren't the same. Look at the settings
in KMail again... Cheers, Tink |
First, let me say thanks for all of your replies, Tinskter.
As for the command "which gpg-agent" I get the following return: PHP Code:
|
Quote:
OpenPGP (gpg) S/MIME (gpgsm) in exactly that format. According to Kmail, OpenPGP is GPG. |
You're most likely using the latter. And indeed, OpenPGP and GPG
are quite distinct. Cheers, Tink |
Ok, thanks for clarifying that.
Is there any way to get the gpg I have installed to work with Kmail? If not should I get OpenGPG? If I need to do that, can you tell me quickly how to "uninstall" GPG (if I need to) when I install OpenGPG? Also, will my current key be compatible? Thanks in advance. |
Which version of gpg have you got installed?
gpg --version And: what do you think of the idea of me moving this thread to the mandriva forum? Maybe others who suffer(ed) from this can help you better than someone whose install in slack works? Cheers, Tink |
Sure, moving the thread is fine.
My version of GPG is 1.4.2. I opened the RPMDrake utility on Mandriva and it has an option to see what software you currently have installed. It appears I have two versions of GPG installed. The packages are as follows: gnupg2.1.9-16-4mdk gnupg-1.4.2-2mdk The summary and description is identical on both, it reads: Quote:
Maybe I need both of these packages or maybe one needs to be uninstalled? I really have no idea since it seems whenever I install new software that the rpmdrake utility often says it needs to install other supporting files. Maybe one package works in a supporting role with the other? |
Having the same problem.
PCLinuxOS .92 gpg (GnuPG) 1.2.5 KDE 3.5.1 kernel 2.6.12-oci6.mdk-i586-up-1GB I get the exact same msg: Encrypted message (decryption not possible) Reason: Crypto plug-in "openpgp" could not decrypt the data. Error: Decryption failed Encrypted data not shown. End of encrypted message gpg-agent IS running. Even tried opening the msg.asc with Kgpg and nothing happens. |
All times are GMT -5. The time now is 06:53 AM. |