using master key from usb

Dashamir Hoxha dashohoxha at gmail.com
Sat Mar 19 14:36:07 CET 2016


On Sat, Mar 19, 2016 at 1:24 PM, Me Self <wmsopou at gmail.com> wrote:

> Hi All
>
> What is the best way to use a master key from a backup usb?
>
> The whole ~/gnupg folder is backed up to the usb, and the master key has
> been removed from the keyring on the harddrive.
>
> I can use the master key with:
> gpg --homedir /media/myusb/gnupg ...
>
> Now I want to --sign-keys a key that is imported in the keyring on the
> harddrive.
>
> I could export the key I want to sign and import it in the backup, sign it
> in the backup, then export it and import it back on the harddrive.. A bit
> longwinded..
>
> Is there an easier way to use the master key?
>

Instead of export/import, you can also transfer the signed key through the
keyserver network:

    alias gpg-sec="gpg --homedir /media/myusb/gnupg"

    gpg-sec --search-key <contact-name>
    gpg-sec --recv-key <contact-id>
    gpg-sec --sign-key <contact-name>
    gpg-sec --send-key <contact-id>
    gpg-sec --delete-keys <contact-name>

    gpg --recv-key <contact-id>

Does this make sense?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/attachments/20160319/9c72f915/attachment.html>


More information about the Gnupg-users mailing list