public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [edk2-devel] Secure Boot: error enrolling dbx from uefi.org into dbxDefault (file is in wrong format?)
@ 2024-11-27  1:32 Rebecca Cran
  0 siblings, 0 replies; only message in thread
From: Rebecca Cran @ 2024-11-27  1:32 UTC (permalink / raw)
  To: devel@edk2.groups.io; +Cc: Doug Flick, Kun Qin

I'm working on Secure Boot support and noticed the dbxDefault variable 
isn't being created: during boot I get the messages:

SecureBootFetchData: Invalid key format: 0
Content for dbxDefault not found


I'm using ArmPlatformPkg/SecureBootDefaultKeys.fdf.inc to add the data 
to my firmware.

The problem appears to be this: at https://uefi.org/revocationlistfile 
it says:

"These files are used to update the Secure Boot Forbidden Signature 
Database, dbx. It contains the raw bytes passed in *Data to 
SetVariable()... an EFI_VARIABLE_AUTHENTICATION_2 concatenated with the 
new variable value.  Example usage: SetVariable( "dbx", 
EFI_IMAGE_SECURITY_DATABASE_GUID, NV+BS+RT+AT+AppendWrite, 
dbxUpdateDotBin_sizeInBytes, *dbxUpdateDotBin_bytes). dbxupdate.bin 
already contains a Microsoft KEK signature (encoded as specified by the 
UEFI spec)."


But SecureBootFetchData calls RsaGetPublicKeyFromX509, which won't work 
because the data is in the wrong format?

Looking at the files in the release from 
https://github.com/microsoft/secureboot_objects it looks like they're 
also in the format suitable for calling SetVariable, not for parsing as 
X509.


Has anyone else come across this and knows of a solution?


-- 

Rebecca Cran



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#120848): https://edk2.groups.io/g/devel/message/120848
Mute This Topic: https://groups.io/mt/109800343/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-11-27  1:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-27  1:32 [edk2-devel] Secure Boot: error enrolling dbx from uefi.org into dbxDefault (file is in wrong format?) Rebecca Cran

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox