Hi,
the OpenPGP applet on Yubikey Neo no longer accepts the user PIN and the PIN try counter won't decrease from 3 even if I enter wrong PIN. It happened after unblocking the PIN once via "gpg --change-pin", any operation requiring user PIN like signing no longer works.
From "gpg --card-status" (gnupg 2.0.19 on Scientific Linux 6.4) :
Code:
Application ID ...: D2760001240102000000000000010000
Version ..........: 2.0
Manufacturer .....: test card
Serial number ....: 00000001
Name of cardholder: NFCTest Yubikey
Language prefs ...: en
Sex ..............: unspecified
URL of public key : [not set]
Login data .......: [not set]
Signature PIN ....: forced
Key attributes ...: 2048R 2048R 2048R
Max. PIN lengths .: 127 127 127
PIN retry counter : 3 3 3
Signature counter : 6
Signature key ....: EBE7 BBA6 0F98 FEC5 38A7 9AE5 D24B 3700 FE6A 4090
created ....: 2013-05-23 09:07:45
Encryption key....: 912C A861 FCBC CC33 4A3C 84F4 9F28 C5C9 C031 CCB5
created ....: 2013-05-23 09:07:45
Authentication key: 5874 40A4 D735 F0D4 FD88 492C 2A16 94A5 3DC1 DDD4
created ....: 2013-05-23 09:07:45
General key info..: pub 2048R/FE6A4090 2013-05-23 Neokey <yubi@nowhere.cz>
sec> 2048R/FE6A4090 created: 2013-05-23 expires: 2015-05-23
card-no: 0000 00000001
ssb> 2048R/3DC1DDD4 created: 2013-05-23 expires: 2015-05-23
card-no: 0000 00000001
ssb> 2048R/C031CCB5 created: 2013-05-23 expires: 2015-05-23
card-no: 0000 00000001
Strangely enough, admin PIN still works (also admin PIN try counter works), e.g. I can change name using admin commands. However user PIN still doesn't work even if changed/unblocked via 'gpg --change-pin', see below.
The result is the same whether using NFC or connecting via USB CCID. Sniffing and checking out some authenthication APDUs, I pasted them from pcscd log:
Authentication with user PIN (PW1) always fails:
Code:
APDU: 00 A4 04 00 06 D2 76 00 01 24 01 #select OpenPGP app - ok
SW: 90 00
APDU: 00 20 00 81 06 31 32 33 34 35 36 # user PIN fail, now always says there's 3 tries left, even if wrong PIN is supplied
SW: 63 C3
But admin PIN seems OK, it looks it will even let us change user PIN:
Code:
APDU: 00 A4 04 00 06 D2 76 00 01 24 01 #select OpenPGP app - ok
SW: 90 00
APDU: 00 20 00 83 08 31 32 33 34 35 36 37 38 #authenthicate with admin PIN 12345678 - ok
SW: 90 00
APDU: 00 2C 02 81 06 31 32 33 34 35 36 # change/reset PIN (PW1) to 123456 - seems ok
SW: 90 00
But even after "changing PIN" the auth with the user PIN still fails in the same way - returns SW 63 C3.