I am trying to get Neo working on Ubuntu 16.04. THe issue seems to be that gpg can't access my card. If I run
Code:
$ gpg --card-status
gpg: sending command `SCD LEARN' to agent failed: ec=6.124
gpg: OpenPGP card not available: general error
With sudo I get a different error:
Code:
$ sudo gpg --card-status
gpg: WARNING: unsafe ownership on configuration file `/home/bframe/.gnupg/gpg.conf'
gpg: detected reader `Yubico Yubikey NEO OTP+U2F+CCID 00 00'
gpg: pcsc_connect failed: sharing violation (0x8010000b)
gpg: apdu_send_simple(0) failed: locking failed
Please insert the card and hit return or enter 'c' to cancel:
I can kill the gpg agent to remove that error:
Code:
$ gpg-connect-agent 'scd killscd' /bye
OK
But that error is replaces with a "can't access Extended Capability Flags" error:
Code:
$ sudo gpg --card-status
gpg: WARNING: unsafe ownership on configuration file `/home/bframe/.gnupg/gpg.conf'
gpg: detected reader `Yubico Yubikey NEO OTP+U2F+CCID 00 00'
gpg: can't access Extended Capability Flags - invalid OpenPGP card?
gpg: Segmentation fault caught ... exiting
Segmentation fault (core dumped)
gpg2 doesn't fair any better:
Code:
$ sudo gpg2 --card-status
gpg: OpenPGP card not available: Unsupported operation
But otherwise the device is recognized by the system:
Code:
$ opensc-tool -l
# Detected readers (pcsc)
Nr. Card Features Name
0 Yes Yubico Yubikey NEO OTP+U2F+CCID 00 00
$ piv-tool --serial
Using reader with a card: Yubico Yubikey NEO OTP+U2F+CCID 00 00
BB D0 8B B7 1C 17 02 FC F5 42 20 44 24 37 94 02 .........B D$7..
And Yubikey NEO Manager, YubiKey PIV Manager, and YubiKey Personalization, and YubiKey Authorization all recognize it.
I'm running gpg v. 1.4.20 and gpg2 v. 2.1.11.
I've seen similar problems on the forum, but no solution has worked. Any thoughts on how to trouble shoot this?
Thanks!