I appear to be unable to either reset the user PIN or regenerate the GPG key without entering it.
I'd love to be able to reset this NEO to "factory". I do know (and did enter) the correct *admin* PIN.
Code:
$ gpg --version
gpg (GnuPG) 2.0.19
libgcrypt 1.5.0
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Home: ~/.gnupg
Supported algorithms:
Pubkey: RSA, ELG, DSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH, CAMELLIA128,
CAMELLIA192, CAMELLIA256
Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2
$ gpg --card-edit
scdaemon[20583]: updating slot 0 status: 0x0000->0x0007 (0->1)
Application ID ...: D2760001240102000000000000010000
Version ..........: 2.0
Manufacturer .....: test card
Serial number ....: 00000001
Name of cardholder: [not set]
Language prefs ...: [not set]
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 2 3
Signature counter : 5
Signature key ....: 4FE2 94B5 4F09 D6F9 DA2F 42B5 6CA8 5536 A7C3 08D6
created ....: 2013-02-10 19:46:03
Encryption key....: CA53 7394 CB9C 08F9 AA09 23AD 0985 71BC BC97 27BA
created ....: 2013-02-10 19:46:03
Authentication key: 94B5 51E6 D68B 8D83 BAC7 A735 A63C B5C9 B28A ABBB
created ....: 2013-02-10 19:46:03
General key info..:
pub 2048R/A7C308D6 2013-02-10 ********* (Hardware Token) <***@**.***>
sec> 2048R/A7C308D6 created: 2013-02-10 expires: never
card-no: 0000 00000001
ssb> 2048R/B28AABBB created: 2013-02-10 expires: never
card-no: 0000 00000001
ssb> 2048R/BC9727BA created: 2013-02-10 expires: never
card-no: 0000 00000001
gpg/card> admin
Admin commands are allowed
gpg/card> passwd
gpg: OpenPGP card no. D2760001240102000000000000010000 detected
1 - change PIN
2 - unblock PIN
3 - change Admin PIN
4 - set the Reset Code
Q - quit
Your selection? 2
scdaemon[20583]: 3 Admin PIN attempts remaining before card is permanently locked
scdaemon[20583]: DBG: asking for PIN '|A|Please enter the Admin PIN'
scdaemon[20583]: DBG: asking for PIN '|N|New PIN'
PIN unblocked and new PIN set.
1 - change PIN
2 - unblock PIN
3 - change Admin PIN
4 - set the Reset Code
Q - quit
Your selection? Q
gpg/card> verify
scdaemon[20583]: DBG: asking for PIN '||Please enter the PIN'
scdaemon[20583]: verify CHV2 failed: Card error
scdaemon[20583]: app_check_pin failed: Card error
Application ID ...: D2760001240102000000000000010000
Version ..........: 2.0
Manufacturer .....: test card
Serial number ....: 00000001
Name of cardholder: [not set]
Language prefs ...: [not set]
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 2 3
Signature counter : 5
Signature key ....: 4FE2 94B5 4F09 D6F9 DA2F 42B5 6CA8 5536 A7C3 08D6
created ....: 2013-02-10 19:46:03
Encryption key....: CA53 7394 CB9C 08F9 AA09 23AD 0985 71BC BC97 27BA
created ....: 2013-02-10 19:46:03
Authentication key: 94B5 51E6 D68B 8D83 BAC7 A735 A63C B5C9 B28A ABBB
created ....: 2013-02-10 19:46:03
General key info..:
pub 2048R/A7C308D6 2013-02-10 ********* (Hardware Token) <***@**.***>
sec> 2048R/A7C308D6 created: 2013-02-10 expires: never
card-no: 0000 00000001
ssb> 2048R/B28AABBB created: 2013-02-10 expires: never
card-no: 0000 00000001
ssb> 2048R/BC9727BA created: 2013-02-10 expires: never
card-no: 0000 00000001