Nitrokey / nitrokey-start-firmware

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

Nitrokey Start not detected by GNUK toolset (no attribute 'cmd_verify') #2

Closed RaymiiOrg closed 7 years ago

RaymiiOrg commented 8 years ago

When trying to load a public key for firmware upgrades the following error occurs:

./tool/gnuk_put_binary_libusb.py -k 0 CB1522E7.bin
Traceback (most recent call last):
  File "./tool/gnuk_put_binary_libusb.py", line 112, in <module>
    main(fileid, is_update, data, passwd)
  File "./tool/gnuk_put_binary_libusb.py", line 52, in main
    gnuk.cmd_verify(BY_ADMIN, passwd)
AttributeError: 'NoneType' object has no attribute 'cmd_verify'

This is on Ubuntu 14.04. GnuPG recognizes the card.

RaymiiOrg commented 8 years ago

I do have python pyusb 1.0.0 installed as that is in the repo's.

Reading here:

https://github.com/ggkitsas/gnuk/blob/master/NEWS#L55

** Tools and test suite now work with PyUSB 1.0, too.
It only worked with PyUSB 0.4.3, but it works with PyUSB 1.0 too.

Makes me think this is a version issue.

RaymiiOrg commented 8 years ago

The gnuk source, tag release/1.2.1, also gives the same error. :(

szszszsz commented 7 years ago

Hi! Error might show that GNUK tool does not see any supported device. Possibly one has to add vid/pid of NK Start to the tool's source.

szszszsz commented 7 years ago

Could you run the same using gnuk1.2-regnual-fix branch? I have added there Nitrokey Start's vid/pid.

szszszsz commented 7 years ago

Closing as fixed. Please reopen if it still occurs.