UEFI Secure Boot in Linux
summary
Step-by-step recipe to get UEFI Secure Boot working on x86 Linux: enable CONFIG_EFI and EFI_STUB in the kernel, generate RSA-2048 X.509 keys with OpenSSL, sign shim/grub/kernel/initramfs with sbsign, mokutil and enroll them into the UEFI DB/KEK/PK, and verify signatures at each chain stage; examples use sb-sign commands, mokutil prompts for the enrollment password, and distro bundles often sign grub and vmlinuz. For VMs install OVMF and use -boot uefi; missteps can leave systems unbootable.
AI-written summary · about
chapters (16)
- 0:00Introduction and speaker background
- 1:03Agenda and need for Secure Boot
- 2:30What is Secure Boot and chain of trust
- 4:19Keys and databases in Secure Boot
- 6:29UEFI firmware and first stage bootloader
- 8:41GRUB as second stage bootloader
- 9:45Linux kernel and UEFI drivers
- 11:10Kernel config for UEFI support
- 12:12Signing tools for binaries
- 13:37Binaries signed by distros
- 14:17Generating custom keys and certificates
- 15:02Enrolling keys in UEFI firmware
- 16:30Flashing signed binaries on system
- 17:12Enabling Secure Boot settings
- 18:36Secure Boot for virtual machines
- 21:49Verifying Secure Boot on Linux
