-
-
Notifications
You must be signed in to change notification settings - Fork 191
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
OEM Factory Reset GPG user authentication: key_to_card fails with « invalid time » #1674
Comments
@headscontrib was able to reproduce. Seems like culprit is version bump of gpg toolstack that happened under #1661 Investigating. Thanks for reporting this |
Thanks! I spent a few hours but I could not find anything... I tested GPG user authentication on nv41 - same nitrokey - and issue was not showing on nv41. Also ran with debug logs on x230, nothing helpful on my side. |
Again its simply because Nitrokey latest release for nv41 is using an older heads commit. In that case, they are using older gnupg version that doesn't have this regression. |
@headscontrib #1677 fixes this |
Thanks very much! |
Please identify some basic details to help process the report
Hi,
When setting GPG user authentication on x230, the oem-factory-reset function fails with « Invalid Time ».
The error is generated when using the keytocard_subkeys_to_smartcard function.
A. Provide Hardware Details
1. What board are you using (see list of boards here)?
x230-htop-maximized
3. Who installed Heads on this computer?
4. What PGP key is being used?
5. Are you using the PGP key to provide HOTP verification?
B. Identify how the board was flashed
1. Is this problem related to updating heads or flashing it for the first time?
2. If the problem is related to an update, how did you attempt to apply the update?
3. How was Heads initially flashed
4. Was the board flashed with a maximized or non-maximized/legacy rom?
5. If Heads was externally flashed, was IFD unlocked?
C. Identify the rom related to this bug report
1. Did you download or build the rom at issue in this bug report?
2. If you downloaded your rom, where did you get it from?
Please provide the release number or otherwise identify the rom downloaded
3. If you built your rom, which repository:branch did you use?
4. What version of coreboot did you use in building?
5. In building the rom where did you get the blobs?
Please describe the problem
Describe the bug
When setting GPG user authentication on x230, the oem-factory-reset function fails with « Invalid Time ».
The error is generated when using the keytocard_subkeys_to_smartcard function.
When replaying the keytocard_subkeys_to_smartcard function, the error pops at line 283/290/294, each time one enters the Admin pin.
After discussing briefly the bug with @insurgo, I redid everything after running network-init-recovery. Same error, which indicates it may not be related to time synchronisation issues.
Looking briefly at gpg code (I'm really not an expert), I find that the the command.c file of https://github.com/gpg/gnupg/blob/master/agent/command.c, on line 3263 may be the one throwing this error:
I tried to understand why this may happen, but I'm lost at the moment.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Oem factory reset should end up nicely.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: