Ok seems that when I touch the button, the card is present...
Code:
99999999 ifdhandler.c:1122:IFDHPowerICC() action: PowerUp, usb:1050/0112:libudev:0:/dev/bus/usb/003/015 (lun: 0)
00008006 eventhandler.c:372:EHStatusHandlerThread() powerState: POWER_STATE_POWERED
00000020 eventhandler.c:387:EHStatusHandlerThread() Card inserted into Yubikey NEO 00 00
00000020 Card ATR: 3B FD 13 00 00 81 31 FE 45 41 37 30 30 36 43 47 20 32 34 32 52 31 D6
05003955 ifdhandler.c:1122:IFDHPowerICC() action: PowerDown, usb:1050/0112:libudev:0:/dev/bus/usb/003/015 (lun: 0)
So now opensc detects the card and tries to exchange ATRs but it's an unknown card to opensc (it should detect an openpgp card)...
Code:
0xaf7d8900 21:38:19.598 [opensc-tool] card.c:189:sc_connect_card: trying driver 'javacard'
0xaf7d8900 21:38:19.598 [opensc-tool] card.c:870:match_atr_table: ATR : 3b:fd:13:00:00:81:31:fe:45:41:37:30:30:36:43:47:20:32:34:32:52:31:d6
0xaf7d8900 21:38:19.598 [opensc-tool] card.c:881:match_atr_table: ATR try : 3b:db:18:00:80:b1:fe:45:1f:83:00:31:c0:64:c7:fc:10:00:01:90:00:fa
0xaf7d8900 21:38:19.598 [opensc-tool] card.c:884:match_atr_table: ignored - wrong length
0xaf7d8900 21:38:19.598 [opensc-tool] card.c:881:match_atr_table: ATR try : 3b:75:94:00:00:62:02:02:02:01
0xaf7d8900 21:38:19.598 [opensc-tool] card.c:884:match_atr_table: ignored - wrong length
0xaf7d8900 21:38:19.598 [opensc-tool] card.c:881:match_atr_table: ATR try : 3b:95:95:40:ff:ae:01:03:00:00
0xaf7d8900 21:38:19.598 [opensc-tool] card.c:884:match_atr_table: ignored - wrong length
0xaf7d8900 21:38:19.598 [opensc-tool] card.c:189:sc_connect_card: trying driver 'default'
0xaf7d8900 21:38:19.599 [opensc-tool] card.c:196:sc_connect_card: matched: Default driver for unknown cards
Again gnupg doesn't work...
Code:
gpg --card-status
gpg: selecting openpgp failed: Unsupported certificate
gpg: OpenPGP card not available: Unsupported certificate
But at least the command did work...
Code:
./ykneo-ccid-modeswitch -m2
SCardTransmit [NEO select aid]: 12 bytes
0000: 03 00 03 01 05 07 02 0f-00 00 90 00 <............ >
Version: 3.0.3
Seq: 1
Mode: 02
Flags: 00
CR timeout: 15
Eject time: 0
Commit? (y/n) [n]: y
SCardTransmit [NEO write config]: 8 bytes
0000: 03 00 03 02 05 07 90 00 <........ >
Seq: 2
Update successful
However now the Yubikey has a different usb id so I again have to patch ccid to support it...
May I ask what version of pcsc-lite / ccid / opensc /gnupg have you used for your tests ? Did you test them on Linux ?