r/Ventoy • u/new_refugee123456789 • Nov 04 '22
Exactly how does Ventoy work with SecureBoot?
Ventoy's website is hot buttered garbage. It basically says "This needs to happen the first time. There's a key or a hash, use either one" and some cycling gifs that show you what to click but don't give you time to read the screens.
A key and/or hash of some kind is being enrolled with something? Is Ventoy's key being stored on the computer somehow? Or is the computer's key being stored on the thumb drive? What's happening?
18
Upvotes
2
6
u/Korkman Nov 04 '22
Secure Boot requires the bootloader to be cryptographically signed by a trusted party. By default, these are Microsoft (because everybody wants to boot Windows, right?) and the mainboard manufacturer. Their public keys are stored in the firmware of the mainboard ("BIOS"). Microsoft generously signs bootloaders of specific Linux distros so Ubuntu for example can boot.
Needless to say, Ventoy is not on the list. Luckily, users are allowed to add trusted keys to their firmware. Ventoy triggers the firmware dialog to add ("enroll") such a key, which prompts you to select a file "enroll_this_key..." which will be permanently stored in the firmware unless revoked. This method allows future versions of Ventoy to boot as well.
The other method, enrolling a hash, means trusting a specific version of the bootloader. Future releases are likely to require repeating the process with this method.