The PIN for my Yubikey 4 (nano) is blocked (too many wrong entries). The PUK is also blocked (by default).
To reset the PIN I used the instructions provided here (
https://developers.yubico.com/ykneo-openpgp/ResetApplet.html). However it does not seem to work.
First I check that the pin is blocked (69 83 confirms that the PIN is blocked, according to
https://lists.gnupg.org/pipermail/gnupg-users/2009-September/037414.html):
Code:
gpg-connect-agent --hex
> scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40
D[0000] 69 83 i.
OK
I then proceed to "terminate" and "reactivate" the card as instructed in either links above:
Code:
> scd apdu 00 e6 00 00
D[0000] 69 82 i.
OK
> scd apdu 00 44 00 00
D[0000] 90 00 ..
OK
However my PIN remains blocked:
Code:
gpg-connect-agent --hex
> scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40
D[0000] 69 83 i.
OK
I also tried yubico-piv-tool, but no luck:
Code:
yubico-piv-tool -a reset
Reset failed, are pincodes blocked?
I must be missing something obvious. Any ideas?