--- title: "Configuring UEFI Secure Boot" description: "When you install Veeam Agent on a UEFI system with Secure Boot enabled, you must configure the UEFI Secure Boot to allow your system to run Veeam Agent and perform backups." canonical: "https://helpcenter.veeam.com/docs/agentforlinux/userguide/installation_uefi_secure_boot.html" breadcrumb: "User Guide > Installation and Configuration > Configuring UEFI Secure Boot" dateModified: "2026-11-02" --- # Configuring UEFI Secure Boot When you install Veeam Agent on a UEFI system with Secure Boot enabled, you must configure the UEFI Secure Boot to allow your system to run Veeam Agent and perform backups. You do this by enrolling the Machine Owner Key (MOK) for the Veeam kernel module in your system's firmware. To enroll MOK, perform the following steps: 1. Request enrollment of the key. For [pre-built](system_requirements.md#prebuilt) kernel modules, the key is provided by Veeam; for [DKMS](system_requirements.md#dkms) kernel modules, the key is generated by DKMS: - [Pre-built kernel module] To make UEFI system with Secure Boot work with pre-built Veeam kernel module, Veeam Agent requires Veeam public key to be enrolled to the system's MOK list. For more information on requesting enrollment of the Veeam kernel module key to your system, see [Importing MOK for Pre-Built Kernel Module](#pre_built). - [DKMS kernel module] When you install Veeam Agent, DKMS generates a Machine Owner Key that allows third-party modules to be run on the system's firmware. Such key must also be enrolled to the system's MOK list. For more information on requesting enrollment of the key for the Veeam DKMS module, see [Importing MOK for Veeam DKMS Module](#dkms). ::: note If UEFI system with Secure Boot enabled does not support automatic generation of the key for DKMS modules, you must either sign the Veeam kernel module yourself and enroll the Machine Owner Key to your system or disable Secure Boot. ::: 2. Enroll the key using MOK management. For more information, see [Enrolling MOK](#mok_mgmt). ## Importing MOK for Pre-Built Kernel Module {#pre_built} The Veeam kernel module key is provided within the `veeam-ueficert` package that resides in the Veeam software repository. When you install the `veeam-ueficert` package, the Veeam kernel module key is imported into your system. Depending on how you install Veeam Agent — in the [online](installation_process.md) or [offline](installation_offline.md) mode, installation of the `veeam-ueficert` package may vary. ### Online Installation {#online} If you install Veeam Agent for Linux by mounting the Veeam software repository directly on your Linux computer, install the `veeam-ueficert` package by using one of the following commands: *For RHEL / Rocky Linux / AlmaLinux* ``` yum install veeam-ueficert ``` *For SLES* ``` zypper in veeam-ueficert ``` ### Offline Installation {#offline} If your Linux computer is not connected to the internet and you install Veeam Agent for Linux in the offline mode, to install the `veeam-ueficert` package and import MOK, do the following: 1. Download the `veeam-ueficert` package for your Linux distribution version from the [Veeam software repository](https://repository.veeam.com/backup/linux/agent-13/rpm/). - [For RHEL, AlmaLinux and Rocky Linux] The `veeam-ueficert` package is located in the `/backup/linux/agent/rpm///x86_64/` directory, where `` is the name of your Linux distribution and `` is your Linux OS version. For example, to download the `veeam-ueficert` package for RHEL 10, navigate to the [`/backup/linux/agent-13/rpm/el/10/x86_64/`](https://repository.veeam.com/backup/linux/agent-13/rpm/el/10/x86_64/) directory. - [For SLES] The `veeam-ueficert` package is located in the `/backup/linux/agent/rpm///noarch/` directory, where `` is the name of your Linux distribution and `` is your Linux OS version. For example, to download the `veeam-ueficert` package for SLES 15 SP7, navigate to the [`/backup/linux/agent-13/rpm/sles/SLE_15_SP7/noarch/`](https://repository.veeam.com/backup/linux/agent-13/rpm/sles/SLE_15_SP7/noarch/) directory. 2. Save the package to your computer. 3. Install the `veeam-ueficert` package by using the following command: ``` rpm -i <...>/veeam-ueficert-13.1.2.11-1.rpm ``` where `<...>` is the full path to the directory that contains the `veeam-ueficert` package. Depending on the Linux distribution and version, after you install the `veeam-ueficert` package, the following will happen: - [For all supported Linux distributions except RHEL 10, AlmaLinux 10, Rocky Linux 10 and Oracle Linux 10] The key is automatically imported into the enrollment request. ::: tip After the package is installed, you can verify that the key enrollment is planned for the next reboot using the following command: `mokutil -N`. If the command output shows that the key enrollment is not planned, import the public key [manually](#ueficert_man). ::: - [For RHEL 10, AlmaLinux 10, Rocky Linux 10 and Orcale Linux 10] According to enhanced security standards of the operating system, the Veeam kernel module key is not automatically imported during installation of the `veeam-ueficert` package. After you install the `veeam-ueficert` package, you must import the key manually using the following command: ``` mokutil --import /etc/uefi/certs/veeam-ueficert ``` During manual key import, you will be prompted to provide a one-time MOK password that you will use to enroll the key. After you install the `veeam-ueficert` package and import the key, you can [confirm the key enrollment](#mok_mgmt). ## Importing MOK for DKMS Kernel Module {#dkms} Veeam does not provide the `ueficert` package for the DKMS module because it is not possible to sign this module automatically. Depending on the Linux distribution and version, you may have several options to allow the system to load the Veeam DKMS module. For more information, see [Linux documentation](https://wiki.ubuntu.com/UEFI/SecureBoot/DKMS). If your system runs Ubuntu 20.04 and later, Debian 12.0 and later, RHEL / Oracle Linux 8 and later, after you install the Veeam kernel module using DKMS, a new Machine Owner Key is generated. Depending on the Linux distribution, to request enrollment of the key to the system firmware, do the following: - [On Debian 12.0 and later, RHEL / Oracle Linux 8 and later] Import the key manually by running the following command: ``` mokutil --import /var/lib/dkms/mok.pub ``` After importing the key, verify that the enrollment request is pending by running the `mokutil -N` command. - [On Ubuntu 20.04 and later] As a rule, the key is imported into your system automatically. However, if you installed Veeam Agent packages from a script or in non-interactive mode, the key may not get imported. To check whether the key enrollment is planned, run the `mokutil -N` command. If the command output shows that the key enrollment is not planned, import the key manually: ``` mokutil --import /var/lib/shim-signed/mok/MOK.der ``` ::: important When you import the key for enrollment, you are prompted to enter a one-time password. You will use this password during MOK management to complete enrollment. For details, see [Enrolling MOK](#mok_mgmt). ::: ## Enrolling MOK {#mok_mgmt} To enroll the Veeam or DKMS-generated key to the MOK list, do the following: 1. Reboot the computer. 2. During reboot, when prompted, press any key to perform MOK management. ::: important The prompt will time out in 10 seconds. If you don't press any key, the system will continue booting without enrolling the key. If you don't enroll the key at reboot, depending on the module type, you will have to do the following: - [Pre-built kernel module] Reconfigure the key by reinstalling the `veeam-ueficert` package and reboot again. - [DKMS kernel module] Submit the enrollment request again and reboot. ::: ![](images/mok_management_1.png) 3. At the first step of the wizard, select **Enroll MOK** and press [Enter]. ![](images/mok_management_2.png) 4. At the **Enroll MOK** step, select **Continue** and press [Enter]. ![](images/mok_management_3.png) 5. At the **Enroll the key(s)** step, select **Yes** and press [Enter]. ![](images/mok_management_4.png) 6. Depending on module type and key import method, do one of the following: - [Pre-built kernel module with an automatically imported key] Type in the password for the root account and press [Enter]. - [DKMS kernel module or pre-built kernel module with manually imported key] Type in the password you set when you imported the key and press [Enter]. ![](images/mok_management_5.png) 7. At the final step, select **Reboot** and press [Enter]. ![](images/mok_management_6.png) 8. After the system reboots, verify that the key is successfully enrolled with the following command: `mokutil -l`. The system will list the enrolled keys.