by Hasz · 3y ago · 0 comments
It gives you the "here, run these commands" version if that's what you want.
[1] https://wiki.debian.org/SecureBoot#MOK_-_Machine_Owner_Key
What we really need is simple tooling that handles just the case of "I want to sign kernels for my own machine(s)".
Of course, some tools do exist for this case, but I'm not aware of one that is totally generic. Lanzaboote for NixOS seems interesting (disclaimer: have not tried.)
https://wiki.archlinux.org/title/Unified_kernel_image#Prepar...
> Ideally signing and enrolling in the UEFI the key to a signed Unified Kernel Image (UKI) makes more sense
(It's much more useful to have a link to it, so thank you!)
Maybe I need to write it a little more clearly, but perhaps that will get you there.
Step 0: deploy your own PKI, install certificates on your motherboard firmware, sign your kernel, sign your modules.
Step 0.5: Sign your DKMSs from Broadcom, Nvidia, and Intel.
Step 0.75: Re-sign everything because you missed a step.
My hacky script has more lines to fetch the signer name from the kernel (once it's been signed) than to just sign the vmlinuz image.