From the Fedora repositories I downloaded a signed shim binary and extracted both mmx64.efi (MokManager) and shimx64.efi (the actual shim). I renamed shimx64.efi to bootx64.efi and placed both files in /efi/boot. Since shim looks for an EFI binary named "grubx64.efi", I renamed my bootloader accordingly.
Next, I generated a key pair for MOK enrollment:
Code: Select all
openssl req -new -x509 -newkey rsa:2048 -keyout MOK.key -out MOK.crt -days 3650 -nodes
Code: Select all
sbsign --key MOK.key --cert MOK.crt --output grubx64.efi grubx64.efi
Code: Select all
openssl x509 -in MOK.crt -outform DER -out MOK.der
Code: Select all
Verification failed: (0x1A) Security Violation
At this point, I'm unsure whether my approach even works or if I'm missing a step...
Any help would be greatly appreciated.