Secure Boot prevents unauthorized or malicious code from loading during system startup by verifying digital signatures on bootloaders and OS kernels. It achieves this using UEFI firmware to enforce a chain of trust. You need a UEFI-based system (most devices from 2012 onward), a compatible operating system (e.g., Windows 10/11, modern Linux distributions), and administrative access to the firmware settings. No additional hardware or software is required.

What You'll Need

  • A UEFI-compatible computer or laptop (not legacy BIOS)
  • A supported operating system (Windows 10/11, Ubuntu 20.04+, Fedora, etc.)
  • Admin or firmware access credentials (often no password is set by default)
  • Optional: USB drive with OS installer (for custom Secure Boot deployments)

Step-by-Step

  1. Access UEFI firmware settings: Restart your computer and repeatedly press the designated key (commonly F2, F10, Del, or Esc) during boot—timing is critical, usually starting 1–2 seconds after power-on. On some Windows PCs, go to Settings > Update & Security > Recovery > Advanced Startup > Restart now, then select Troubleshoot > Advanced options > UEFI Firmware Settings > Restart.
  2. Navigate to the Secure Boot configuration: Once in the UEFI menu, look for tabs or sections named Secure Boot, Security, Boot, or Authentication. Labels vary by manufacturer (e.g., ASUS calls it Secure Boot, Dell uses Secure Boot Configuration, HP labels it Secure Boot Settings).
  3. Enable Secure Boot in Standard mode: Find the Secure Boot option and set it to Enabled. Choose Standard (or Windows UEFI Firmware) if using Windows or a pre-signed OS. Standard mode uses Microsoft's default CA keys and does not require manual key management.
  4. Verify current state: In Standard mode, Secure Boot should show as Enabled with OS Type set to Windows UEFI Firmware or Generic. No additional keys are needed—the firmware uses Microsoft’s preloaded public keys to validate boot components.
  5. To use Custom mode (advanced): If you need full control (e.g., for Linux with custom kernels or embedded systems), change Secure Boot Mode to Custom. You will then see options to clear, import, or enroll keys: PK (Platform Key), KEK (Key Exchange Key), and DB/DBX (Allow/Block lists).
  6. Enroll custom keys (Custom mode only): In Custom mode, you must enroll at least one Platform Key (PK) and one Key Exchange Key (KEK). Use the Enroll Default Keys option only if resetting to defaults. For custom signing, generate or obtain a signed bootloader (e.g., using sbsigntool on Linux), then enroll the public key via the firmware UI or using tools like mokutil on Linux.
  7. Save changes and exit: Press F10 (or the designated key for Save & Exit). Confirm saving changes when prompted. The system will reboot with Secure Boot active.
  8. Confirm Secure Boot status: In Windows, open msinfo32 and check Secure Boot State under System Summary—it should say Enabled. On Linux, run mokutil --sb-state (or check /sys/kernel/security/lockdown if available).

Common Mistakes

  • Pressing the wrong key too late or too early—many systems only accept firmware entry for a 2–5 second window. If you miss it, restart and try again, counting seconds carefully.
  • Enrolling keys without signing bootloaders first in Custom mode—this bricks the system. Always sign the bootloader (e.g., shim, GRUB) with your private key before enrolling the corresponding public key.
  • Using outdated OS install media—older Linux ISOs or Windows versions may lack Secure Boot compatibility. Use officially supported, up-to-date installers.
  • Assuming all Linux distros work out-of-the-box—some (e.g., Arch, OpenSUSE) require manual key enrollment, while others (e.g., Ubuntu) ship pre-signed and work in Standard mode.
  • Enabling Secure Boot while legacy boot options (CSM/Legacy) are still active—disable CSM in Boot > CSM Support or similar to avoid conflicts.
  • Not clearing keys before switching from Custom to Standard mode—this often leaves the system in a broken state. Use Clear Secure Boot Keys or Reset to Default Keys first.

Tips

  • Take a photo of your current UEFI settings before making changes—it helps if you need to restore defaults.
  • On laptops, ensure the device is plugged in during firmware updates to prevent power-loss corruption.
  • For Linux users: Use the Microsoft-signed shim bootloader (shim-signed) when possible—it’s pre-enrolled and compatible with Standard Secure Boot.
  • Test booting a known-good OS (e.g., Windows Recovery or Ubuntu Live USB) after enabling Secure Boot to verify functionality before installing your main OS.
  • Keep your firmware updated—manufacturers sometimes fix Secure Boot bugs in BIOS/UEFI patches.
  • Custom mode is rarely needed for home users. Stick to Standard unless you’re building a custom kernel, running embedded systems, or developing OS components.

Troubleshooting

  • No boot or black screen after enabling Secure Boot: Disable Secure Boot temporarily, verify CSM is off, and check if your OS installer is Secure Boot–compatible. Reboot and re-enable Standard mode if the installer worked without issues.
  • OS fails to load with "Secure Boot violation" error: Enter UEFI settings, reset Secure Boot keys to defaults (Clear Secure Boot Keys), and re-enable Standard mode. If using Linux, reinstall the OS using the official installer—do not manually copy kernel files.
  • Custom mode keys not accepted: Ensure key files are in the correct format (usually DER-encoded .auth files). Double-check file permissions and avoid renaming keys. Use firmware-provided key enrollment tools, not third-party utilities.
  • Secure Boot shows Disabled in Windows but Enabled in UEFI: This often means the OS was installed with Secure Boot disabled. Reinstall the OS or use the official Microsoft media creation tool to rebuild the boot environment.
  • Cannot enter UEFI firmware settings: On Windows 10/11, try Settings > Update & Security > Recovery > Advanced Startup. Alternatively, hold Shift while clicking Restart. For older systems, unplug all USB devices except keyboard and retry boot keys.
  • System boots but hangs at manufacturer logo: Disable Secure Boot, boot into Safe Mode, then re-enable Secure Boot and reboot again. If the issue persists, clear NVRAM/CMOS by removing the motherboard battery for 2 minutes or using the Clear CMOS jumper.

Frequently Asked Questions

Does Secure Boot prevent malware?

It blocks unsigned malicious code from loading at boot time, but it doesn’t protect against runtime threats like keyloggers or fileless malware once the OS is running. Use it as part of a layered security strategy, not a standalone solution.

Can I use Linux with Secure Boot enabled?

Yes—many modern distros (Ubuntu, Fedora, openSUSE) support Standard mode out-of-the-box. For others, use the Microsoft-signed shim bootloader or enroll your own keys in Custom mode.

Does Secure Boot slow down boot time?

No—it adds negligible overhead. Verification is handled by dedicated firmware logic, and modern CPUs often include hardware acceleration for signature checks.

What happens if I disable Secure Boot?

Your system can boot unsigned code, including older OSes and custom firmware. This is sometimes needed for dual-booting legacy systems or running non-standard software, but it reduces boot-time security.

Can I switch between Standard and Custom modes later?

Yes, but switching from Custom to Standard requires clearing all enrolled keys first. Most firmware includes a "Reset to Default Keys" option. Failure to do so may leave the system unbootable.

Is Secure Boot required for Windows 11?

Yes—Windows 11 mandates Secure Boot (along with TPM 2.0). It cannot be installed or activated on systems where Secure Boot is disabled or unsupported.