How do I access/use a GPG keychain stored on a USB stick

A.Stro's Avatar

A.Stro

25 Jun, 2015 02:16 PM

GPG Keychain

I prefer it to access my keyring while it is located on my USB stick. (Without the need to import the keyring to my Mac.)
My question is: How do I tell GPG where to look for the keyRing and use the key's from there.

  1. Support Staff 1 Posted by Mento on 15 Jul, 2015 11:32 AM

    Mento's Avatar

    Hi,

    do you want the whole keyring on the USB-Stick or only the secret keys?

    I would suggest to only move the secring to the stick.
    To do this:
    1.) Close GPG Keychain, Mail and every other gpg Application.
    2.) Move the file ~/.gnupg/secring.gpg to the USB-Stick.
    3.) Add the following lines to ~/.gnupg/gpg.conf

    no-default-keyring
     # Change the path in the line below to match the path to your secring.gpg on your USB-Stick.
    secret-keyring /USBStick/Path/to/the/secring.gpg
    

    With this method, you're able to encrypt anything without your stick. You need the stick only to decrypt and sign.

    Regards, Mento

  2. Steve closed this discussion on 26 Nov, 2015 09:51 PM.

  3. Steve re-opened this discussion on 03 Apr, 2017 03:48 PM

  4. Support Staff 2 Posted by Steve on 03 Apr, 2017 03:48 PM

    Steve's Avatar

    @astro: have you tried following the steps giving in comment #1?

  5. Steve closed this discussion on 07 Aug, 2017 03:58 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac