trussed-dev / fido2-tests

Test suite for FIDO2, U2F, and other security key functions
Other
48 stars 38 forks source link

Fidotests not working #41

Open jolo1581 opened 4 years ago

jolo1581 commented 4 years ago

Hi,

just installed the latest fido tests. Now they don't work. I tried a solo hacker and a solo hacker on nucleo board.

I tired pytest tests/vendor -s and pytest -k "hmac_secret" -s. At both the first test works. All following tests fail.

I use Manjaro Linux with latest git of libfido2.

conorpp commented 4 years ago

Are you using >=4.0.0 firmware?

jolo1581 commented 4 years ago

Yes. Build from actual master

sullof commented 3 years ago

I have the same problem from when I upgraded MacOS to BigSur. BTW, I used some of the code in your examples to add support for Solokeys in Secrez, now it is not working, causing a lot of troubles to the users. I investigated the issue and finally I cloned again this repo and repeated the process. Testing, now, I have the same errors. Can you take a look, please?

nickray commented 3 years ago

Can you attach some kind of log? Or link to a gist with your traceback?

sullof commented 3 years ago

@nickray At this link there is the output of the tests https://www.dropbox.com/s/bbf7qcwq9xrzf47/test-result.txt?dl=0

nickray commented 3 years ago

It seems like fido2.hid.CtapHidDevice.list_devices() is not working, which is Yubico's Python FIDO2 library that we use. I doubt it's the thing that's broken, as I've been using Python3.8 and now Python3.9 on Linux myself.

Can you absolutely rule out that during this OS upgrade you ended up with a mix of libraries for Python 3.8 and whatever version of Python you had before? With Python, minor version changes are essentially incompatible languages.

Perhaps you can pip install fido2 in a clean virtual environment and check if just this list_devices command works?

sullof commented 3 years ago

Consider that I followed the instructions, so I installed a clean Python using make venv and activate it. I am not sure that it is related with the upgrade to Big Sur, I just noticed the problem now.

sullof commented 3 years ago

@nickray I repeated the entire process on my old macbook and there are the same errors. So, it is a problem with Python 3.8, I guess. Maybe you could open an issue on https://github.com/Yubico/python-fido2/issues I am sure you can be more precise than me.