View previous topic :: View next topic |
Author |
Message |
green sun Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/404567313dc676168338d.jpg)
Joined: 04 Nov 2002 Posts: 325 Location: Wista, MA
|
Posted: Mon Feb 10, 2003 8:39 pm Post subject: Exporting my GPG key for use on another box... |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
AkiAki007 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/Simpsons/simpsons_homer.gif)
Joined: 07 Feb 2003 Posts: 150 Location: New York, NY
|
Posted: Mon Feb 10, 2003 8:51 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
plate Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/cbd8300c3d6b344dade9f.jpg)
Joined: 25 Jul 2002 Posts: 1663 Location: Berlin
|
Posted: Tue Feb 11, 2003 2:42 am Post subject: |
|
|
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. ![Confused :?](images/smiles/icon_confused.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
AkiAki007 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/Simpsons/simpsons_homer.gif)
Joined: 07 Feb 2003 Posts: 150 Location: New York, NY
|
Posted: Tue Feb 11, 2003 1:03 pm Post subject: |
|
|
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 ![Razz :-P](images/smiles/icon_razz.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
elmities n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 12 Feb 2003 Posts: 1
|
Posted: Wed Feb 12, 2003 12:22 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
green sun Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/404567313dc676168338d.jpg)
Joined: 04 Nov 2002 Posts: 325 Location: Wista, MA
|
Posted: Wed Feb 12, 2003 12:20 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|