moving gpg to another PC

Leigh S. Jones, KR6X kr6x@kr6x.com
Mon May 6 18:21:01 2002


Try this:
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
public.key
dest-machine $ gpg --import publickey.asc
dest-machine $ gpg --edit-key "X"
Command> uid1
...
Command> trust
...
Your decision? 5
...
Command> sign
Really for sure? You can't be serious, please reconsider... Danger Will
Robinson! y
Oh the humanity... What a world...
Command> save


----- Original Message -----
From: "Nic Ferrier" <nferrier@tapsellferrier.co.uk>
To: "Steve Butler" <sbutler@fchn.com>
Cc: <rtilley@vt.edu>; <gnupg-users@gnupg.org>
Sent: Monday, May 06, 2002 08:51
Subject: Re: moving gpg to another PC


> "Steve Butler" <sbutler@fchn.com> writes:
>
> > Looks like the best thing would be to export both your public and
private
> > key rings from the old box and import them into a fresh install of GnuPG
on
> > the new box.  I tend to do that when moving between boxes that might
have
> > 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?
>
>
> Nic
>
>
> _______________________________________________
> Gnupg-users mailing list
> Gnupg-users@gnupg.org
> http://lists.gnupg.org/mailman/listinfo/gnupg-users
>