Skip to content

image: Add derived_signing_key - #430

Merged
daandemeyer merged 1 commit into
amutable:mainfrom
daandemeyer:derived-signing-key
Nov 23, 2026
Merged

daandemeyer merged 1 commit into
amutable:mainfrom
daandemeyer:derived-signing-key

Conversation

@daandemeyer

Copy link
Copy Markdown
Member

generate_signing_key keeps a random pair per workspace, so a host image from one project can't trust the verity signatures of an extension from another project without a copy of its certificate. Let's add derived_signing_key, which derives an ECDSA P-256 pair from the target name, so every project that declares a key with the same name gets the same pair. Anyone who knows the name can compute the private key, and UEFI firmware only enrolls RSA keys (edk2's CheckSignatureListFormat() rejects any certificate that RsaGetPublicKeyFromX509() can't parse), so it's a development key for verity signatures only. The Secure Boot example now signs demo-ext with a derived key.

generate_signing_key keeps a random pair per workspace, so a host image from
one project can't trust the verity signatures of an extension from another
project without a copy of its certificate. Let's add derived_signing_key,
which derives an ECDSA P-256 pair from the target name, so every project that
declares a key with the same name gets the same pair. Anyone who knows the
name can compute the private key, and UEFI firmware only enrolls RSA keys, so
it's a development key for verity signatures only.

Signed-off-by: Daan De Meyer <daan@amutable.com>
@daandemeyer
daandemeyer merged commit b816535 into amutable:main Nov 23, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants