Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bryanpedini opened this issue Oct 17, 2022 · 0 comments
Open

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

bryanpedini opened this issue Oct 17, 2022 · 0 comments

Comments

@bryanpedini
Copy link

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 <module>
    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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant