Nitrokey / nitrokey-start-firmware

A mirror of Gnuk's 1.0.x and 1.2.x branches.
56 stars 15 forks source link

Changing serialnumber 2nd time throws "ValueError: ('cmd_write_binary 0', '6581')" #6

Closed fwegener closed 7 years ago

fwegener commented 7 years ago

I have three Nitrokey Start which I use on several machines with identical subkeys. Because gpg store the serial card number in the sub-key stub of public key I want to have all tokens the same serial number. For that I used:

export EMAIL=gniibe@fsij.org pkill -9 scdaemon edit the wanted new in GNUK_SERIAL_NUMBER python2 tool/gnuk_put_binary_libusb.py -s ./GNUK_SERIAL_NUMBER

Principaly that works but only one time. Updating the serial number a second time results in "ValueError: ('cmd_write_binary 0', '6581')":

session.txt

Doing a factory reset doesn't help. The altered serial number remain and is further not changeable.

PS. One token is now unusable for me because I was not prepared to set the right serial number on the first shot.

fwegener commented 7 years ago

Described behaviour is part of the feature and no bug. See also:

http://www.fsij.org/doc-gnuk/gnuk-token-initial-configuration.html#serial-number-optional