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

2017-02-18 Thread Fib Moro
Dear Yutaka, > > Thanks a lot for your report in detail, in the style which I can replicate. > > I'm afraid you are facing same issue what I encountered in 2011. > > CHANGE REFERENCE DATA (OpenPGP card specification 2.0): >

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

2017-02-16 Thread NIIBE Yutaka
Hello, Thanks a lot for your report in detail, in the style which I can replicate. I'm afraid you are facing same issue what I encountered in 2011. CHANGE REFERENCE DATA (OpenPGP card specification 2.0): https://www.gniibe.org/log/bugreport/gnupg/openpgp-card-spec-2.0-chenge-reference-data.html

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

2017-02-16 Thread Fib Moro
Dear Yutaka, > > Let us show more info about your key. I'm afraid your key size > is not the one OpenPGP card supports. I tested RSA-2048 with > OpenPGP card version 2.1, it works fine for me. > -- > == 1. Moving keys to card == Using the correct default

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

2017-02-15 Thread NIIBE Yutaka
Hello, Fib Moro wrote: > 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

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

2017-02-15 Thread Fib Moro
Hello, > > Let us fix a thing one by one. First, the Reset Code handling. > ok, let's do that. > For my OpenPGP card 2.1, the Admin PIN is "12345678" (no 9). > I can successfuly set the Reset Code. > > I confirmed that with wrong Admin PIN, I got the message "Error setting > the Reset Code:

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

2017-02-15 Thread NIIBE Yutaka
Hello, again, I found a bug in GnuPG 2.1.18 for factory-reset command handling (it's not in 2.1.17 or older), I fixed it today. Then, I tested my OpenPGP card 2.1. Let us fix a thing one by one. First, the Reset Code handling. Fib Moro wrote: > It doesn't even get to the

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

2017-02-14 Thread Fib Moro
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

Re: SmartCard v2.1 : factory reset fails

2017-02-13 Thread NIIBE Yutaka
Hello, Since I got 2.1 card last week, I will test with it. For time being, I say something what I know of. Fib Moro wrote: > I can then successfully change the PIN as well as AdminPIN. > > However, when I try to write a key to the card (gpg --edit-key xxx; > keytocard) I >

SmartCard v2.1 : factory reset fails

2017-02-13 Thread Fib Moro
Dear GnuPG-Users List. I'm having trouble with resetting my smartcard version 2.1. After posting a bug report for GnuPG Werner Koch asked me to re-post my question on this mailing list [0]. To answer his quick hint: factory-reset did unfortunately not work as I already mentioned in my