Yubico Forum
https://forum.yubico.com/

Error changing the PIN: Not enough space
https://forum.yubico.com/viewtopic.php?f=22&t=2467
Page 1 of 1

Author:  plaintexter [ Sat Oct 22, 2016 6:11 pm ]
Post subject:  Error changing the PIN: Not enough space

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

Author:  plaintexter [ Tue Nov 01, 2016 8:43 am ]
Post subject:  Re: Error changing the PIN: Not enough space

To update this: I don't know what was causing this issue, but it might have been GPG for Win *or* a poor contact in the USB port.

Later I rebooted the system and tried with Yubikey plugged into another port, and it worked.

I haven't performed further troubleshooting.

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/