Aw: Re: SmartCard v2.1 : factory reset fails

Fib Moro fibmoro at gmx.de
Tue Feb 14 11:26:49 CET 2017


Hello Yutaka,

> 
> The length of the Reset Code should be more than or equals to 8.  If it
> is shorter, it fails.  What is your case?
> -- 
> 

It doesn't even get to the point where it prompts me for the Reset Code:

Here is what I do:

When try to set the reset code via "passwd => 4" it prompts me for the AdminPIN.
I enter the default AdminPIN value of "123456789" and get the message "Error setting the Reset Code: Bad PIN"
I'm 100% sure I entered AdminPIN correctly.
The same issue occurs if I set the AdminPIN manually beforehand.

_____________

gpg/card> passwd
gpg: OpenPGP card no. DXXX detected

1 - change PIN
2 - unblock PIN
3 - change Admin PIN
4 - set the Reset Code
Q - quit

Your selection? 4
Error setting the Reset Code: Bad PIN
_____________

>
> > However, when I try to write a key to the card (gpg --edit-key xxx; keytocard) I
> > get a message "Error setting the Reset Code: Bad PIN".
> 

I am sorry, I was a bit imprecise here. Please let me explain again:

I start gpg in "--edit-key" mode.
Then I select a subkey I want to move to the card by issuing command "key 1".
After the "keytocard" command it asks me where to store the key for which I choose option 1 signature key.
It then prompts me for the privat key passphrase which I enter successfully.
Now it asks me for AdminPIN. Again with default value "123456789" I get the message "gpg: KEYTOCARD failed: Bad secret key"
Also the same issue occurs if I set the AdminPIN manually beforehand.
_____________

gpg> key 1
...
gpg> keytocard
Please select where to store the key:
   (1) Signature key
   (3) Authentication key
Your selection? 1
gpg: KEYTOCARD failed: Bad secret key
______________

Please let me know if you need more information.

Thank you kindly,

fibmoro



More information about the Gnupg-users mailing list