Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
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.
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?
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:
can't connect to '/home/me/.gnupg/S.gpg-agent': no such file or directory gpg-agent: no gpg-agent running in this session
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?
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:
/usr/bin/gpg-agent
So, I suppose gpg-agent is indeed "located" and "installed." Any other suggestions? I have generated a public and private key, have the key inside of Kmail signed, have gpg-agent running. What am I missing?
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?
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?
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:
Summary: GNU privacy guard - a free PGP replacement
Description: GnuPG is GNU's tool for secure communication and data storage. It can be used to encrypt data and to create digital signatures. It includes an advanced key management facility and is compliant with the proposed OpenPGP Internet standard as described in RFC2440.
The last line is what confused me relative to what you said earlier. It says here that gpg is "complaint" with OpenPGP.
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.