Re: Resetting an OpenPGP smart card bricks it

2014-03-13 Thread Chris Boot
On 12/03/14 13:54, Werner Koch wrote: On Tue, 11 Mar 2014 18:20, bo...@bootc.net said: scd serialno undefined ERR 100663356 Not supported SCD This is running GnuPG 2.0.22. Oops. I am sorry, this is not implemented in 2.0. I am using 2.1 for so long now that I didn't remember that

Re: Resetting an OpenPGP smart card bricks it

2014-03-13 Thread Chris Boot
On 12/03/14 15:21, Peter Lebbing wrote: On 2014-03-12 14:54, Werner Koch wrote: pcsclite should have tool to send APDUs to a card. My old gscutils card tools have been replaced by scdaemon's APDU command. You may find them somewhere but using the tools from pcsc should be easier. Back in

Re: Resetting an OpenPGP smart card bricks it

2014-03-12 Thread Chris Boot
On 11/03/2014 21:00, Peter Lebbing wrote: On 11/03/14 18:20, Chris Boot wrote: scd reset [...] reset You forgot the 'scd' prefix on reset. That might be the problem. Sadly that makes no difference either :-( Cheers, Chris -- Chris Boot bo...@bootc.net

Re: Resetting an OpenPGP smart card bricks it

2014-03-12 Thread Werner Koch
On Tue, 11 Mar 2014 18:20, bo...@bootc.net said: scd serialno undefined ERR 100663356 Not supported SCD This is running GnuPG 2.0.22. Oops. I am sorry, this is not implemented in 2.0. I am using 2.1 for so long now that I didn't remember that undefined only works in master. pcsclite

Re: Resetting an OpenPGP smart card bricks it

2014-03-12 Thread Peter Lebbing
On 2014-03-12 14:54, Werner Koch wrote: pcsclite should have tool to send APDUs to a card. My old gscutils card tools have been replaced by scdaemon's APDU command. You may find them somewhere but using the tools from pcsc should be easier. Back in January, in a similar situation, I

Re: Resetting an OpenPGP smart card bricks it

2014-03-12 Thread Werner Koch
On Wed, 12 Mar 2014 16:40, bo...@bootc.net said: $ scriptor No reader given: using Gemalto USB Shell Token V2 (2BAA4AC2) 00 00 Using T=1 protocol Reading commands from STDIN 00 44 00 00 00 44 00 00 6A 88 : Wrong parameter(s) P1-P2. Referenced data not found. Try sending

Re: Resetting an OpenPGP smart card bricks it

2014-03-12 Thread Peter Lebbing
On 12/03/14 17:15, Chris Boot wrote: 00 a4 04 00 06 d2 76 00 01 24 01 00 a4 04 00 06 d2 76 00 01 24 01 XX YY : {{ NVRAM not changed }} [...] Note the line that says XX YY and NVRAM not changed is from memory; I remember it saying about the NVRAM having _not_ being changed, but it

Re: Resetting an OpenPGP smart card bricks it

2014-03-11 Thread Werner Koch
On Tue, 11 Mar 2014 11:44, bo...@bootc.net said: reverse the last two APDUs (e6 then 44 rather than 44 then e6). I believe that E6 is 'TERMINATE DF' and 44 is 'ACTIVATE FILE', so the 2009 instructions are probably correct while the 2013 ones are not. IIRC, early v2 cards have a bug which

Resetting an OpenPGP smart card bricks it

2014-03-11 Thread Chris Boot
Hi, I've reset two OpenPGP smart cards using the instructions at http://lists.gnupg.org/pipermail/gnupg-users/2013-March/046261.html and both have been rendered unusable. Both are OpenPGP V2 cards. I notice the instructions at

Re: Resetting an OpenPGP smart card bricks it

2014-03-11 Thread Chris Boot
On 11/03/14 16:10, Werner Koch wrote: On Tue, 11 Mar 2014 11:44, bo...@bootc.net said: reverse the last two APDUs (e6 then 44 rather than 44 then e6). I believe that E6 is 'TERMINATE DF' and 44 is 'ACTIVATE FILE', so the 2009 instructions are probably correct while the 2013 ones are not.

Re: Resetting an OpenPGP smart card bricks it

2014-03-11 Thread Peter Lebbing
On 11/03/14 18:20, Chris Boot wrote: scd reset [...] reset You forgot the 'scd' prefix on reset. That might be the problem. HTH, Peter. -- I use the GNU Privacy Guard (GnuPG) in combination with Enigmail. You can send me encrypted mail if you want some privacy. My key is available at