Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Exporting my GPG key for use on another box...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
green sun
Guru
Guru


Joined: 04 Nov 2002
Posts: 325
Location: Wista, MA

PostPosted: Mon Feb 10, 2003 8:39 pm    Post subject: Exporting my GPG key for use on another box... Reply with quote

I have a Win2K install using gpg with an outlook plugin. I want to use that key on my gentoo box as well, but have no idea how to get it over. Ive poked around and done nothing but get confused with the gpg command line options... does anyone know the commands needed to do this?

thanks!
Back to top
View user's profile Send private message
AkiAki007
Apprentice
Apprentice


Joined: 07 Feb 2003
Posts: 150
Location: New York, NY

PostPosted: Mon Feb 10, 2003 8:51 pm    Post subject: Reply with quote

Code:
#export keys from your computer
gpg --export -a > keys.asc
gpg --export-ownertrust -a > trust.asc
gpg --export-secret-keys -a > seckeys.asc

#import keys from file
gpg --import seckeys.asc
gpg --import keys.asc
gpg --import-owner-trust trust.asc
Back to top
View user's profile Send private message
plate
Bodhisattva
Bodhisattva


Joined: 25 Jul 2002
Posts: 1663
Location: Berlin

PostPosted: Tue Feb 11, 2003 2:42 am    Post subject: Reply with quote

Less elegant, equally effective: Just copy trustdb.gpg, pubring.gpg and secring.gpg to the other machine's home directory... :) Actually, I'm soliciting a strong No! Don't do that, because... type of reply to this, because I've always done it this way and felt bad about it without knowing why. :?
Back to top
View user's profile Send private message
AkiAki007
Apprentice
Apprentice


Joined: 07 Feb 2003
Posts: 150
Location: New York, NY

PostPosted: Tue Feb 11, 2003 1:03 pm    Post subject: Reply with quote

Ug, most definitely don't do that. It has to do with key generation, as you will be using keys that weren't generated on the new computer, and is much more vulnerable to being broken.

Like plate says, don't do what he said :-P
Back to top
View user's profile Send private message
elmities
n00b
n00b


Joined: 12 Feb 2003
Posts: 1

PostPosted: Wed Feb 12, 2003 12:22 am    Post subject: Reply with quote

Quote:
Ug, most definitely don't do that. It has to do with key generation, as you will be using keys that weren't generated on the new computer, and is much more vulnerable to being broken.

Like plate says, don't do what he said


I'm sorry, but this is simply wrong. There is nothing wrong with copying your public and private key rings. It has nothing to do with key generation as your key has already been generated and is sitting in those files. There is nothing wrong with generating a key on one machine and transfering it to another machine if you trust both the generating code and the random number generator on the machine you originally used. You can use the gpg export functions mentioned above or copy your key rings. Both storage mechanisms are representations of the same thing.
Back to top
View user's profile Send private message
green sun
Guru
Guru


Joined: 04 Nov 2002
Posts: 325
Location: Wista, MA

PostPosted: Wed Feb 12, 2003 12:20 pm    Post subject: Reply with quote

Perfect. I used AkiAki007's commands & it worked fine. Both may work, but his looked more "official", as in I could easily pass them on...

thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum