Nitrokey / nitrokey-app

Nitrokey's Application (Win, Linux, Mac)
https://www.nitrokey.com/
287 stars 55 forks source link

"Enable firmware update" error message for Nitrokey Pro with old firmware #483

Open Niklap97 opened 2 years ago

Niklap97 commented 2 years ago

Application version: 1.5 RC8 Operating system: [Windows 10] Issue occurrency: [always]

Expected behaviour

When attempting to "Enable firmware update" for a Nitrokey Pro with a firmware older than 0.11, the reason should be stated in the error message and an alternative solution should be described if possible.

Current behaviour

Error message displays: "Device could not be set in update mode. Status code: 9"

Steps for reproduction

LennardBoediger commented 2 years ago

Application version: 1.5 RC8 Operating system: [Mac OS 11.2.3] Issue occurrency: [always]

Same problem under macOS It is also not possible to change the firmware password as it claims that the current password is not 12345678.

However, it is possible to activate the firmware update mode for the same device with pynitrokey (without specifying a firmwmware password - and therefore using the default password 12345678).

almazyan commented 1 year ago

I have exactly the same issue as the author but on Debian 11.

Also, it looks like there is an issue with pynitrokey.

IMG_20230224_122510

Can somebody propose a solution please?

szszszsz commented 1 year ago

Hey! This looks like an udev rules problem. Can you check if you have the latest installed? See docs.nitrokey.com for the details.

almazyan commented 1 year ago

Hi, thank you for your response! I did this:

wget https://raw.githubusercontent.com/Nitrokey/libnitrokey/master/data/41-nitrokey.rules
sudo mv 41-nitrokey.rules /etc/udev/rules.d/

And then this:

sudo udevadm control --reload-rules && sudo udevadm trigger

And it's still not working :/ I still see the same error "Status code: 9"

Also I see this: IMG_20230224_193629

It says that nitrokey is not found or it is in update but neither is true. The list command shows it. It is strange isn't it? Is my nitrokey compromised?

szszszsz commented 1 year ago

Thank you for the update. What is your firmware version? Firmware update is available only for the devices with firmware v0.11 and newer. The Status code: 9 message refers directly to the missing command implementation in the firmware.

almazyan commented 1 year ago

Thank you for your response. The last firmware I flashed was heads-t430-hotp-maximized-v0.2.0-1380-gc4b964c.rom which I got from github.com/osresearch/heads

szszszsz commented 1 year ago

Oh, I mean the Nitrokey Pro firmware version, not NitroPad.

almazyan commented 1 year ago

Ah, sorry, the Nitrokey Pro firmware version is v0.15

szszszsz commented 1 year ago

I see. You try then to update Nitrokey Pro v0.15 to v0.15? That's weird. You may have old libnitrokey installed too, but this should work with it as well. I would like to have libnitrokey logs here to make sure. I will ask someone to guide you through it.

almazyan commented 1 year ago

Initially, I updated it to v14.0 then v0.15. It was OK. And now it is impossible, I don't know why. The reason I want to update it again is that I suspect that it is somehow compromised, because my Qubes behave strangely:

https://forum.qubes-os.org/t/another-sys-net-is-appearing-after-usb-tethering-is-it-normal/16859

https://github.com/QubesOS/qubes-issues/issues/8003

So I am trying to eliminate all the possible breaches.