moving gpg to another PC
Leigh S. Jones, KR6X
Mon May 6 18:21:01 2002
source-machine $ gpg -a -o secretkey.asc --export-secret-key 'X'
source-machine $ gpg -a -o publickey.asc --export 'X'
source-machine $ scp *key.asc dest-machine:/myhomedir
On the destination machine, tickle gpg until it reports creation
of the keyrings, then
dest-machine $ gpg --allow-secret-key-import --import secretkey.asc
dest-machine $ gpg --import publickey.asc
dest-machine $ gpg --edit-key "X"
Your decision? 5
Really for sure? You can't be serious, please reconsider... Danger Will
Oh the humanity... What a world...
----- Original Message -----
From: "Nic Ferrier" <email@example.com>
To: "Steve Butler" <firstname.lastname@example.org>
Cc: <email@example.com>; <firstname.lastname@example.org>
Sent: Monday, May 06, 2002 08:51
Subject: Re: moving gpg to another PC
> "Steve Butler" <email@example.com> writes:
> > Looks like the best thing would be to export both your public and
> > key rings from the old box and import them into a fresh install of GnuPG
> > the new box. I tend to do that when moving between boxes that might
> > different flavors/versions/packages at the O/S level.
> Hmm... I tried this approach. It didn't seem to work.
> Here's what I did:
> source-machine $ gpg --export-secret-key 'X' > secret.key
> source-machine $ gpg --export 'X' > public.key
> source-machine $ scp *.key dest-machine:/myhomedir
> dest-machine $ gpg --allow-secret-key --import secret.key public.key
> gpg: /myhomedir/.gnupg/secring.gpg: keyring created
> gpg: /myhomedir/.gnupg/pubring.gpg: keyring created
> gpg: key FD0EEEAD: secret key imported
> gpg: key FD0EEEAD: no valid user IDs
> gpg: this may be caused by a missing self-signature
> gpg: Total number processed: 2
> gpg: w/o user IDs: 1
> gpg: secret keys read: 1
> gpg: secret keys imported: 1
> So that doesn't seem to work.
> I could sign the public key but if I did how would I verify the
> signature on the dest-machine? The dest-machine doesn't have a valid
> secret/public key combination.
> Should I seek a solution for this on the developer list?
> Gnupg-users mailing list