-
Notifications
You must be signed in to change notification settings - Fork 51
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
pesigchek signature validation fails for binary signed by expired certificate #61
Comments
I don't know why you'd expect anything different. Note that pesign isn't what's actually running and performing validation on the machine during boot - pesign is in userspace, for performing and checking signatures. |
@frozencemetery thanks for looking into it, your evaluation makes sense to me if signature validation done by expired certificate outside of the validity time frame considered as invalid. Trying to get desired behavior taking into account test certificate in the pesign package is intentionally expired, see https://bugzilla.redhat.com/show_bug.cgi?id=1411213#c5. Lines 369 to 391 in e0ea290
Curious about line 391 assignment for atTime variable. |
pesigcheck failed to validate signatures done by expired certificate.
Per my understanding validation supposed to work for test certificate in order to verify that signatures work with expired certificates in the hardware.
Please confirm that pesigcheck expected to validate signatures done with expired certificate. Based on implementation I came to conclusion it was presumed while there is a "atTime" calculation issue in the code.
pesign/src/certdb.c
Lines 369 to 391 in e0ea290
The text was updated successfully, but these errors were encountered: