I have a Yubikey Neo (3.3.0) with the GPG applet. I have my secret key there, and have generated stubs which are on my Mac (OS X 10.12). I have the latest GPGTools installed (gpg2 2.0.30).
Using the command-line tools I can successfully encrypt and decrypt items when the Yubikey is inserted. As expected, these operations fail when the key is not present.
However, if I try to add an identity, the operation fails with the error below. Any ideas?
Code:
> gpg2 --edit-key B9C6372C
gpg (GnuPG/MacGPG2) 2.0.30; Copyright (C) 2015 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Secret key is available.
pub 3744R/B9C6372C created: 2014-11-01 expires: never usage: SC
trust: ultimate validity: ultimate
sub 2048R/16F24B4D created: 2014-11-01 expires: never usage: S
sub 2048R/BCD35EE5 created: 2014-11-01 expires: never usage: E
sub 2048R/D63C1EEF created: 2014-11-01 expires: never usage: A
[ultimate] (1). Peter Loron <peterl@xxxx>
[ultimate] (2) Peter Loron <peterloron@xxxx>
[ultimate] (3) Peter Loron <pete@xxxxx>
[ultimate] (4) Peter Loron <ploron@xxxx>
gpg> adduid
Real name: Peter Loron
Email address: peterlo@zzzzz
Comment:
You selected this USER-ID:
"Peter Loron <peterlo@zzzz>"
Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? O
gpg: secret key parts are not available
gpg: signing failed: Unusable secret key
gpg>