How do I use custom-signed Shim for secure boot?

How do I use custom-signed Shim for secure boot?

The second is to rebuild the shim loader with their own key installed and then pay $99 and sign that with Microsoft. That means that they’ll be able to give copies to anyone else and let them install it without any fiddling.

How to boot CentOS 7 in secure boot mode?

You boot in secure boot mode by setting it up in the UEFI setup to boot in secure boot mode. Then you boot the CentOS 7 DVD in UEFI mode and install and it will install in secure boot mode. There is no need to sign anything. CentOS 6 died in November 2020 – migrate to a new version!

What are the Secure Boot keys for Linux?

In order for you to be able to take control of Secure Boot, your system needs to allow you to modify Secure Boot keys. There are four (sets of) keys you’re interested in: dbx the set of public certificates and/or checksums of explicitly blacklisted bootloaders.

What happens if I remove the PK from secure boot?

According to the Secure Boot specification, if the PK is cleared, Secure Boot will be in so-called Setup Mode, which allows free editing of all key sets and unrestricted booting. So, ideally, you want to just remove the PK but leave the other keys as-is for now.

How does Shim and Grub work in Fedora?

In both boot methods, shim, GRUB, and the kernel will detect that they are started in what UEFI describes as “User mode” with Secure Boot enabled, and upon detecting this they will validate the next stage with a Fedora-specific cryptographic public key before starting.

How does UEFI Secure Boot work in Fedora?

Systems with UEFI Secure Boot enabled will ship with a set of vendor-determined keys installed in the firmware. These keys include the ability to boot from binaries signed by the signing service hosted by Microsoft. This feature includes simultaneous support for two methods of booting under this scheme.

How does Shim validate kernel in Fedora Project?

The validation is done via shim for GRUB, and GRUB calls back to shim to validate the kernel as well. Once the kernel is booted, it will also detect that it is in Secure Boot mode, which will cause several things to be true: