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

Sharing violation / can't access extended capability flag
https://forum.yubico.com/viewtopic.php?f=26&t=2823
Page 1 of 1

Author:  BFRAME [ Thu Jan 18, 2018 12:02 am ]
Post subject:  Sharing violation / can't access extended capability flag

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!

Author:  BFRAME [ Thu Jan 18, 2018 4:32 pm ]
Post subject:  Re: Sharing violation / can't access extended capability fla

Just to add to this, I tried this on a different computer, also running Ubuntu 16.04, and I get the same set of errors. I've tried resetting the applet per this suggestion, https://www.yubico.com/support/knowledg ... t-yubikey/ but no luck.

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