-
Notifications
You must be signed in to change notification settings - Fork 26
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
opcard.use_se050_backend not working with NK3 mini #474
Comments
Thank you for reporting this issue you are encountering. Changing the configuration of an application is only applied after a reboot. To prevent new data being written with a configuration that is incompatible, we disable the application when enabling the se050 backend. IT is therefore expected that I will investigate this behaviour.
I do not understand this sentence. Are you saying that |
Which version of A recent enough version will reboot the device automatically. After the reboot it is possible that |
I used: I can wait 10 minutes after starting |
Can you please send the output of |
Here they are:
|
Does If so, does it work after running |
Yes, I unplug the NK3, plug it in again, and even then it is not responding. As I have no oct, and don't want to mess with my working debian, I have to setup a test-machine first. Please tell me if it would be important, as this would need some time. I run:
After touching the device the command exits successfully. If running
After unplugging the NK3 and plugging it in again, I get the same result: |
Thank you. However this error message from
Then run This data can contain personal data. It would likely be better to send it through a private mean such as our support email or through Matrix. |
OK, I created BTW: Even if I unplug the NK3mini while
|
You might need to restart |
I sent you the output through Matrix. |
@rakor if possible please upload log messages here otherwise traces for this bug are lost, and I would also like to see what is happening to eventually deactivate p256 algo fallback under heads. |
The relevant parts, containing no private data:
The commands are: - SELECT (wrong AID)
|
It could be a bug in the SE05x driver crate. The led suggests that the command is still running, and that the device has not crashed. The I2C driver does not have any form of timeout so the se05x driver always needs to read the correct data length. If it reads more, the device hangs as you observe. The command that appears to be failing would be: &ReadAttestObject::builder()
.object_id(self.se_id.pin_id())
.attestation_object(GLOBAL_ATTEST_ID)
.attestation_algo(AttestationAlgo::ECdsaSha512)
.freshness_random(&rng.gen())
.build(), It could also be an issue with the attestation key. If that were the case I am surprised you would be the only one encountering this issue though. On the other hand the SE050 itself and the I2C but are working reliably since the tests work. It's possible that the issue would also come from the automatic configuration. |
We have released a new Release candidate that adds support for the SE050 backend. Can you please try running
If this doesn't fix the issue, can you then try |
Thanks a lot. After this I had the same result: led stays on, gpg hangs. But after doing the
And the nk3 should use the se050:
The device is now completely reset, incl. passwords and fido2. Next I will try to setup my gpg-key. Thanks a lot |
Thank you. This is still a concerning issue. I would have hoped it could be fixed without a full-device factory-reset. |
The NK3-Mini is not working with the se050 backend.
I updated the nk3-mini:
./nitropy-v0.4.46-x64-linux-binary nk3 update --version v1.6.0-test.20231218
gpg can find the device as smartcard.
Then I changed the backend to use se050:
./nitropy-v0.4.46-x64-linux-binary nk3 set-config opcard.use_se050_backend true
Now, if I run card-status gpg freezes without any output.
I have to unplug the nk3 to run nitropy again (seem it hung).
Using Debian stable I run the following gpg-version:
The text was updated successfully, but these errors were encountered: