[SOLVED] Gigabyte G5 KC / FB08 – Secure Boot CA 2023, Event 1803, 0x4004 – no BIOS update required
I managed to fully update the Secure Boot certificates on a
Gigabyte G5 KC / RC45KC with InsydeH2O BIOS FB08, without a new BIOS, BIOS mod, cross-flash, deleting the Platform Key, or entering Setup Mode.
My problem was specifically the missing
Microsoft Corporation KEK 2K CA 2023.
Initial state
Run all commands below in
PowerShell as Administrator.
Confirm-SecureBootUEFI
Mine returned:
True
Check CA 2023 status:
Get-ItemProperty 'HKLM:\SYSTEM\CurrentControlSet\Control\SecureBoot\Servicing' -ErrorAction SilentlyContinue | Select-Object UEFICA2023Status,UEFICA2023Error,UEFICA2023ErrorEvent,WindowsUEFICA2023Capable,ConfidenceLevel
Check AvailableUpdates:
$u = Get-ItemPropertyValue 'HKLM:\SYSTEM\CurrentControlSet\Control\SecureBoot' -Name AvailableUpdates -ErrorAction SilentlyContinue; "AvailableUpdates = 0x{0:X4}" -f $u
My result was:
UEFICA2023Status = InProgress
AvailableUpdates = 0x4004
UEFICA2023ErrorEvent = 1803
Event 1803 said Windows could not find a
KEK signed by the PK for this device.
This procedure is specifically relevant if you are stuck at:
0x4004 + Event ID 1803
If your system is still at 0x5944, 0x5904, 0x5104, 0x4104, etc., do not assume you have the same problem.
1. Detect the real Downloads folder
This also works if Downloads was moved to another drive:
$Downloads = [Environment]::ExpandEnvironmentVariables((Get-ItemProperty 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders').'{374DE290-123F-4565-9164-39C4925E467B}'); $Downloads
2. Back up Secure Boot variables
$dir = Join-Path $Downloads 'SecureBoot_Backup'; New-Item -ItemType Directory -Path $dir -Force | Out-Null
Get-SecureBootUEFI -Name PK -OutputFilePath "$dir\PK.bin"
Get-SecureBootUEFI -Name KEK -OutputFilePath "$dir\KEK.bin"
Get-SecureBootUEFI -Name db -OutputFilePath "$dir\db.bin"
Get-SecureBootUEFI -Name dbx -OutputFilePath "$dir\dbx.bin"
Keep your
BitLocker recovery key available before changing Secure Boot settings.
3. Download the official Microsoft KEK 2023 certificate
Microsoft certificate:
Microsoft Corporation KEK 2K CA 2023
SHA-1: 459AB6FB5E284D272D5E3E6ABC8ED663829D632B
Signature Owner GUID: 77fa9abd-0359-4d32-bd60-28f4e78f784b
Download:
$arquivo = Join-Path $Downloads 'Microsoft_KEK_2K_CA_2023.der'; Invoke-WebRequest -Uri '
https://go.microsoft.com/fwlink/?linkid=2239775' -OutFile $arquivo
Verify SHA-1:
Get-FileHash $arquivo -Algorithm SHA1
It MUST return:
459AB6FB5E284D272D5E3E6ABC8ED663829D632B
Verify the certificate:
$cert = [System.Security.Cryptography.X509Certificates.X509Certificate2]::new([IO.File]::ReadAllBytes($arquivo)); $cert | Format-List Subject,Issuer,Thumbprint,NotBefore,NotAfter
You should see:
CN=Microsoft Corporation KEK 2K CA 2023
4. Important G5 KC / InsydeH2O detail: use
My FB08 BIOS file browser
did not display the .der file.
I simply made an identical copy with a .cer extension:
$arquivoCer = Join-Path $Downloads 'Microsoft_KEK_2K_CA_2023.cer'; Copy-Item $arquivo $arquivoCer -Force
Verify both files are identical:
Get-FileHash $arquivo -Algorithm SHA256; Get-FileHash $arquivoCer -Algorithm SHA256
The two hashes must match.
Copy:
Microsoft_KEK_2K_CA_2023.cer
to the root of a
FAT32 USB drive.
5. Enroll the KEK manually in BIOS
Enter BIOS with F2.
On my G5 KC FB08:
Security
→ Administer Secure Boot
→ KEK Options
→ Enroll KEK
If the Secure Boot administration options are greyed out, you may need to temporarily set a
Supervisor Password.
Select:
Microsoft_KEK_2K_CA_2023.cer
If the firmware asks for the certificate type, this is an
X.509 DER certificate.
If it asks for the Signature Owner GUID:
77fa9abd-0359-4d32-bd60-28f4e78f784b
IMPORTANT: the goal is to ADD/ENROLL the new KEK.
Do NOT use:
Clear KEK
Delete KEK
Replace KEK
Delete PK
Clear PK
Erase Secure Boot Keys
Reset to Setup Mode
Restore Factory Keys
Install Factory Default Keys
I kept the existing PK, KEKs, DB and DBX unchanged.
Save with F10 and reboot.
6. Confirm the KEK was installed
Back in Windows, PowerShell as Administrator:
[System.Text.Encoding]::ASCII.GetString((Get-SecureBootUEFI KEK).Bytes) -match 'Microsoft Corporation KEK 2K CA 2023'
Mine returned:
True
Also verify:
Confirm-SecureBootUEFI
It should remain:
True
7. Let Windows finish the migration
Run:
Start-ScheduledTask -TaskPath '\Microsoft\Windows\PI\' -TaskName 'Secure-Boot-Update'
Then reboot.
Check again:
$u = Get-ItemPropertyValue 'HKLM:\SYSTEM\CurrentControlSet\Control\SecureBoot' -Name AvailableUpdates; "AvailableUpdates = 0x{0:X4}" -f $u
Mine changed from:
0x4004
to:
0x4000
Then:
Get-ItemProperty 'HKLM:\SYSTEM\CurrentControlSet\Control\SecureBoot\Servicing' | Select-Object UEFICA2023Status,UEFICA2023Error,UEFICA2023ErrorEvent,WindowsUEFICA2023Capable
Final result:
UEFICA2023Status : Updated
UEFICA2023Error :
UEFICA2023ErrorEvent :
WindowsUEFICA2023Capable : 2
Finally, check Events 1803/1808:
Get-WinEvent -FilterHashtable @{LogName='System';ProviderName='Microsoft-Windows-TPM-WMI';Id=1803,1808} -MaxEvents 10 | Select-Object TimeCreated,Id,Message | Format-List
After the fix I got a new:
Event ID 1808
showing:
Windows UEFI CA 2023 (DB)
Option ROM CA 2023 (DB)
3P UEFI CA 2023 (DB)
KEK 2023
Boot Manager (2023)
So the migration was fully completed.
My confirmed configuration
Gigabyte G5 KC
SKU RC45KC
InsydeH2O BIOS FB08
Secure Boot enabled
Before:
UEFICA2023Status = InProgress
AvailableUpdates = 0x4004
Event 1803
After:
Microsoft Corporation KEK 2K CA 2023 = present
UEFICA2023Status = Updated
AvailableUpdates = 0x4000
Event 1808
My Gigabyte Platform Key was:
CN=GIGABYTE
SHA-1: D8D027127DA4A8F9CF2F361D4E27116DE5FC8630
Windows did not have an OEM-signed KEK update matching this PK, which explains Event 1803. The InsydeH2O firmware, however, allowed local physical-presence enrollment of the official Microsoft KEK 2023 certificate.
After adding only that certificate, Windows completed everything normally.
Official references
Microsoft Secure Boot troubleshooting:
Secure Boot troubleshooting guide | Microsoft Support
Microsoft Event IDs 1803/1808:
Secure Boot DB and DBX variable update events | Microsoft Support
Microsoft Secure Boot key management:
Windows Secure Boot Key Creation and Management Guidance
Microsoft Secure Boot objects repository:
GitHub - microsoft/secureboot_objects: Secure boot objects recommended by Microsoft.
KEK 2023 certificate:
secureboot_objects/PreSignedObjects/KEK/Certificates/microsoft corporation kek 2k ca 2023.der at main · microsoft/secureboot_objects
Obviously, Secure Boot key changes carry some risk. Back up your variables and BitLocker recovery key first. This is a confirmed result on my G5 KC / FB08; do not blindly apply it to unrelated firmware implementations.