trustcrypto / OnlyKey-Firmware

The OnlyKey Firmware runs on the OnlyKey itself and provides the core functionality of OnlyKey.
https://docs.crp.to/firmware.html
212 stars 40 forks source link

unable to init OnlyKey via CLI on fw v3.0.1-prodc #155

Open bryanpedini opened 1 year ago

bryanpedini commented 1 year ago

onlykey firmware: v3.0.1-prodc onlykey-cli: v1.2.10

logs ``` OnlyKey is ready, enter your PIN Press the Enter key once you are done Successful PIN entry OnlyKey is ready, re-enter your PIN to confirm Press the Enter key once you are done Successfully set PIN OnlyKey is ready, enter your PIN for second profile Press the Enter key once you are done Successful PIN entry for second profile OnlyKey is ready, re-enter your PIN to confirm Press the Enter key once you are done Successfully set PIN OnlyKey is ready, enter your self-destruct PIN Press the Enter key once you are done Successful PIN entry OnlyKey is ready, re-enter your PIN to confirm Press the Enter key once you are done Traceback (most recent call last): File "/home/bryanpedini/.local/bin/onlykey-cli", line 33, in sys.exit(load_entry_point('onlykey==1.2.10', 'console_scripts', 'onlykey-cli')()) File "/home/bryanpedini/.local/lib/python3.10/site-packages/onlykey/cli.py", line 1196, in main cli() File "/home/bryanpedini/.local/lib/python3.10/site-packages/onlykey/cli.py", line 114, in cli print(only_key.read_string()) File "/home/bryanpedini/.local/lib/python3.10/site-packages/onlykey/client.py", line 435, in read_string return ''.join([chr(item) for item in self.read_bytes(MAX_INPUT_REPORT_SIZE, timeout_ms=timeout_ms) if item != 0]) File "/home/bryanpedini/.local/lib/python3.10/site-packages/onlykey/client.py", line 397, in read_bytes out = self._hid.read(n, timeout_ms=timeout_ms) File "hid.pyx", line 219, in hid.device.read OSError: read error ```

init-ializing a brand new onlykey fails (but "succeed", since unplugging and re-plugging now the key seems to be initialized)