Using Yubikey only to encrypt/sign

Andrew Gallagher andrewg at andrewg.com
Mon Feb 18 08:35:27 CET 2019


> On 18 Feb 2019, at 05:19, Farhan Khan via Gnupg-users <gnupg-users at gnupg.org> wrote:
> 
> How does one utilize *just* the yubikey (or OpenPGP smartcard in general) to
> encrypt, sign, or decrypt? This might be in a scenario where I only have the
> keys on my card but not on disk such as while traveling. I can confirm that
> 'gpg --card-status' lists the keys as present.
> 
> I am simulating this scenario by moving ~/.gnupg to another directory, but
> running 'gpg --list-keys' does not list the list the key as present.

You need to download the public key of the secret keys you are about to use, and then run `gpg --card-status` again. After that it Should Just Work.

A



More information about the Gnupg-users mailing list