Solved Secure boot update HowTo


If you're comfortable navigating your UEFI's Secure Boot setup menu, then run these steps.

1. Download this MS certificate file:
https://raw.githubusercontent.com/microsoft/secureboot_objects/main/PreSignedObjects/KEK/Certificates/microsoft corporation kek 2k ca 2023.der

2. Mount the EFI partition, and copy the downloaded file to it.
Code:
mountvol S: /s
copy "microsoft corporation kek 2k ca 2023.der" S:\EFI
mountvol S: /d

3. Shutdown the PC, and enter BIOS. Navigate to your Secure Boot menu. Find the KEK key management screen (appearance depends on your BIOS), there should be an option to manage keys or "enroll a file". Enter that menu, you'll be asked to pick a drive volume to find the file. One of them will have the <EFI> folder underneath.

Navigate inside the <EFI> folder, and select the "microsoft corporation kek 2k ca 2023.der" file. Enroll it, and submit changes.

4. Restart Windows, check if KEK CA 2023 now appears in the script.

Hello garlin,
I checked on a machine that has it listed correctly, and that file is not in the EFI folder. I think that CA 2023 is stored in the BIOS. 🤷‍♂️

1765500019034.webp
1765499884216.webp
 

My Computer

System One

  • OS
    Windows 11 Pro 25H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell XPS 8930
    CPU
    Intel I9-9900K
    Memory
    64GB
    Graphics Card(s)
    NVIDIA RTX 2060
    Sound Card
    NVIDIA High Definition Audio
    Monitor(s) Displays
    4k Samsung
    Screen Resolution
    3840 x 2160
    Hard Drives
    512GB NVMe, ADATA SU 800, 2TB HDD
Looks like people keep getting this message in the event log:

Code:
Secure Boot certificates have been updated but are not yet applied to the device firmware.

What is this? Is this faulty UEFI?
I am also facing (like the most of us) the same error in my event viewer..Bios update and secure boot keys erase (and install default keys) did not fix the issue..Of course I will not get the risk to do it manually, because Microsoft said that they will fix it via their released updates soon.. I believe that is because my desktop PC was formatted 2 years ago as I upgraded from win 11 23h2 to 24h2 and since October to 25h2...So the only fix here I believe is either a PC format to be done (so as to get only win 11 25h2 with the new certificates installed) or wait Microsoft to fix it via their upcoming updates..
 

My Computer

System One

  • OS
    win 11 pro 25 h2
    Computer type
    PC/Desktop
If you're comfortable navigating your UEFI's Secure Boot setup menu, then run these steps.

1. Download this MS certificate file:
https://raw.githubusercontent.com/microsoft/secureboot_objects/main/PreSignedObjects/KEK/Certificates/microsoft corporation kek 2k ca 2023.der

2. Mount the EFI partition, and copy the downloaded file to it.
Code:
mountvol S: /s
copy "microsoft corporation kek 2k ca 2023.der" S:\EFI
mountvol S: /d

3. Shutdown the PC, and enter BIOS. Navigate to your Secure Boot menu. Find the KEK key management screen (appearance depends on your BIOS), there should be an option to manage keys or "enroll a file". Enter that menu, you'll be asked to pick a drive volume to find the file. One of them will have the <EFI> folder underneath.

Navigate inside the <EFI> folder, and select the "microsoft corporation kek 2k ca 2023.der" file. Enroll it, and submit changes.

4. Restart Windows, check if KEK CA 2023 now appears in the script.
Was this the project you were working on recently, which is now ready for users wishing to install the MS KEK 2k CA 2023 certificate? I looked at the instructions and will hold off for now as the BIOS in the Lenovo is setup differently than what you have described. The BIOS only has 3 options, Enter Setup Mode, Reset Factory Keys and Clear All Keys. I was wondering if the 2023 KEK key could be used with Mosby if the Lenovo BIOS doesn't offer a way to install the key in the manner you described? Your efforts are very much appreciated!
 

My Computer

System One

  • OS
    Windows 11
Hello garlin,
I checked on a machine that has it listed correctly, and that file is not in the EFI folder. I think that CA 2023 is stored in the BIOS. 🤷‍♂️
Those instructions for PC's that don't have KEK CA 2023 visible, but have all the other 2023 certs.

The current MS update process depends on having a properly signed KEK from your PC's vendor. Some vendors have not provided KEK's for all possible firmwares they've sold. If your vendor has submitted it to MS, then the update is flawless. If you're not so fortunate, the manual method can be done.
 

My Computer

System One

  • OS
    Windows 7
Those instructions for PC's that don't have KEK CA 2023 visible, but have all the other 2023 certs.

The current MS update process depends on having a properly signed KEK from your PC's vendor. Some vendors have not provided KEK's for all possible firmwares they've sold. If your vendor has submitted it to MS, then the update is flawless. If you're not so fortunate, the manual method can be done.
I'll give it a try; I guess I can always restore a backup if something is not working correctly. 😉
 

My Computer

System One

  • OS
    Windows 11 Pro 25H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell XPS 8930
    CPU
    Intel I9-9900K
    Memory
    64GB
    Graphics Card(s)
    NVIDIA RTX 2060
    Sound Card
    NVIDIA High Definition Audio
    Monitor(s) Displays
    4k Samsung
    Screen Resolution
    3840 x 2160
    Hard Drives
    512GB NVMe, ADATA SU 800, 2TB HDD
Was this the project you were working on recently, which is now ready for users wishing to install the MS KEK 2k CA 2023 certificate? I looked at the instructions and will hold off for now as the BIOS in the Lenovo is setup differently than what you have described. The BIOS only has 3 options, Enter Setup Mode, Reset Factory Keys and Clear All Keys. I was wondering if the 2023 KEK key could be used with Mosby if the Lenovo BIOS doesn't offer a way to install the key in the manner you described? Your efforts are very much appreciated!
Mosby uses custom code to directly talk to the UEFI, and replaces the variable values. As such, it doesn't have self-restrictions that the Windows scheduled task has (for safety reasons). For obvious reasons, it's programmed not to do anything stupid.

I believe on some UEFI's, it's called "Enter Setup Mode". The problem is I don't own some of these PC models to know what it's supposed to look like. But playing around with Setup Mode can unlock the key management options. You may have to Google an example for your vendor (not necessarily the exact PC model).
 

My Computer

System One

  • OS
    Windows 7
I'll give it a try; I guess I can always restore a backup if something is not working correctly. 😉
Just copying the file to the EFI partition doesn't hurt it. Nothing will read that file.

We're just saving you the traditional step of "First format an USB drive with a FAT32 volume, now copy the file to the drive." By re-using the existing system's EFI partition to store the cert file, we can skip the need for a spare USB drive. Unless you enjoy making FAT32 volumes on spare USB drives...
 

My Computer

System One

  • OS
    Windows 7
That did not work

Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecureBoot
change the reg entry from 0x00000000 to 0x00000004 again please and save settings.

>>> then open a Admin PowerShell and run
Start-ScheduledTask -TaskName "\Microsoft\Windows\PI\Secure-Boot-Update"

close the PowerShell window and the restart your system
once restarted please check your UEFI KEK cert again.

the system will continue to check for updates every 12 hours.
best of luck Steve ..
 
Last edited:

My Computers

System One System Two

  • OS
    Windows 11 Home
    Computer type
    PC/Desktop
    Manufacturer/Model
    HP 24" AiO
    CPU
    Ryzen 7 5825u
    Motherboard
    HP
    Memory
    64GB DDR4 3200
    Graphics Card(s)
    Ryzen 7 5825u
    Sound Card
    RealTek
    Monitor(s) Displays
    24" HP AiO
    Screen Resolution
    1920 x 1080 @60 Hz
    Hard Drives
    1TB WD Blue SN580 M2 SSD Partitioned.
    2x 1TB USB HDD External Backup/Storage.
    PSU
    90W external power brick
    Case
    24" All in One
    Cooling
    Default Air Cooling
    Keyboard
    HP WiFi UK extended
    Mouse
    HP WiFi 3 Button
    Internet Speed
    1GB full fibre
    Browser
    Edge & Firefox
    Antivirus
    AVG Internet Security/Windows Defender
    Other Info
    Mainly Open Source Software
  • Operating System
    Ubuntu 22.04.5 LTS
    Computer type
    Laptop
    Manufacturer/Model
    Dell 13" Latitude 2017
    CPU
    i5 7200u
    Motherboard
    Dell
    Memory
    16GB DDR4
    Graphics card(s)
    Intel
    Sound Card
    Intel
    Monitor(s) Displays
    13" Dell Laptop
    Hard Drives
    250GB Crucial 2.5" SSD
    Mouse
    Generic WiFi 3 button
    Internet Speed
    WiFi only
    Browser
    Firefox
    Antivirus
    ClamAV TK
    Other Info
    Mainly Open Source Software
If you're comfortable navigating your UEFI's Secure Boot setup menu, then run these steps.

1. Download this MS certificate file:
https://raw.githubusercontent.com/microsoft/secureboot_objects/main/PreSignedObjects/KEK/Certificates/microsoft corporation kek 2k ca 2023.der

2. Mount the EFI partition, and copy the downloaded file to it.
Code:
mountvol S: /s
copy "microsoft corporation kek 2k ca 2023.der" S:\EFI
mountvol S: /d

3. Shutdown the PC, and enter BIOS. Navigate to your Secure Boot menu. Find the KEK key management screen (appearance depends on your BIOS), there should be an option to manage keys or "enroll a file". Enter that menu, you'll be asked to pick a drive volume to find the file. One of them will have the <EFI> folder underneath.

Navigate inside the <EFI> folder, and select the "microsoft corporation kek 2k ca 2023.der" file. Enroll it, and submit changes.

4. Restart Windows, check if KEK CA 2023 now appears in the script.
I don't see a key management screen on my Dell XPS 8930 BIOS. 😵‍💫🤷‍♂️
 

My Computer

System One

  • OS
    Windows 11 Pro 25H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell XPS 8930
    CPU
    Intel I9-9900K
    Memory
    64GB
    Graphics Card(s)
    NVIDIA RTX 2060
    Sound Card
    NVIDIA High Definition Audio
    Monitor(s) Displays
    4k Samsung
    Screen Resolution
    3840 x 2160
    Hard Drives
    512GB NVMe, ADATA SU 800, 2TB HDD
Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecureBoot
change the reg entry from 0x00000000 to 0x00000004 again please and save settings.

>>> then open a Admin CMD prompt and run


close the CMD prompt window and the restart your system
once restarted please check your UEFI KEK cert again.

the system will continue to check for updates every 12 hours.
best of luck Steve ..
That is a P.S. command it does not work from command prompt.

1765501739034.webp
 

My Computer

System One

  • OS
    Windows 11 Pro 25H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell XPS 8930
    CPU
    Intel I9-9900K
    Memory
    64GB
    Graphics Card(s)
    NVIDIA RTX 2060
    Sound Card
    NVIDIA High Definition Audio
    Monitor(s) Displays
    4k Samsung
    Screen Resolution
    3840 x 2160
    Hard Drives
    512GB NVMe, ADATA SU 800, 2TB HDD
Run this script as Admin, ignore the fact that's named Lenovo.ps1. If you get a named .bin file, then your DELL will be supported.

My Lenovo Y50-70 laptop (for example) returns:
Lenovo/KEKUpdate_Lenovo_PK255.bin

Anytime you get a named file, then your vendor is working with MS to compile a database of eligible KEK's to use for update purposes. The online database might be newer than what the SecureBootUpdates folder has on your PC. I don't know if the scheduled task reads from the repo, or only checks the local Windows folder (which I suspect).
 

Attachments

Last edited:

My Computer

System One

  • OS
    Windows 7

My Computers

System One System Two

  • OS
    Windows 11 Home
    Computer type
    PC/Desktop
    Manufacturer/Model
    HP 24" AiO
    CPU
    Ryzen 7 5825u
    Motherboard
    HP
    Memory
    64GB DDR4 3200
    Graphics Card(s)
    Ryzen 7 5825u
    Sound Card
    RealTek
    Monitor(s) Displays
    24" HP AiO
    Screen Resolution
    1920 x 1080 @60 Hz
    Hard Drives
    1TB WD Blue SN580 M2 SSD Partitioned.
    2x 1TB USB HDD External Backup/Storage.
    PSU
    90W external power brick
    Case
    24" All in One
    Cooling
    Default Air Cooling
    Keyboard
    HP WiFi UK extended
    Mouse
    HP WiFi 3 Button
    Internet Speed
    1GB full fibre
    Browser
    Edge & Firefox
    Antivirus
    AVG Internet Security/Windows Defender
    Other Info
    Mainly Open Source Software
  • Operating System
    Ubuntu 22.04.5 LTS
    Computer type
    Laptop
    Manufacturer/Model
    Dell 13" Latitude 2017
    CPU
    i5 7200u
    Motherboard
    Dell
    Memory
    16GB DDR4
    Graphics card(s)
    Intel
    Sound Card
    Intel
    Monitor(s) Displays
    13" Dell Laptop
    Hard Drives
    250GB Crucial 2.5" SSD
    Mouse
    Generic WiFi 3 button
    Internet Speed
    WiFi only
    Browser
    Firefox
    Antivirus
    ClamAV TK
    Other Info
    Mainly Open Source Software
i have just edited my post it should be run in an Admin PowerShell
sorry about that trying to do too many things at once.

best of luck Steve ..
Same results.

1765502997837.webp

1765503035524.webp
1765502945875.webp
 

My Computer

System One

  • OS
    Windows 11 Pro 25H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell XPS 8930
    CPU
    Intel I9-9900K
    Memory
    64GB
    Graphics Card(s)
    NVIDIA RTX 2060
    Sound Card
    NVIDIA High Definition Audio
    Monitor(s) Displays
    4k Samsung
    Screen Resolution
    3840 x 2160
    Hard Drives
    512GB NVMe, ADATA SU 800, 2TB HDD

My Computers

System One System Two

  • OS
    Windows 11 Home
    Computer type
    PC/Desktop
    Manufacturer/Model
    HP 24" AiO
    CPU
    Ryzen 7 5825u
    Motherboard
    HP
    Memory
    64GB DDR4 3200
    Graphics Card(s)
    Ryzen 7 5825u
    Sound Card
    RealTek
    Monitor(s) Displays
    24" HP AiO
    Screen Resolution
    1920 x 1080 @60 Hz
    Hard Drives
    1TB WD Blue SN580 M2 SSD Partitioned.
    2x 1TB USB HDD External Backup/Storage.
    PSU
    90W external power brick
    Case
    24" All in One
    Cooling
    Default Air Cooling
    Keyboard
    HP WiFi UK extended
    Mouse
    HP WiFi 3 Button
    Internet Speed
    1GB full fibre
    Browser
    Edge & Firefox
    Antivirus
    AVG Internet Security/Windows Defender
    Other Info
    Mainly Open Source Software
  • Operating System
    Ubuntu 22.04.5 LTS
    Computer type
    Laptop
    Manufacturer/Model
    Dell 13" Latitude 2017
    CPU
    i5 7200u
    Motherboard
    Dell
    Memory
    16GB DDR4
    Graphics card(s)
    Intel
    Sound Card
    Intel
    Monitor(s) Displays
    13" Dell Laptop
    Hard Drives
    250GB Crucial 2.5" SSD
    Mouse
    Generic WiFi 3 button
    Internet Speed
    WiFi only
    Browser
    Firefox
    Antivirus
    ClamAV TK
    Other Info
    Mainly Open Source Software
Run this script as Admin, ignore the fact that's named Lenovo.ps1. If you get a named .bin file, then your DELL will be supported.

My Lenovo Y50-70 laptop (for example) returns:
Lenovo/KEKUpdate_Lenovo_PK255.bin

Anytime you get a named file, then your vendor is working with MS to compile a database of eligible KEK's to use for update purposes. The online database might be newer than what the SecureBootUpdates folder has on your PC. I don't know if the scheduled task reads from the repo, or only checks the local Windows folder (which I suspect).
I think I screwed up my Dell XPS 8930, it will not boot anymore. 🤬
 

My Computer

System One

  • OS
    Windows 11 Pro 25H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell XPS 8930
    CPU
    Intel I9-9900K
    Memory
    64GB
    Graphics Card(s)
    NVIDIA RTX 2060
    Sound Card
    NVIDIA High Definition Audio
    Monitor(s) Displays
    4k Samsung
    Screen Resolution
    3840 x 2160
    Hard Drives
    512GB NVMe, ADATA SU 800, 2TB HDD
Turn off Secure Boot. Restart Windows, and run the reporting script again.
BitLocker is off, so you don't have to worry about that detail.
 

My Computer

System One

  • OS
    Windows 7
Turn off Secure Boot. Restart Windows, and run the reporting script again.
BitLocker is off, so you don't have to worry about that detail.
This is quite messy.
 

My Computer

System One

  • OS
    Windows 11 Pro 25H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell XPS 8930
    CPU
    Intel I9-9900K
    Memory
    64GB
    Graphics Card(s)
    NVIDIA RTX 2060
    Sound Card
    NVIDIA High Definition Audio
    Monitor(s) Displays
    4k Samsung
    Screen Resolution
    3840 x 2160
    Hard Drives
    512GB NVMe, ADATA SU 800, 2TB HDD
The worst case is you disable Secure Boot. Enter the BIOS menu, find the "reset to factory default" and start over. With Secure Boot disabled, any boot file is eligible to boot Windows. Then redo the whole update process from the beginning.
 

My Computer

System One

  • OS
    Windows 7
The worst case is you disable Secure Boot. Enter the BIOS menu, find the "reset to factory default" and start over. With Secure Boot disabled, any boot file is eligible to boot Windows. Then redo the whole update process from the beginning.
I get this if I try to boot with Secure boot on? How do I fix it?


1765506606463.webp
 

My Computer

System One

  • OS
    Windows 11 Pro 25H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell XPS 8930
    CPU
    Intel I9-9900K
    Memory
    64GB
    Graphics Card(s)
    NVIDIA RTX 2060
    Sound Card
    NVIDIA High Definition Audio
    Monitor(s) Displays
    4k Samsung
    Screen Resolution
    3840 x 2160
    Hard Drives
    512GB NVMe, ADATA SU 800, 2TB HDD

Latest Support Threads

Back
Top Bottom