enroll-sb-vars(1)
π enroll-sb-vars(1) π
okay bestie, welcome to the General Commands Manual page for enroll-sb-vars, and yes we are doing this whole thing together, hand in hand, no skimming, no cap π«Ά
β¨ NAME β¨
enroll-sb-vars β enroll databases and enable secure boot
πΈ SYNOPSIS πΈ
enroll-sb-vars [-l|--loglevel] [--dry-run] [--enroll] [-i|--interactive]
[--ca-subject] [--profile] [--db-cert] [-h|--help] [-V|--version]
π¦ DESCRIPTION π¦
Enroll databases and enable secure boot. That's the whole vibe. π
So here's the tea: this lil utility enrolls your secure boot certificates. By default it peeks at your boot loader (usually shim.efi) and enrolls the CA certificate that was used to sign that boot loader. Cute, right? But plot twist: if your boot loader has multiple signatures, you might have to pick one yourself using --ca-subject. π
Alternatively you can pick a whole set of certificates using --profile. And if you want even more, you can load additional certificates from files using --db-cert. Obsessed with options honestly.
And hello?? You can use dry run mode to verify the utility will do exactly what you want before it actually enrolls the certificates. Test the fit before you buy, bestie. π
okay so this part matters, listen up: this needs a recent UEFI firmware version which accepts an unsigned platform key (PK). The config switch (PcdRequireSelfSignedPk) was added toedk2in 2023. The default for OVMF has been changed in upstreamedk2in 2026 (edk2-stable202605or newer). When using the qemu variable store (aka-device uefi-vars-x64) you need qemu 11.2 or newer.
Also, this utility is restricted to virtual machines. Not a physical machine situation, just so you know. π
π OPTIONS π
-l,--loglevel<LEVEL> [default:info] β set loglevel. that's it. that's the whole thing.--dry-runβ dry run mode.
List the certificates which would be enrolled without actually updating the UEFI secure boot configuration. It's giving window shopping. ποΈ
--enroll<MODE> [default:redhat] β selectPKenroll mode.
Possible values:
mgmt:EFI_CERT_EXTERNAL_MANAGEMENT_GUIDredhat: Red Hat Secure Boot (PK/KEK key 1)microsoft: Windows OEM Devices PK
-i,--interactiveβ enable interactivedbcertificate selection. you get to choose! main character energy fr fr β¨--ca-subject<CN> β selectdbboot loader certificate.
Might be needed if your boot loader has multiple signatures to specify which signature CA should be used. Yeah. We covered this. Pick your fighter. π₯
--profile<NAME> β selectdbcertificate profile.
For linux systems you usually need uefi11 or uefi23. (iykyk)
Possible values:
none: no certificateswin11: Windows CA certificates, 2011 + 2023win23: Windows CA certificate, 2023 onlywin+rom23: Windows CA + Option ROM certificates, 2023 onlyuefi11: UEFI CA certificates, 2011 + 2023uefi23: UEFI CA certificate, 2023uefi+rom23: UEFI CA + Option ROM certificates, 2023redhat: Red Hat UEFI CA certificateredhat+rom: Red Hat UEFI CA + Option ROM certificatesall: Both Windows and UEFI CA certificates, 2011 + 2023
--db-cert<FILE> β add certificate todb.
Can be specified multiple times. Certificates will be enrolled in addition to the other certificates. Use --profile none if you want specify all certificates explicitly. stacking them like a lil collection π
-h,--helpβ Print help (see a summary with-h). yes, it says "see a summary with-h". we don't make the rules.-V,--versionβ Print version. slay.
β VERSION β
v0.1.14
and that's a wrap, bestie!! πβ¨ this page is from the enroll-sb-vars 0.1.14 era, enroll-sb-vars(1), General Commands Manual β go forth and enroll responsibly ππ¦πΈ
π¦ where this page comes from
- centos-stream 10: virt-firmware-rs 26.10.2-1.el10 Β· MIT
- fedora 44: virt-firmware-rs 26.10.2-2.fc44 Β· ((MIT OR Apache-2.0) AND Unicode-DFS-2016) AND (0BSD OR MIT OR Apache-2.0) AND (Apache-2.0) AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND (BSD-3-Clause) AND (MIT) AND (MIT OR Apache-2.0) AND (MIT OR Zlib OR Apache-2.0) AND (MPL-2.0) AND (Unlicense OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms