Yubico Forum
https://forum.yubico.com/

PGP "Secret key parts not available" when adding identity
https://forum.yubico.com/viewtopic.php?f=26&t=2464
Page 1 of 1

Author:  peterloron [ Thu Oct 20, 2016 10:43 pm ]
Post subject:  PGP "Secret key parts not available" when adding identity

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>

Author:  plaintexter [ Sat Oct 22, 2016 5:37 pm ]
Post subject:  Re: PGP "Secret key parts not available" when adding identit

That part works fine on Linux, I tried it earlier today.
The card is having probably having problems seeing your key. (I had a ton of small problems like that, it's awful how brittle these clients/agents/whatever are).

Maybe you can try to boot from Live CD and create a new key (you don't want to save, obviously).

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/