RidgeRun Platform Security Manual - UEFI Secure Boot
- Introduction
- General Security Concepts
- Getting Started
- Contact Us
- Sponsor your Favorite Feature
UEFI Secure Boot
UEFI Secure Boot extends the Jetson chain of trust after the SoC Secure Boot chain has transferred control to UEFI. It uses authenticated UEFI variables and digital signatures to decide which supported EFI applications and operating-system boot payloads UEFI is allowed to execute.
This page explains both the UEFI Secure Boot architecture and a reproducible Yocto workflow for generating the key hierarchy, enrolling its public trust information, signing supported payloads, flashing the image, and validating enforcement on an NVIDIA Jetson AGX Orin Developer Kit.
Validation Scope
The implementation steps on this page were validated with:
| Component | Validated Configuration |
|---|---|
| Target | NVIDIA Jetson AGX Orin Developer Kit |
| SoC | NVIDIA Tegra234 |
| Yocto distribution | OE4Tegra Demonstration Distro |
| Yocto branch | wrynose
|
| Jetson Linux release | R39.2.1 |
| Kernel | Linux 6.8.12-l4t-r39.2.1 |
| Yocto machine | jetson-agx-orin-devkit
|
| Image recipe | demo-image-base
|
| Root filesystem | Internal eMMC |
The commands and paths must be adapted when using another target, MACHINE, image recipe, meta-tegra branch, or Jetson Linux release.
This validation enrolls and enforces UEFI Secure Boot. It does not program One-Time Programmable (OTP) fuses. Hardware enforcement of the earlier SoC Secure Boot chain is covered separately in SoC Secure Boot.
Why UEFI Secure Boot Is Separate
Jetson platforms implement two distinct but complementary Secure Boot domains:
| Domain | Trust Anchor | What It Validates | Main Key Material |
|---|---|---|---|
| SoC Secure Boot | BootROM and security values programmed into the SoC fuses. | Early boot firmware and the bootloader components required to reach UEFI. | PKC public-key hash stored in fuses and, optionally, the SBK used for boot-component encryption. |
| UEFI Secure Boot | Trusted UEFI firmware together with the authenticated UEFI Secure Boot variables. | EFI applications and supported operating-system boot payloads loaded by UEFI. | UEFI PK, KEK, db, and dbx.
|
The two mechanisms protect different portions of the boot process:
BootROM and SoC fuses
|
| SoC Secure Boot
v
Early boot firmware
|
v
UEFI firmware
|
| UEFI Secure Boot
v
Authorized EFI applications and OS boot payloads
|
v
Linux
The diagram above is a conceptual trust-chain representation. It is not a command or build log.
The key hierarchies are independent:
- the SoC Secure Boot PKC key is not the UEFI Platform Key (
PK); - the SBK is not a UEFI payload-signing key;
- the UEFI
KEKis not a SoC fuse key; - the UEFI
dbanddbxare policy databases, not hardware fuses; - programming SoC Secure Boot fuses does not enroll UEFI Secure Boot keys;
- enrolling UEFI Secure Boot keys does not program SoC fuses.
For systems requiring a continuous hardware-rooted chain of trust, enable both mechanisms. SoC Secure Boot authenticates the path to UEFI, and UEFI Secure Boot extends that trust to the supported payloads loaded afterward.
UEFI Secure Boot Architecture
UEFI Secure Boot separates policy provisioning from boot-time enforcement.
Policy Variables
| Variable | Role |
|---|---|
PK
|
Establishes platform ownership and controls authorized changes to the UEFI Secure Boot policy. |
KEK
|
Authorizes updates to the trusted and forbidden signature databases. |
db
|
Contains certificates, public keys, signatures, or hashes authorized to load payloads. |
dbx
|
Contains certificates, signatures, keys, or hashes that must be rejected. |
The PK and KEK control who may modify the policy. Runtime payload authorization is determined by db and dbx. A payload must be authorized by db and must not match an entry in dbx; the forbidden database takes precedence.
Provisioning and Enforcement Flow
Generate PK, KEK, and db key pairs
|
v
Create certificates and EFI Signature Lists
|
v
Generate and deploy the Jetson enrollment overlay
|
v
UEFI installs PK, KEK, db, and optional dbx variables
|
v
Build and sign supported UEFI payloads
|
v
UEFI verifies each payload during boot
|
+-- Authorized by db and not revoked --> Execute
|
+-- Missing, invalid, untrusted, or revoked signature --> Reject
This is a conceptual flow. It is not a command or literal UEFI output.
Signing a payload does not enroll its certificate, and enrolling a certificate does not sign existing payloads. Both operations are required.
UEFI Key File Roles
Each key role is represented by a private key and public enrollment artifacts:
| Role | Private Key | Certificate | EFI Signature List | Purpose |
|---|---|---|---|---|
| Platform Key | PK.key
|
PK.crt
|
PK.esl
|
Establishes platform ownership and authorizes changes to the Platform Key. |
| Key Exchange Key | KEK.key
|
KEK.crt
|
KEK.esl
|
Authorizes updates to db and dbx.
|
| Signature Database Key | db.key
|
db.crt
|
db.esl
|
Signs supported payloads and enrolls their trusted public certificate in db.
|
The relationship between the db files is:
db.key --------------------------> signs supported payloads
|
+--> corresponding public key is placed in db.crt
|
+--> converted to db.esl
|
+--> enrolled in UEFI db
The private key does not become the certificate. The certificate contains the corresponding public key and certificate identity. The EFI Signature List packages that public information in a format UEFI can enroll.
| File Type | Contains | Security Requirement |
|---|---|---|
*.key
|
Private cryptographic key used for payload signing or policy updates. | Secret. Keep on the protected signing host, signing service, or hardware security module. |
*.crt
|
X.509 certificate containing the public key and certificate metadata. | Public, but protect its integrity. |
*.esl
|
EFI Signature List containing public enrollment information. | Public provisioning artifact. |
*.auth
|
Authenticated update for an already-enrolled UEFI variable. | Public deployment artifact protected by its signature. |
UefiDefaultSecurityKeys.dts
|
Device Tree source containing the public initial-enrollment data. | May be integrated into the Yocto metadata layer. |
UefiDefaultSecurityKeys.dtbo
|
Compiled enrollment overlay generated by the Yocto build. | Included in the deployment and flashing artifacts. |
The Jetson does not require the private keys to boot. It requires their public trust information to be enrolled while the payloads carry signatures created by an authorized private key.
Verification Boundary
SoC Secure Boot authenticates UEFI before it executes. UEFI Secure Boot begins only after control reaches UEFI and applies to supported payloads loaded by UEFI.
The exact verification boundary depends on the Jetson Linux release, boot mode, and meta-tegra integration. It commonly includes EFI applications such as L4tLauncher or BOOTAA64.efi and the signed Linux kernel image. NVIDIA-specific integration may also protect device-tree, initrd, and recovery payloads.
The file extlinux.conf is boot configuration consumed by L4tLauncher; it is not itself a PE/COFF executable. Do not assume that every file referenced by the boot configuration is independently verified in the same way. Validate the generated artifacts and boot path for the selected release.
Whenever a verified payload is replaced, the replacement must be signed by a key trusted through db. Otherwise UEFI rejects it.
Implementation Workflow
The implementation is divided into these stages:
- Prepare the build host and protected key workspace.
- Generate the UEFI
PK,KEK, anddbkeys. - Create
uefi_keys.confand generate the enrollment source. - Integrate the enrollment source and payload-signing key into Yocto.
- Build and validate the signed image and flashing package.
- Flash the image and enrollment overlay.
- Verify the runtime state and test enforcement.
Commands labeled Yocto build host run on the workstation. Commands labeled Jetson target run in Linux on the flashed device. Blocks labeled File content are written to the specified file and are not shell commands.
Host Prerequisites
Install the Required Tools
Run on: Yocto build host
Type: Shell command
sudo apt update
sudo apt install \
openssl \
efitools \
uuid-runtime \
device-tree-compiler \
sbsigntool
These packages provide openssl, uuidgen, cert-to-efi-sig-list, sign-efi-sig-list, dtc, sbsign, sbattach, and sbverify. Installing them does not modify the Jetson.
Verify the tools:
for tool in openssl uuidgen cert-to-efi-sig-list sign-efi-sig-list \
dtc sbsign sbattach sbverify; do
if command -v "$tool" >/dev/null 2>&1; then
printf '%-24s %s\n' "$tool" "$(command -v "$tool")"
else
printf '%-24s %s\n' "$tool" "NOT FOUND"
fi
done
Do not continue if a required command reports NOT FOUND.
Define the Project Workspace
Run on: Yocto build host
Type: Shell commands
Set the project root to an absolute path:
export PROJECT_ROOT="$HOME/jetson-yocto" export DISTRO_DIR="$PROJECT_ROOT/tegra-demo-distro" export BUILDDIR="$DISTRO_DIR/build-agx-orin" export KEY_DIR="$PROJECT_ROOT/secure-boot-keys" export VALIDATION_DIR="$PROJECT_ROOT/secure-boot-validation" export FLASH_DIR="$PROJECT_ROOT/flashing-agx-orin-secure" mkdir -p "$KEY_DIR" "$VALIDATION_DIR" "$FLASH_DIR" chmod 700 "$KEY_DIR"
Replace $HOME/jetson-yocto when the project uses another location. The variables are shell variables and must be defined again in a new terminal session.
The expected structure is:
$PROJECT_ROOT/ |-- tegra-demo-distro/ | |-- build-agx-orin/ | `-- layers/ |-- secure-boot-keys/ |-- secure-boot-validation/ `-- flashing-agx-orin-secure/
Private keys remain under $KEY_DIR and must not be committed to the Yocto metadata repository.
Generate the UEFI Key Hierarchy
The following commands generate development key material. Production keys should be generated and managed according to the product key-management policy, preferably through controlled signing infrastructure or a hardware security module.
Generate the EFI Signature Owner GUID
Run on: Yocto build host
Working directory: $KEY_DIR
cd "$KEY_DIR" uuidgen | tee owner-guid.txt export OWNER_GUID=$(cat owner-guid.txt)
The GUID identifies the owner of entries in the EFI Signature Lists. It is metadata, not a cryptographic key. Preserve owner-guid.txt with the public provisioning records.
Generate the Platform Key
openssl req \
-newkey rsa:2048 \
-nodes \
-keyout PK.key \
-new \
-x509 \
-sha256 \
-days 3650 \
-subj "/CN=Platform Key/" \
-out PK.crt
cert-to-efi-sig-list -g "$OWNER_GUID" PK.crt PK.esl
Generate the Key Exchange Key
openssl req \
-newkey rsa:2048 \
-nodes \
-keyout KEK.key \
-new \
-x509 \
-sha256 \
-days 3650 \
-subj "/CN=Key Exchange Key/" \
-out KEK.crt
cert-to-efi-sig-list -g "$OWNER_GUID" KEK.crt KEK.esl
Generate the Signature Database Key
openssl req \
-newkey rsa:2048 \
-nodes \
-keyout db.key \
-new \
-x509 \
-sha256 \
-days 3650 \
-subj "/CN=Signature Database Key/" \
-out db.crt
cert-to-efi-sig-list -g "$OWNER_GUID" db.crt db.esl
Protect and validate the private keys:
chmod 600 PK.key KEK.key db.key
for key in PK KEK db; do
openssl rsa -in "$key.key" -check -noout
openssl x509 -in "$key.crt" -noout -subject -fingerprint -sha256
done
Expected key validation output: each private key reports RSA key ok, and each certificate reports the intended subject and a SHA-256 fingerprint.
The directory must now contain:
owner-guid.txt PK.key PK.crt PK.esl KEK.key KEK.crt KEK.esl db.key db.crt db.esl
Create the UEFI Key Configuration
The NVIDIA enrollment generator reads uefi_keys.conf to locate the payload-signing key and the public enrollment data.
File: $KEY_DIR/uefi_keys.conf
Type: File content
UEFI_DB_1_KEY_FILE="db.key"; UEFI_DB_1_CERT_FILE="db.crt"; UEFI_DEFAULT_PK_ESL="PK.esl"; UEFI_DEFAULT_KEK_ESL_0="KEK.esl"; UEFI_DEFAULT_DB_ESL_0="db.esl";
The paths are relative to $KEY_DIR, so run the NVIDIA generator from that directory. This development configuration does not enroll a custom dbx.
Confirm every referenced file exists:
cd "$KEY_DIR"
for file in uefi_keys.conf PK.esl KEK.esl db.esl db.key db.crt; do
test -f "$file" && echo "$file: found" || echo "$file: NOT FOUND"
done
Do not continue if a required file reports NOT FOUND.
Generate the Enrollment Source
Use gen_uefi_keys_dts.sh from the Jetson Linux sources staged by the same Yocto build. Do not use a script copied from another release.
Run on: Yocto build host with the Yocto environment initialized
Type: Shell commands
Locate the script:
SCRIPT=$(find "$BUILDDIR/tmp/work-shared" \
-path '*/sources/Linux_for_Tegra/tools/gen_uefi_keys_dts.sh' \
-print \
-quit)
test -n "$SCRIPT" \
&& echo "Generator: $SCRIPT" \
|| echo "gen_uefi_keys_dts.sh: NOT FOUND"
If the script is not found, initialize the intended build environment and ensure that the Jetson Linux sources for that build have been staged.
Generate the enrollment files:
cd "$KEY_DIR" sudo bash "$SCRIPT" "$KEY_DIR/uefi_keys.conf"
This command runs on the host and does not modify the Jetson. Depending on the Jetson Linux release, it generates default and update DTS/DTBO files.
Validate the default source:
test -f "$KEY_DIR/UefiDefaultSecurityKeys.dts" \
&& echo "UefiDefaultSecurityKeys.dts: found" \
|| echo "UefiDefaultSecurityKeys.dts: NOT FOUND"
grep -nE \
'EnrollDefaultSecurityKeys|PKDefault|KEKDefault|dbDefault|dbxDefault' \
"$KEY_DIR/UefiDefaultSecurityKeys.dts"
Expected content: EnrollDefaultSecurityKeys, PKDefault, KEKDefault, and dbDefault. A dbxDefault node is expected only when a default forbidden database was configured.
Integrate UEFI Secure Boot into Yocto
Add the Enrollment Source to the Metadata Layer
Only the generated public enrollment source is copied into the layer. Private keys remain outside the repository.
Run on: Yocto build host
Destination: $DISTRO_DIR/layers/meta-tegrademo/recipes-bsp/uefi
cd "$DISTRO_DIR"
mkdir -p layers/meta-tegrademo/recipes-bsp/uefi/files
cp "$KEY_DIR/UefiDefaultSecurityKeys.dts" \
layers/meta-tegrademo/recipes-bsp/uefi/files/
Create this recipe extension:
layers/meta-tegrademo/recipes-bsp/uefi/tegra-uefi-keys-dtb.bbappend
Its contents are:
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
The resulting layer structure is:
layers/meta-tegrademo/recipes-bsp/uefi/
|-- tegra-uefi-keys-dtb.bbappend
`-- files/
`-- UefiDefaultSecurityKeys.dts
Do not copy PK.key, KEK.key, or db.key into the layer.
Configure Build-Time Payload Signing
The following assignments are BitBake configuration, not shell commands.
File: $BUILDDIR/conf/local.conf
Type: BitBake configuration
TEGRA_UEFI_DB_KEY = "/absolute/path/to/secure-boot-keys/db.key" TEGRA_UEFI_DB_CERT = "/absolute/path/to/secure-boot-keys/db.crt"
Use absolute host paths. These variables point to files on the build host, not paths on the Jetson. When both are present, the validated wrynose meta-tegra configuration enables signing of the supported UEFI payloads.
The private db.key must remain outside the metadata repository and must be readable by the BitBake tasks that perform signing.
Verify the Effective BitBake Configuration
Run on: Yocto build host with the intended build environment initialized
bitbake -e demo-image-base | \
grep -E '^TEGRA_(UEFI_DB_KEY|UEFI_DB_CERT|UEFI_USE_SIGNED_FILES)='
bitbake-layers show-appends | grep tegra-uefi-keys-dtb
Expected result: the first command reports the absolute db.key and db.crt paths and TEGRA_UEFI_USE_SIGNED_FILES="true". The second command reports the custom tegra-uefi-keys-dtb.bbappend.
Do not continue if the values are empty, point to the wrong files, or the recipe extension is not active.
Build and Validate the Signed Image
Build the Enrollment Overlay
Run on: Yocto build host with the build environment initialized
bitbake -c cleansstate tegra-uefi-keys-dtb bitbake tegra-uefi-keys-dtb
Use cleansstate after changing the enrollment source or when a cached result must be discarded. It is not required for every incremental build.
Define the deployment directory:
export DEPLOY_DIR="$BUILDDIR/tmp/deploy/images/jetson-agx-orin-devkit"
Replace the final directory when using another MACHINE.
Confirm and inspect the deployed overlay:
test -f "$DEPLOY_DIR/UefiDefaultSecurityKeys.dtbo" \
&& echo "UefiDefaultSecurityKeys.dtbo: found" \
|| echo "UefiDefaultSecurityKeys.dtbo: NOT FOUND"
dtc -I dtb -O dts \
"$DEPLOY_DIR/UefiDefaultSecurityKeys.dtbo" \
-o /tmp/UefiDefaultSecurityKeys.from-build.dts
grep -nE \
'EnrollDefaultSecurityKeys|PKDefault|KEKDefault|dbDefault|dbxDefault' \
/tmp/UefiDefaultSecurityKeys.from-build.dts
The DTBO is generated output. Do not edit it directly; update the DTS in the metadata layer and rebuild.
Build the Complete Image
bitbake demo-image-base
Building the image signs supported UEFI payloads with db.key and assembles the enrollment overlay into the deployment artifacts.
Verify the Generated Kernel Signature
sbverify --list "$DEPLOY_DIR/Image"
Expected output: at least one signature whose certificate subject corresponds to db.crt, for example:
signature 1 image signature issuers: - /CN=Signature Database Key image signature certificates: - subject: /CN=Signature Database Key
This verifies that the generated kernel contains the intended signature. It does not yet prove that the target enforces the policy.
Verify the Flashing Package
Locate and extract the generated tegraflash package:
ARCHIVE=$(find "$DEPLOY_DIR" -maxdepth 1 \
-name 'demo-image-base-*.tegraflash-tar.zst' \
-print \
-quit)
test -n "$ARCHIVE" || echo "tegraflash archive: NOT FOUND"
rm -rf "$FLASH_DIR"
mkdir -p "$FLASH_DIR"
tar --zstd -xf "$ARCHIVE" -C "$FLASH_DIR"
Confirm that the enrollment overlay is referenced by the extracted flash configuration:
cd "$FLASH_DIR" grep -n 'UefiDefaultSecurityKeys' flashvars
Expected result: UefiDefaultSecurityKeys.dtbo appears in BOOTCONTROL_OVERLAYS. Its presence confirms that the overlay is part of the actual flashing configuration.
Flash the Signed Image
Flashing is the point at which the enrollment overlay and signed payloads are deployed to the Jetson. Building the files alone does not modify the target.
- Place the Jetson AGX Orin in Force Recovery Mode.
- Connect it to the build host through USB.
- Run the following commands from the extracted flashing package.
Run on: Yocto build host
cd "$FLASH_DIR" ./find-jetson-usb
Example output:
Found Jetson device in recovery mode at USB 3-2.4.2
The USB instance is dynamic. Use the value reported for the current connection.
Desktop automount may interfere when initrd-flash exposes the target storage. Stop it temporarily when the host uses udisks2:
sudo systemctl stop udisks2.service
Set the detected USB instance and flash:
USB_INSTANCE="3-2.4.2" sudo ./initrd-flash --debug --usb-instance "$USB_INSTANCE"
Replace the example USB instance with the current result from find-jetson-usb. Signing keys are not passed again because the package was prepared during the Yocto build.
Restart host automount after flashing:
sudo systemctl start udisks2.service
Runtime Enforcement Validation
After the signed image boots, validate the UEFI state from Linux running on the Jetson.
Verify EFI Variable Access
Run on: Jetson target
Type: Shell command
if [ -d /sys/firmware/efi/efivars ]; then
echo "EFI variables are available"
else
echo "EFI variables are not available"
fi
mount | grep efivarfs
If the directory is unavailable, confirm that Linux booted through UEFI and that the kernel enables and mounts efivarfs.
Read SecureBoot and SetupMode
The following command reads the UEFI variables. The first four bytes in each efivarfs file contain attributes, so the command skips them and reads the following value byte.
for var in SecureBoot SetupMode; do
FILE=$(find /sys/firmware/efi/efivars \
-maxdepth 1 \
-name "${var}-*" \
| head -n 1)
if [ -z "$FILE" ]; then
echo "$var = NOT FOUND"
continue
fi
VALUE=$(od -An -j 4 -N 1 -t u1 "$FILE" | tr -d ' ')
echo "$var = $VALUE"
done
Expected output after successful enrollment:
SecureBoot = 1 SetupMode = 0
| SecureBoot | SetupMode | Interpretation |
|---|---|---|
0
|
1
|
No Platform Key is enrolled; UEFI is in Setup Mode and enforcement is disabled. |
1
|
0
|
UEFI has left Setup Mode and Secure Boot enforcement is enabled. |
0
|
0
|
UEFI is not in Setup Mode, but Secure Boot is inactive. Review the firmware policy and enrolled variables. |
Confirm PK, KEK, and db Enrollment
for var in PK KEK db; do
echo "=== $var ==="
find /sys/firmware/efi/efivars \
-maxdepth 1 \
-name "${var}-*" \
-print
done
The output should report one file for each variable. The filenames include their UEFI GUIDs. Their presence confirms that the variables exist, but does not by itself prove that they contain the intended certificates.
Check that the variables contain more than the four-byte attribute header:
for var in PK KEK db; do
FILE=$(find /sys/firmware/efi/efivars \
-maxdepth 1 \
-name "${var}-*" \
| head -n 1)
if [ -n "$FILE" ]; then
printf '%-4s ' "$var"
wc -c < "$FILE"
else
echo "$var NOT FOUND"
fi
done
The exact sizes depend on the enrolled certificates and are not fixed validation values.
Check the Kernel State
dmesg | grep -i secure
A possible result is:
secureboot: Secure boot enabled
The exact message depends on the kernel. Treat it as secondary evidence; the UEFI variables and enforcement test provide stronger validation.
Verify the Kernel Booted by the Target
Copy the running kernel to the build host and inspect it there.
Run on: Yocto build host
scp root@jetson-agx-orin-devkit.local:/boot/Image \
"$VALIDATION_DIR/Image.booted"
sbverify --list "$VALIDATION_DIR/Image.booted"
The output should identify the certificate corresponding to the enrolled db key. This closes the positive path: the build signed the image, the certificate was enrolled, and the signed image booted.
Negative Enforcement Test
The final validation demonstrates that UEFI rejects an unsigned payload without replacing the normal boot path.
Create an Unsigned Test Payload
Run on: Yocto build host
cp "$VALIDATION_DIR/Image.booted" "$VALIDATION_DIR/Image.unsigned" sbattach --remove "$VALIDATION_DIR/Image.unsigned" sbverify --list "$VALIDATION_DIR/Image.unsigned"
Expected output:
No signature table present
Confirm that the original remains signed:
sbverify --list "$VALIDATION_DIR/Image.booted"
Copy the Test Payload to the EFI System Partition
Run on: Jetson target
mkdir -p /boot/efi/EFI/secureboot-test
Run on: Yocto build host
scp "$VALIDATION_DIR/Image.unsigned" \
root@jetson-agx-orin-devkit.local:/boot/efi/EFI/secureboot-test/unsigned.efi
Verify Rejection in the UEFI Shell
- Reboot the Jetson and enter the UEFI Shell from Boot Manager.
- Run
map -rto refresh the filesystem mappings. - Identify the EFI System Partition. Its
FSnumber is dynamic. - Navigate to
EFI\secureboot-teston that filesystem. - Execute
unsigned.efi.
Example UEFI Shell commands, assuming the EFI System Partition is FS3:
map -r fs3: cd EFI\secureboot-test ls unsigned.efi
Expected enforcement result:
Command Error Status: Access Denied
The filesystem mapping may differ. Determine it from the current map -r output instead of assuming FS3.
Restore Normal Operation
Exit the UEFI Shell and boot through the normal signed entry. Confirm SecureBoot = 1, SetupMode = 0, and normal system operation.
Remove the test payload from the Jetson:
rm -f /boot/efi/EFI/secureboot-test/unsigned.efi rmdir /boot/efi/EFI/secureboot-test sync
Key Updates and Revocation
After UEFI leaves Setup Mode, policy changes normally require authenticated update files. An EFI Signature List describes the new public policy data, while an appropriate private key authorizes the update.
For example, a controlled db update follows this relationship:
Updated db.esl
+
KEK.key and KEK.crt
|
| sign-efi-sig-list
v
db.auth
|
v
Authenticated update of the UEFI db variable
Revocation through dbx is a security-sensitive operation. Before deploying a revocation:
- confirm the revoked certificate, signature, or hash is no longer required;
- sign replacement production and recovery payloads with a trusted key;
- validate the new trust chain on non-production hardware;
- preserve an authorized recovery path;
- record the previous and resulting UEFI database state.
Because dbx takes precedence over db, an incorrect revocation can prevent otherwise valid payloads from booting.
Production Considerations
The development workflow stores private keys as host files so the complete integration can be reproduced. A production design should additionally define:
- ownership and access controls for
PK,KEK, and payload-signing keys; - offline or hardware-backed storage for the
PKandKEKprivate keys; - a controlled signing service for release payloads;
- separation between development and production certificates;
- certificate lifetime, rotation, and revocation procedures;
- authenticated database-update procedures;
- recovery payload signing and long-term availability;
- release records linking each signed artifact to its certificate and UEFI policy state.
Do not commit private keys to a Yocto layer, source repository, generated image, or flashing package.
Common Issues
| Symptom | Likely Cause | Check |
|---|---|---|
gen_uefi_keys_dts.sh is not found
|
Jetson Linux sources were not staged or the wrong build directory is selected. | Verify $BUILDDIR, initialize the build environment, and use the script from the matching release.
|
| Enrollment nodes are missing from the DTS | Incorrect or incomplete uefi_keys.conf or missing ESL files.
|
Verify every referenced file and rerun the generator. |
Custom .bbappend is ignored
|
Incorrect layer path or the layer is not active. | Run bitbake-layers show-appends and inspect bblayers.conf.
|
| Generated kernel has no signature | TEGRA_UEFI_DB_KEY or TEGRA_UEFI_DB_CERT is missing or ineffective.
|
Inspect the effective BitBake environment and rebuild the image. |
SecureBoot = 0, SetupMode = 1
|
Enrollment overlay was not included or deployed. | Inspect the built DTBO, extracted flashvars, and flashing logs.
|
| Signed payload is rejected | Payload signer does not match db, the payload changed after signing, or the signer is revoked.
|
Inspect the payload with sbverify and verify the enrolled databases.
|
| EFI variables are unavailable in Linux | The target did not boot through UEFI or efivarfs support is unavailable.
|
Check the kernel configuration and /sys/firmware/efi/efivars mount.
|