Hi,
I’ve reset my cryptostick by issuing:
gpg-connect-agent < /tmp/cryptostickreset.txt
where cryptostickreset.txt was from crypto-stick.com/en/faq
after that card become brick:
$ gpg2 --card-status
gpg: OpenPGP card not available: Not supported
$ opensc-tool --atr
Using reader with a card: German Privacy Foundation Crypto Stick v1.2 00 00
Failed to connect to card: Card command failed
Device avaiable on usb bus, but gpg unable to communicate with them
[12658.298333] usb 3-2: new full-speed USB device number 10 using xhci_hcd
[12658.310480] usb 3-2: New USB device found, idVendor=20a0, idProduct=4107
[12658.310487] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[12658.310491] usb 3-2: Product: Crypto Stick v1.2
[12658.310495] usb 3-2: Manufacturer: German Privacy Foundation
I think root of this issue is a bug in cryptostickreset.txt (last two apdu swapped).
in all other sources (for example blog.mozilla.org/security/2013/ … as-an-hsm/)
command is:
hex
scd serialno
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 apdu 00 44 00 00
/echo Reset complete
How to unbick device?