Yubico Forum

...visit our web-store at store.yubico.com
It is currently Tue Jan 30, 2018 11:04 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Thu Jan 18, 2018 12:02 am 
Offline

Joined: Wed Jan 17, 2018 11:39 pm
Posts: 2
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!


Top
 Profile  
Reply with quote  

Share On:

Share on Facebook FacebookShare on Twitter TwitterShare on Tumblr TumblrShare on Google+ Google+

PostPosted: Thu Jan 18, 2018 4:32 pm 
Offline

Joined: Wed Jan 17, 2018 11:39 pm
Posts: 2
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.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group