This is a new Nano with latest f/w.
I locked myself out from Admin PIN so I reset the card running one of those reset scripts (
http://forum.yubico.com/viewtopic.php?f=35&t=2193#p8245) and then tried to change User PIN first.
In order to avoid setting a PIN that I won't remember tomorrow I chose the same PIN as the default (123456), but I get this error.
Code:
C:\Program Files (x86)\GNU\GnuPG>gpg2.exe --card-edit
Application ID ...: ===============================
Version ..........: 2.1
Manufacturer .....: Yubico
Serial number ....: 04974752
Name of cardholder: [not set]
Language prefs ...: [not set]
Sex ..............: unspecified
URL of public key : [not set]
Login data .......: [not set]
Signature PIN ....: not forced
Key attributes ...: 2048R 2048R 2048R
Max. PIN lengths .: 127 127 127
PIN retry counter : 3 0 3
Signature counter : 0
Signature key ....: [none]
Encryption key....: [none]
Authentication key: [none]
General key info..: [none]
gpg/card> admin
Admin commands are allowed
gpg/card> passwd
gpg: OpenPGP card no. ======================= detected
1 - change PIN
2 - unblock PIN
3 - change Admin PIN
4 - set the Reset Code
Q - quit
Your selection? 1
Error changing the PIN: Not enough space
1 - change PIN
2 - unblock PIN
3 - change Admin PIN
4 - set the Reset Code
Q - quit
Your selection? q
gpg/card> quit
I tried to run the same admin > passwd process for Admin PIN - same issue, not enough space.
I did manage to change Reset PIN (by mistake, I thought I pressed 3, but I pressed 4) using the default Admin PIN, which seems to indicate the PINs were reset to default values.
Then I reinserted the card and tried again. Now GPG doesn't even wait until I try to change PIN - as soon as I pick 1 or 3, it tells me there's no space. What space? On the card? On my HDD?
Code:
1 - change PIN
2 - unblock PIN
3 - change Admin PIN
4 - set the Reset Code
Q - quit
Your selection? 3
Error changing the PIN: Not enough space