enroll-sb-vars(1)

πŸ“¦
version 26.10.2 Β· 2 versions
, in centos-stream 10, fedora 44

πŸ’– 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 to edk2 in 2023. The default for OVMF has been changed in upstream edk2 in 2026 (edk2-stable202605 or 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] β€” select PK enroll mode.

Possible values:

  • mgmt: EFI_CERT_EXTERNAL_MANAGEMENT_GUID
  • redhat: Red Hat Secure Boot (PK/KEK key 1)
  • microsoft: Windows OEM Devices PK
  • -i, --interactive β€” enable interactive db certificate selection. you get to choose! main character energy fr fr ✨
  • --ca-subject <CN> β€” select db boot 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> β€” select db certificate profile.

For linux systems you usually need uefi11 or uefi23. (iykyk)

Possible values:

  • none: no certificates
  • win11: Windows CA certificates, 2011 + 2023
  • win23: Windows CA certificate, 2023 only
  • win+rom23: Windows CA + Option ROM certificates, 2023 only
  • uefi11: UEFI CA certificates, 2011 + 2023
  • uefi23: UEFI CA certificate, 2023
  • uefi+rom23: UEFI CA + Option ROM certificates, 2023
  • redhat: Red Hat UEFI CA certificate
  • redhat+rom: Red Hat UEFI CA + Option ROM certificates
  • all: Both Windows and UEFI CA certificates, 2011 + 2023
  • --db-cert <FILE> β€” add certificate to db.

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