LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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

Reply
 
Search this Thread
Old 05-01-2008, 02:50 PM   #1
mia_tech
Member
 
Registered: Dec 2007
Location: FL, USA
Distribution: CentOS 5.3, Ubuntu 9.04
Posts: 143

Rep: Reputation: 15
importing private gpg key into ubuntu...


I've genareted a gpg key pair using gnu privacy assistant, on a windows machine, and now I need to import the private key on my ubuntu box, but after exporting it and backing it up from windows to a share drive, I'm trying to import it into my ubuntu box and I point to the .txt file on the share drive, but the problem is that it says that it didn't find any keys?
what's the proper way to go about this?

thanks
 
Old 05-01-2008, 03:59 PM   #2
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,228
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
a key would typically be .asc not .txt

On the Windows Machine
Code:
gpg --list-secret-keys

gpg --export-secret-keys -o filename.asc username@somedomain.com 
copy filename.asc to your linux box, then do the following
Code:

gpg --import filename.asc

gpg --list-secret-keys
you should NOT leave that .asc file with your secret key laying around, since anyone would be able to import it.. thats a security risk.
you SHOULD create a revocation certificate and store it in a safe place in case your key is compromised or you loose it,



useful reference to gpg:

http://cryptnet.net/fdp/crypto/keysi...ing_party.html
http://www.gnupg.org/gph/en/manual.html
http://dewinter.com/gnupg_howto/engl...MiniHowto.html
 
Old 05-02-2008, 04:55 AM   #3
mia_tech
Member
 
Registered: Dec 2007
Location: FL, USA
Distribution: CentOS 5.3, Ubuntu 9.04
Posts: 143

Original Poster
Rep: Reputation: 15
thanks for the help!
 
Old 05-02-2008, 02:26 PM   #4
mia_tech
Member
 
Registered: Dec 2007
Location: FL, USA
Distribution: CentOS 5.3, Ubuntu 9.04
Posts: 143

Original Poster
Rep: Reputation: 15
by the way what is the propose of the email address when exporting private key in the example you provided?

thanks
 
Old 05-02-2008, 02:30 PM   #5
mia_tech
Member
 
Registered: Dec 2007
Location: FL, USA
Distribution: CentOS 5.3, Ubuntu 9.04
Posts: 143

Original Poster
Rep: Reputation: 15
well, after importing the key to my ubuntu box, the import went just fine, the only problem is when I receive encrypted mail, it prompt me for the password to decrypt it, but after I enter it, it say that it could not decrypt the message....I'm using firegpg firefox extension to encrypt and decrypt my google mail, but if I decrypt the message in the computer where the key was originated it works...any help appreciated

Thanks

Last edited by mia_tech; 05-02-2008 at 02:53 PM.
 
Old 05-02-2008, 08:36 PM   #6
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,228
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
well the email address is the address I used when I generated the key and sent it up to the key server

I use the enigmail plugin with Thunderbird and GPG to sign and encrypt my messages. if you get an email from my address signed / encrypted with that key you can retrieve the public key from the key server..

the keysigning party how-to Link I posted should explain how it all works far better than I could.

What does it show as the trust level for the key on the new box ? (Ultimate or none ?)

When you list the key on the new machine does it look correct ? does the fingerprint of the key match the finger print of hte key on the other OS ?
 
Old 05-03-2008, 03:07 AM   #7
mia_tech
Member
 
Registered: Dec 2007
Location: FL, USA
Distribution: CentOS 5.3, Ubuntu 9.04
Posts: 143

Original Poster
Rep: Reputation: 15
I was able to import the key, on my ubuntu box, but I was using firegpg on firefox to encrypt and decrypt messages, but some how it wasn't decrypting the messages, after that I installed enigmail and it worked just fine...something about your post, you said that if you send me an encrypted mail I should be able to retrieve the key from the server... I thought that if I wanted you to send me an encrypted mail, I would have to send you my public key for you to encrypt the email, and the private key is resident on your computer, and password protected...is that how it works?

thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need gpg key for skype for importing and installation O(V)eGA_l2el) Fedora 3 03-16-2008 08:33 AM
gpg encrytpion - importing public key problems aeby Linux - Security 7 05-16-2007 03:14 AM
Error importing the GPG key for the freshrpms repository in FC5 squall1986 Fedora 1 11-17-2006 12:20 AM
issue importing RH GPG public key linux-singapore Linux - Software 7 12-18-2003 12:51 AM
if they got my gpg private key...... qwijibow Linux - Security 1 10-21-2003 12:22 AM


All times are GMT -5. The time now is 03:56 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration