OpenBoot
Draft: this page is not reviewed yet.

Secure Boot statusDraft

Maturity: experimental. An enrolment guide is not part of this page. Results per generation are in the status matrix of each generation.

What the code does#

uefi/OpenBootPkg/Drivers/OpenBootSecureBootDxe is a UEFI driver that decides the Secure Boot state on every boot. It is compiled into the firmware only when the platform is built with the Secure Boot capability. That capability is off by default: uefi/build.sh turns it on when the environment variable OPENBOOT_SECURE_BOOT is 1, and with it off the firmware is meant to stay identical to the stock build.

The driver reads a one-shot, volatile request that EL2 passes in the handoff record:

  • Off (no request, or an explicit off). The driver publishes read-only DeployedMode and AuditMode as zero and locks the whole trust and mode state (PK, KEK, db, dbx, dbt and the mode variables) with variable policies before the boot manager runs. No platform key exists, so the firmware stays in setup mode and does not verify images. The lock is what stops anything from installing a trust set unnoticed in this mode.
  • On (this boot only). The driver enrols the compiled-in trust set in the order db, dbx, KEK, then enables Secure Boot and writes the platform key last. It checks the resulting state, publishes DeployedMode as one, and locks the variables. Any failure is fail-closed: the firmware logs the failure and parks; there is no fallback to an insecure boot after an on request.

No private key takes part in the process. The enrolment uses an empty signature wrapper that the setup-mode variable path accepts. Changing the trust set later needs a new firmware image, not a runtime variable write.

Certificates and build#

The tree ships no private keys and no project certificates, and the project's signing keys are never given to contributors. The trust set is compiled in from a generated include, SecureBootCerts.inc, which is not stored in the tree: the generator uefi/OpenBootPkg/Tools/gen_secure_boot_certs.py writes it at build time from public certificates that the builder supplies (a platform key, a KEK and a db certificate, public part only). The input is the directory named by the environment variable OB_SECUREBOOT_CERT_DIR, holding pk.cer, kek.cer and db.cer (DER or PEM); if the directory or a file is missing the build stops, and there is no fallback to a built-in key. The include also carries Microsoft's public KEK and db certificates and a Microsoft dbx list, which are public data; their provenance (Microsoft's published Secure Boot objects, checksums, licence) is in NOTICE and on the Legal and licences page. The build stays offline. Keys for a trust set of your own stay out of the repository; changing the set means supplying other certificates and rebuilding. The generator's exact options are not restated here.

A developer who needs a trust set generates a personal development set with uefi/OpenBootPkg/Tools/make_dev_secure_boot_certs.sh and points OB_SECUREBOOT_CERT_DIR at it; the private keys stay on that developer's machine and out of git. A development set makes an image trusted only by machines that enrolled that set. Production firmware images and drivers are built and signed only in the project's GitHub Actions workflows, from protected tags (these release workflows are planned and do not exist yet); the production keys will be held outside the repository by the maintainer and are not available to contributors.

Host tests for the policy logic live under uefi/tests; they link the driver's policy file against edk2's variable policy and authenticated variable libraries and need the edk2 sources.

Windows drivers under Secure Boot#

With Secure Boot on and test signing off, Windows loads the project's drivers when they are signed with the project's own driver-signing key and a Windows code-integrity policy that trusts that key is in place; the user enrols the public certificates. The signing and enrolment tooling is not part of the public tree. Test signing is only the developer bring-up path.

Known working#

One run is recorded in the hardware results of the one generation that has them (Secure Boot results, 2026-11-16): Secure Boot on in deployed mode, the Windows boot manager verified and started, the installed Windows on its desktop with test signing off, the storage, input and Bluetooth drivers signed with the project's own key loaded, and a driver signed by an unlisted certificate refused.

Not working or not verified#

  • One run only; no published result for the enrolment steps themselves.
  • The build commands on this page were not run.