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.
(How) Can I import my PGP keys from XP to use in Mandrake/ Kmail (or mozilla)?
I e-mailed all my keys from XP to myself in Mozilla (and Kmail) and seemed to be able to import, but when I try to decrypt/encrypt mail, I get an error (keys not found...)
I actually prefer Kmail from an an aesthetic point of view, but I'll take anything that works well with PGP.
I'm clearly missing something...
I am running Mandrake 9.2 via VMware virtual machine on XP...
Yes, well, I was just about to post the question but I might as well start here.
Running XP Pro with 2 or 3 PGP keys that I'd like to export to my 2nd PC running RH Linux, particularly for use with KMail. Basically, I want to be able to encrypt/decrypt emails using the same keys I use in XP. (I'm not so concerned with PGP'g any files, etc...really only email via KMail app).
My question is HOW do I accomplish my listed goals.
I've copied the *.asc files from XP to linux.
I ran 'gpg --import file1.asc'
I ran 'gpg --import file2.asc'
Message states they were imported. Says total number processed & imported is '1' each time. (sounds good)
I also copied these *.asc files into the ~./gnupg directory.
Is that it or is there more to be done?
When I go into KMail: Settings --> Configure Kmail --> Identities --> Advanced and click on the 'change' button for 'OpenPGP key' field, the error states: "You either dont have GnuPG/PGP installed or you chose not to use GnuPG/PGP."
[xxx@yyyy .gnupg]$ gpg --list-secret-keys
gpg: WARNING: using insecure memory!
gpg: please see http://www.gnupg.org/faq.html for more information
[xxx@yyyy .gnupg]$
Running 'gpg --list-public-keys' and 'gpg --list-keys' both show the 2 keys I imported.
Also, FYI:
[xxx@yyyy .gnupg]$ gpg --version
gpg (GnuPG) 1.2.6
Copyright (C) 2004 Free Software Foundation, Inc.
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions. See the file COPYING for details.
Ok. I exported again from XP's PGP program, making sure to check off the option to 'include private key.' This created File3.asc. I copied this to the ~./gnupg dir on Linux. Then ran:
gpg --import File3.asc
gpg: WARNING: using insecure memory!
gpg: please see http://www.gnupg.org/faq.html for more information
gpg: key 0E4FE7C8: secret key imported
gpg: key 0E4FE7C8: public key "bla bla bla" imported
gpg: Total number processed: 2
gpg: imported: 1
gpg: secret keys read: 1
gpg: secret keys imported: 1
Which is better than before since it now includes secret keys. Now, I get this:
gpg --list-secret-keys
gpg: WARNING: using insecure memory!
gpg: please see http://www.gnupg.org/faq.html for more information
/home/dr2778/.gnupg/secring.gpg
-------------------------------
sec 1024D/0E4FE7C8 2003-07-03 bla bla bla
ssb 2048g/9D0BEAA3 2003-07-03
Yes....progress!! (thank you)
Now, I still get the same error in KMail. :-(
How would I get KMail to start using these keys?
Ok. I got it! In KMail, under the Configure window, I went to the SECURITY icon in left column. Then, from the OpenPGP tab, the 'Encryption Tool' option was set to "dont use..." and after I changed it to "Autodetect" it selected "GnuPG - ... "
Then, I read some encrypted emails, entered my passphrase and pow! There it was...decrypted email. Woohoo!
Thanks for your awesome help. I really appreciate it.
(and it was much easier than reading the numerous websites & How To guides on PGP)
I have no idea what encryption method. I only did what I typed in this post...literally.
Dont know about 'adding trusts' either. KMail seems to be working ok.
When I decrypted my test text file, it mentioned below, which may answer your encryption method question but also confirms your point of adding trusts, etc.
--------------------------------------------------------------------------------------------
gpg --decrypt testfile.txt
gpg: WARNING: using insecure memory!
gpg: please see http://www.gnupg.org/faq.html for more information
You need a passphrase to unlock the secret key for
user: "bla bla bla"
2048-bit ELG-E key, ID 9D0BEAA3, created 2003-07-03 (main key ID 0E4FE7C8)
gpg: encrypted with 2048-bit ELG-E key, ID 9D0BEAA3, created 2003-07-03
"bla bla bla"
gpg: Signature made Thu 07 Oct 2004 03:57:32 PM EDT using DSA key ID 0E4FE7C8
gpg: Good signature from "bla bla bla"
gpg: checking the trustdb
gpg: no ultimately trusted keys found
gpg: WARNING: This key is not certified with a trusted signature!
gpg: There is no indication that the signature belongs to the owner.
Primary key fingerprint: 2101 673A 53EF 1BCB 83FD DE16 7CD3 81FA 0E4F E7C8
gpg: WARNING: message was not integrity protected
--------------------------------------------------------------------------------------------
So, I guess I have "2048-bit ELG-E key" encryption?
How would I address these two points?
gpg: no ultimately trusted keys found
gpg: WARNING: This key is not certified with a trusted signature!
gpg: There is no indication that the signature belongs to the owner.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.