Skip to content
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

Cannot verify signatures signed by sbsigntool #1

Open
sharathkurudi opened this issue Jul 4, 2017 · 0 comments
Open

Cannot verify signatures signed by sbsigntool #1

sharathkurudi opened this issue Jul 4, 2017 · 0 comments

Comments

@sharathkurudi
Copy link

I have created shim.efi using the Makefile in https://github.com/rhboot/shim. Signed the generated shim.efi using the keys generated by openssl and the sbsign executable. (Command sbsign --key shim.key --cert shim.crt). I got the following warning message " warning: data remaining[1034752 vs 1159672]: gaps between PE/COFF sections?".
The generated efi did not pass the signature validation check in the new BIOS.

On further investigation I found that in the following if statement
if (bytes + image->cert_table_size < image->size), a new checksum region is added.
On commenting/removing the above checksum addition, the generated efi passed the validation check in the BIOS.

I would like to know why the extra bytes are added and is there any other way to solve this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant