Secure Boot prevents unauthorized or malicious code from running during system startup by verifying the digital signature of bootloaders and OS kernels. It is supported on most modern PCs, servers, and embedded systems using UEFI firmware. To use it, your hardware must support UEFI (not legacy BIOS), and your operating system must be UEFI-compatible (e.g., Windows 10/11, most current Linux distributions). You do not need to install anything extra—Secure Boot is built into UEFI firmware—but you may need to enable it manually in your system’s firmware settings.

What You'll Need

  • A UEFI-based computer or server (most devices made after 2012 support UEFI)
  • A supported operating system installed in UEFI mode (not legacy BIOS/Legacy CSM mode)
  • Access to your system’s firmware setup (usually by pressing F2, F10, Del, or Esc during boot)
  • Administrator or root privileges on the host system (for verification steps)

Step-by-Step

  1. Confirm your system uses UEFI and your OS is installed in UEFI mode. On Windows, open Command Prompt as Administrator and run msinfo32. Under System Summary, check BIOS Mode—it should say UEFI. If it says Legacy, Secure Boot cannot be enabled without reinstalling the OS in UEFI mode. On Linux, run ls /sys/firmware/efi; if the directory exists and is not empty, your system booted in UEFI mode.
  2. Reboot and enter firmware setup. Restart your computer and repeatedly press the firmware key during boot (common keys: F2, F10, Delete, or Esc—check your motherboard or laptop manual if unsure). On some systems, you can access it from Windows by going to Settings > Update & Security > Recovery > Advanced Startup > Restart now, then selecting UEFI Firmware Settings.
  3. Locate Secure Boot settings. In firmware setup, look for a section named Security, Boot, or Advanced. Within that, find Secure Boot or UEFI Secure Boot. Some systems hide it under OS Security or Authentication.
  4. Enable Secure Boot. Change the Secure Boot setting from Disabled to Enabled. If prompted, select Default Keys or Microsoft Windows (for Windows) or Other OS (for Linux, macOS, or custom OSes). Default Keys uses Microsoft’s UEFI CA key, which validates Windows and many modern Linux distros. Other OS may require manual key enrollment (see troubleshooting).
  5. Save and exit. Press F10 (or follow your system’s on-screen prompt) to save changes and reboot. The system will briefly display a Secure Boot status message (e.g., Secure Boot is enabled) before the OS loads.
  6. Verify Secure Boot is active. On Windows, open PowerShell as Administrator and run Confirm-SecureBootUEFI. A return of True confirms it is enabled. On Linux, run mokutil --sb-state; SecureBoot enabled confirms success. On macOS, Secure Boot is enabled by default on Apple Silicon and T2-chip Macs—no user configuration is needed.

Common Mistakes

Many users mistakenly assume Secure Boot is enabled by default. While newer OEM systems often have it pre-enabled, many manufacturers ship with it disabled (especially in business or custom-configured units) to allow OS flexibility. Another frequent error is enabling Secure Boot while the OS is installed in legacy BIOS mode—this causes boot failure because the legacy bootloader lacks a valid signature. Users also overlook the need to disable CSM (Compatibility Support Module) or Legacy Boot in firmware; these must be turned off alongside Secure Boot for proper operation. Finally, selecting Microsoft Windows keys on a Linux system may prevent booting if the kernel lacks Microsoft-signed bootloaders (e.g., older Ubuntu versions or custom kernels).

Tips

Before enabling Secure Boot, ensure your OS is up to date—kernel and bootloader updates often include new signatures compatible with Secure Boot. On Linux, distributions like Ubuntu, Fedora, and openSUSE ship with pre-signed bootloaders and kernels; check your distro’s documentation for Secure Boot support before enabling. If you dual-boot Windows and Linux, use the same Secure Boot key policy for both systems (e.g., Microsoft Windows keys) to avoid conflicts. For enterprise deployments, consider enrolling your own keys via the Custom Mode option in firmware for full control over trusted signatures. Always back up critical data before changing boot settings—misconfiguration can render the system unbootable.

Troubleshooting

If your system fails to boot after enabling Secure Boot, first check that CSM/Legacy Boot is disabled in firmware. Next, try resetting Secure Boot keys to default: in firmware setup, look for Restore Secure Boot Defaults or Load Setup Defaults, then re-enable Secure Boot. If the OS still won’t load, boot into recovery mode (e.g., press Shift during Windows boot, or use installation media) and run startup repair. On Linux, use a live USB to reinstall the bootloader with Secure Boot support (e.g., sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --secure-boot for GRUB). If you see a Secure Boot Violation or Invalid Signature error, your bootloader may be unsigned—reinstall the OS or use a distribution known to support Secure Boot. If you’re using Custom Mode and enrolled keys are missing or mismatched, restore Default Keys as a fallback.

Frequently Asked Questions

Does Secure Boot prevent all malware?

No. It only blocks unsigned or tampered code during the pre-OS boot process. Once the OS loads, standard antivirus and security practices still apply.

Can I disable Secure Boot after enabling it?

Yes—re-enter firmware setup and set Secure Boot to Disabled. This is useful for installing older or non-standard operating systems, but it reduces boot-time security.

Does Secure Boot work with Linux?

Yes, most modern Linux distributions (Ubuntu 16.04+, Fedora, openSUSE, Arch with signed packages) support Secure Boot out of the box. They use Microsoft’s signed shim bootloader to chain-load the kernel.

What happens if I update my BIOS?

BIOS/firmware updates may reset Secure Boot settings to default (often disabled). After updating, re-enable Secure Boot and verify it remains active.

Can I use a custom OS without Microsoft keys?

Yes—switch firmware to Custom Mode, then enroll your own public keys using tools like mokutil on Linux. You’ll need to generate a key pair and sign your bootloader and kernel manually.

Does Secure Boot affect performance?

No. The signature verification adds negligible latency—typically under 1 millisecond—and is imperceptible in real-world use.