Yubico Forum

...visit our web-store at store.yubico.com
It is currently Tue Jan 30, 2018 6:10 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Fri May 10, 2013 10:14 pm 
Offline

Joined: Fri May 10, 2013 9:50 pm
Posts: 2
Hi!

I've set NEO to mode 82 and it shows up as a card reader ("Yubico Yubikey NEO OTP+CCID 0") in Windows, but the SCardConnect command gives 0x80100066 which is SCARD_W_UNRESPONSIVE_CARD.

Testing with opensc-tool it says
"Failed to connect to card: Unresponsive card (correctly inserted?)"

Once, directly after install, I was able to get the connect and get the ATR, but after the first reset it is unresponsive again.

Setting the NEO to mode 82 is the only thing I've done so far, no GPG or anything else.

Can you give any hint on how to be able to connect to the NEO?

John


Top
 Profile  
Reply with quote  

Share On:

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

PostPosted: Mon May 13, 2013 8:33 am 
Offline
Site Admin
Site Admin

Joined: Thu Apr 19, 2012 1:45 pm
Posts: 148
Hello,

You should be able to connect to the NEO with those steps.

What output do you get from opensc-tool --list-readers ?

/klas


Top
 Profile  
Reply with quote  
PostPosted: Tue May 14, 2013 6:13 am 
Offline

Joined: Fri May 10, 2013 9:50 pm
Posts: 2
I did set the mode to 2 to make sure I haven't had a problem with a non-inserted card and then it shows up alright:

opensc-x86_64-w64-mingw32-008-base\bin>opensc-tool --list-readers
Readers known about:
Nr. Driver Name
0 pcsc Yubico Yubikey NEO OTP+CCID 0

opensc-x86_64-w64-mingw32-008-base\bin>opensc-tool --atr
Using reader with a card: Yubico Yubikey NEO OTP+CCID 0
3b:fc:13:00:00:81:31:fe:45:59:75:62:69:6b:65:79:4e:45:4f:72:33:b1

I started up my card detection software and the NEO is unresponsive again, so obviosly it's the card detecting software causing the problem. Looking at the log from the card detection software it's not that many commands being sent:

[9740:0292] 00.00.00.000 PCSC - SCardEstablishContext
[9740:0292] 00.00.00.000 PCSC - Return 0
[9740:0292] 00.00.00.000 PCSC - SCardListReaders
[9740:0292] 00.00.00.000 PCSC - Return 0
[9740:0292] 00.00.00.000 PCSC - SCardListReaders
[9740:0292] 00.00.00.000 PCSC - Reader: 'Yubico Yubikey NEO OTP+CCID 0'
[9740:0292] 00.00.00.000 PCSC - Return 0

[9740:0292] 00.00.00.000 PCSC - SCardConnect
[9740:0292] 00.00.00.000 PCSC - Return 0
[9740:0292] 00.00.00.000 PCSC - SCardTransmit
ff ca 00 00 07
-> 6e00
[9740:0292] 00.00.00.000 PCSC - Return 0
[9740:0292] 00.00.00.000 PCSC - SCardTransmit
00 ca df 30 ff
-> 6700
[9740:0292] 00.00.00.000 PCSC - Return 0
[9740:0292] 00.00.00.000 PCSC - SCardDisconnect
[9740:0292] 00.00.00.000 PCSC - Return 0
[9740:0292] 00.00.00.000 PCSC - SCardReleaseContext
[9740:0292] 00.00.00.000 PCSC - Return 0

[9740:0392] 00.00.00.000 PCSC - SCardEstablishContext
[9740:0392] 00.00.00.000 PCSC - Return 0
[9740:0392] 00.00.00.000 PCSC - SCardConnect
[9740:0392] 00.00.00.000 PCSC - Return 22

If I remember the ISO7816-4 correctly, the 6e00 code means "class not supported", which is understandable with the class FF. The 6700 means "wrong length".

Does the NEO somehow get lost by these commands?


Top
 Profile  
Reply with quote  
PostPosted: Tue May 14, 2013 7:00 am 
Offline
Site Admin
Site Admin

Joined: Thu Apr 19, 2012 1:45 pm
Posts: 148
Interesting..

I've just tested sending those commands to a neo and I get the same responses but no issue with the card being ejected.
What card detection software are you using?

/klas


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

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 11 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