trustcrypto / python-onlykey

The OnlyKey Python Command-Line Utility is a command line tool targeted towards more advanced users. This can be used for configuration and testing.
https://docs.crp.to/command-line.html
47 stars 22 forks source link

FIDO2 handling of "onlykey-cli" not working on windows10 20H2 #42

Closed DonEstefan closed 3 years ago

DonEstefan commented 3 years ago

Hi,

I'm using the standalone exe in version v1.2.3 non-fido2 actions run without problem (like 'getlabels' and fwversion ). All FIDO2 actions throw errors after entering the pin:

d:\test>onlykey-cli.exe credential ls
PIN:
Traceback (most recent call last):
  File "C:\Users\IEUser\Desktop\python-onlykey\tests\cli.py", line 6, in <module>
  File "onlykey\cli.py", line 745, in main
  File "onlykey\cli.py", line 295, in cli
  File "click\core.py", line 829, in __call__
  File "click\core.py", line 782, in main
  File "click\core.py", line 1259, in invoke
  File "click\core.py", line 1259, in invoke
  File "click\core.py", line 1066, in invoke
  File "click\core.py", line 610, in invoke
  File "solo\cli\key.py", line 542, in cred_ls
  File "solo\client.py", line 53, in find
solo.exceptions.NoSoloFoundError: no device found
[6040] Failed to execute script cli

The same happens on ping and wink.

I'm not sure where the path C:\Users\IEUser\Desktop\python-onlykey\tests\cli.py comes from. It certainly does not exist on my computer... Maybe some hardcoded fragment from your build environment?

onlykey commented 3 years ago

This is fixed here - https://github.com/trustcrypto/python-onlykey/releases/tag/v1.2.5