Moving GPG Keys Between Computers

Todd Zullinger tmz at pobox.com
Sun Feb 22 22:43:24 UTC 2009


Robert L Cochran wrote:
> One more question about my collection of gpg keys.
>
> I currently keep all keys on my Fedora 7 desktop. I want to move the
> keys to the Fedora 10 system on my (far newer) laptop. Am I right in
> assuming that all I need to do is to copy my .gnupg directory from
> the Fedora 7 desktop to the Fedora 10 laptop?

Yes.  That will work, as long the gnupg keyring format doesn't change.
(And at some point, it may.)

If/when that happens and you want to copy keys, you can always export
the keys on one computer, then import on the other.  For example:

old $ gpg --armor --export > public.asc
old $ gpg --armor --export-secret-keys > secret.asc
old $ gpg --export-ownertrust > trustdb

[...transfer key files to new computer...]

new $ gpg --import public.asc private.asc
new $ gpg --import-ownertrust trustdb

-- 
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Intaxication (n.) Euphoria at getting a tax refund, which lasts until
you realize it was your money to start with.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 542 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20090222/7c037e1c/attachment-0001.sig>


More information about the fedora-list mailing list