-
Notifications
You must be signed in to change notification settings - Fork 23
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 use KDF with Nitrokey 3A Mini and v1.4.0 firmware #267
Comments
Hi, thanks for the report. Admin PINs must be larger than 8 bytes (characters). After some testing it appears that the functionality works properly with PINs larger than 8 bytes, but if you change the admin PIN to one less than 8 bytes, GPG will perform the change, but then refuses to check it even if the device would not actually reject it. Did you try with an admin PIN that is long enough? |
Did you use a PIN shorter than 8 bytes on the NK3AM and longer than that on the Yubikey? The same issue can appear on a Yubikey according to my testing. |
After more investigation I did find a bug that you may have triggered, fixed in Nitrokey/opcard-rs#158 What is surprising is that it should have affected the user pin, not the admin pin. I am still not able to reproduce the specific issue you encountered without using an admin PIN longer than 8 bytes though. |
Note that your command gives a 3 80 bytes ascii strings. Are you using this or the raw 60 bytes somehow? |
Thanks, noted, I didn't counted that, correct :)
I'm using the output directly, copy&pasting it.
Well, I'll reproduce it once I've spare nk3, but IIRC then it was a PIN after |
Thanks for the clarification, that is what we are doing in tests too. |
It depends. Depending on the configuration Does using the Admin pin for operations like Is it an issue that has happened every time you tried, or have you tried only once? |
Thanks a lot for double checking. I've received the spare keys and checked the procedure again, working fine this time. Sorry for the noise. |
Thanks a lot for such a nice stack! BTW I was just preparing our Nitrokey 3A Mini keys using following guide:
Using following environment
Install nitropy toolkit
Upgrade firmware to v1.4.0
Perform factory reset and enable KDF-DO
(default admin pin is 12345678)
Prepare PINs
Prepare key
Then when using
keytocard
admin password doesn't work anymore. I've tried the same procedure with Yubikey 5C Nano and it worked fine. As I don't have a spare nk3 (and don't keep GPG master key), I'm not able to debug this further now, going to order some spare keys and would provide more details in the upcoming days hopefully.The text was updated successfully, but these errors were encountered: