card is permanently locked!
Werner Koch
wk at gnupg.org
Tue Dec 16 13:22:29 CET 2014
Hi,
while testing the forthcoming 2.1 cards (only minor changes) I found out
that the old instructions on how to reset the card didn't worked always.
The corrected script is
--8<---------------cut here---------------start------------->8---
scd reset
scd serialno undefined
scd apdu 00 A4 04 00 06 D2 76 00 01 24 01
scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40
scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40
scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40
scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40
scd apdu 00 20 00 83 08 40 40 40 40 40 40 40 40
scd apdu 00 20 00 83 08 40 40 40 40 40 40 40 40
scd apdu 00 20 00 83 08 40 40 40 40 40 40 40 40
scd apdu 00 20 00 83 08 40 40 40 40 40 40 40 40
scd apdu 00 e6 00 00
scd reset
scd serialno undefined
scd apdu 00 A4 04 00 06 D2 76 00 01 24 01
scd apdu 00 44 00 00
/echo Card has been reset to factory defaults
/bye
--8<---------------cut here---------------end--------------->8---
Put this into a file, say, "resetcard.scd" and run
gpg-connect-agent --hex --run resetcard.scd
This should reset all cards unless you are using the secure-messaging
feature, which is not used by GnuPG.
GnuPG 2.1.1 will have a "factory-reset" command for the --edit-card
menu.
Salam-Shalom,
Werner
--
Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz.
More information about the Gnupg-users
mailing list