Dovahindota
New Member
System: Maxsun MS-Terminator Z790M D5, BIOS H7.8G (06/29/2025), i5-14600K, Windows 11 Pro 25H2 on an NVMe drive (UEFI/GPT, CSM disabled).
I tried to enable Secure Boot to play some games, but I encountered an error I couldn't identify. Since I don't have any IT background, I asked Claude for help, knowing it was developed with expertise in this field. After some trial and error, I found a solution, and I’m posting it here in case it helps others who run into the same issue.
Symptoms
- After enabling Secure Boot and selecting the “Install Default Secure Boot Keys” option, the PC displayed a “Secure Boot Violation” message (appearing twice, extremely quickly, I captured it using time-lapse recording) and returned to the BIOS.
- Disabling Secure Boot, clearing the keys, and selecting “Load Optimized Defaults” had no effect.
- Attempting to use the “Enroll EFI Image” option for the `bootmgfw.efi` file resulted in a failure.
- The “Key Management” section showed: PK = Test (AMI), KEK = 1 key, DB = 2 keys (containing only 2011-era certificates).
Diagnosis
- Windows had already updated its boot manager (`bootmgfw.efi`) to a version signed by the “Windows UEFI CA 2023” certificate authority, as part of Microsoft’s implementation of Secure Boot certificates for 2026. Restoring the factory default keys reset the signature database (DB) to include only the 2011 certificates; consequently, the firmware rejected the newer boot loader. The presence of the `SecureBootRecovery.efi` file in the `EFI\Microsoft\Boot` folder confirmed that the migration had taken place.
Solution (Microsoft Secure Boot Recovery Tool)
On another PC running Windows 11 with recent updates:
- Format a USB drive using the FAT32 file system.
Create an `EFI\BOOT` folder.
- Copy the file `C:\Windows\Boot\EFI\SecureBootRecovery.efi` into this folder and rename it to `bootx64.efi`.
(Optional) Verify that the file is signed by the 2011 CA, which is recognized by the default database (DB):
`Get-PfxCertificate -FilePath "E:\EFI\BOOT\bootx64.efi" | Format-List Subject, Issuer`
The "Issuer" should be "Microsoft Windows Production PCA 2011."
On the affected PC:
5. With Secure Boot enabled (standard mode), boot the system from the USB drive.
6. The tool will display the message “Secure Boot Certificate database successfully updated,” and the system will restart.
7. Remove the USB drive; Windows will boot normally. The `msinfo32` command will show the Secure Boot status as "On."
Notes
There is no need to replace the motherboard or flash the BIOS.
Avoid using the “Restore Factory Keys” or “Install Default Keys” options later, as this will remove the 2023 certificate again. Keep the USB drive as a recovery tool.
The "AMI Test PK" is still present (a known firmware issue referred to as “PKfail”). This does not prevent the system from booting, but a definitive fix would require a BIOS update provided by Maxsun.
Credit: procedure based on the WOSHub guide titled “Invalid Signature Detected: Check Secure Boot Policy [Fix]”
I tried to enable Secure Boot to play some games, but I encountered an error I couldn't identify. Since I don't have any IT background, I asked Claude for help, knowing it was developed with expertise in this field. After some trial and error, I found a solution, and I’m posting it here in case it helps others who run into the same issue.
Symptoms
- After enabling Secure Boot and selecting the “Install Default Secure Boot Keys” option, the PC displayed a “Secure Boot Violation” message (appearing twice, extremely quickly, I captured it using time-lapse recording) and returned to the BIOS.
- Disabling Secure Boot, clearing the keys, and selecting “Load Optimized Defaults” had no effect.
- Attempting to use the “Enroll EFI Image” option for the `bootmgfw.efi` file resulted in a failure.
- The “Key Management” section showed: PK = Test (AMI), KEK = 1 key, DB = 2 keys (containing only 2011-era certificates).
Diagnosis
- Windows had already updated its boot manager (`bootmgfw.efi`) to a version signed by the “Windows UEFI CA 2023” certificate authority, as part of Microsoft’s implementation of Secure Boot certificates for 2026. Restoring the factory default keys reset the signature database (DB) to include only the 2011 certificates; consequently, the firmware rejected the newer boot loader. The presence of the `SecureBootRecovery.efi` file in the `EFI\Microsoft\Boot` folder confirmed that the migration had taken place.
Solution (Microsoft Secure Boot Recovery Tool)
On another PC running Windows 11 with recent updates:
- Format a USB drive using the FAT32 file system.
Create an `EFI\BOOT` folder.
- Copy the file `C:\Windows\Boot\EFI\SecureBootRecovery.efi` into this folder and rename it to `bootx64.efi`.
(Optional) Verify that the file is signed by the 2011 CA, which is recognized by the default database (DB):
`Get-PfxCertificate -FilePath "E:\EFI\BOOT\bootx64.efi" | Format-List Subject, Issuer`
The "Issuer" should be "Microsoft Windows Production PCA 2011."
On the affected PC:
5. With Secure Boot enabled (standard mode), boot the system from the USB drive.
6. The tool will display the message “Secure Boot Certificate database successfully updated,” and the system will restart.
7. Remove the USB drive; Windows will boot normally. The `msinfo32` command will show the Secure Boot status as "On."
Notes
There is no need to replace the motherboard or flash the BIOS.
Avoid using the “Restore Factory Keys” or “Install Default Keys” options later, as this will remove the 2023 certificate again. Keep the USB drive as a recovery tool.
The "AMI Test PK" is still present (a known firmware issue referred to as “PKfail”). This does not prevent the system from booting, but a definitive fix would require a BIOS update provided by Maxsun.
Credit: procedure based on the WOSHub guide titled “Invalid Signature Detected: Check Secure Boot Policy [Fix]”