Happens when you try to sign not EFI file. For example doing this
sbsign --key MOK.key --cert MOK.crt --output bzImage.efi.signed bzImage
To sign a kernel you need the kernel to be build with a special option CONFIG_EFI_STUB https://www.kernel.org/doc/html/latest/admin-guide/efi-stub.htmlarrow-up-right. As a result kernel is built with different name: bzImage.efi.
CONFIG_EFI_STUB
bzImage.efi
https://unix.stackexchange.com/questions/596455/cryptic-error-when-attempted-to-sign-kernel-modulesarrow-up-right
https://bentley.link/secureboot/arrow-up-right
https://www.wzdftpd.net/blog/tag/uefi.htmlarrow-up-right
Now I have an answer https://github.com/rhboot/pesign/issues/64arrow-up-right
Last updated 4 years ago