GPG Keys on both Home and Work Computer

Carthik Sharma carthik at gmail.com
Wed Jul 19 05:16:37 UTC 2006


On 7/18/06, ben darby <ben at cvrse.com> wrote:
> * Scott J. Henson (scotth at csee.wvu.edu) wrote:
> > Carthik Sharma wrote:
> > >Hi,
> > >
> > >I wish to learn how I can use the same GPG key pair (my key) on both
> > >my home and work computers.
> > >For those of you who use more than one computer, how do you manage your
> > >keys?
> > >I want to be able to use my keys for signing/encryption on both my
> > >home and my work desktops.
> > >How do I copy my key-pair from my home computer to my work computer?
> > >Moving the .gnupg folder is not an option really since my work
> > >computer has a keyring with some keys of others on it - just that it
> > >does not have my private key.
> >
> > I would put your .gnupg on a usb key drive and either
> > symlink into place or use the $GPGHOME environment variable
> > to point gpg at your USB key.
>
> since all he needs is his secret key best option is to just export the
> pair then he can import it at work and update via keysever to keep his
> signatures upto date.
>
> gpg --export-secret-keys -a YOURKEYID > mykey.asc && gpg --export -a
> YOURKEYID >> mykey.asc

Thanks folks. It worked fine. To import secret keys, you need an extra
--allow-secret-key-import  -- found that out just now.

Carthik.




More information about the ubuntu-users mailing list