Skip to content

Commit

Permalink
coreos-base/coreos-sb-keys: Drop unnecessary PK and KEK certificates
Browse files Browse the repository at this point in the history
These are only needed when you are going to ship DB updates to existing
systems, which we are not going to do. Our EFI variables are only for
testing. End users are expected to use EFI variables provided by their
hosts or hardware vendors. We presumably provided these before because
some PK and KEK does need to be provided, but we can now use the
Microsoft and Red Hat ones provided via Gentoo's edk2 package.

Signed-off-by: James Le Cuirot <[email protected]>
  • Loading branch information
chewi committed Nov 8, 2024
1 parent bee36f6 commit 3e00e3f
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 102 deletions.
2 changes: 0 additions & 2 deletions build_library/vm_image_util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -874,8 +874,6 @@ _write_qemu_uefi_secure_conf() {
virt-fw-vars \
--input "${flash_in}" \
--output "$(_dst_dir)/${flash_rw}" \
--set-pk "${owner}" /usr/share/sb_keys/PK.crt \
--add-kek "${owner}" /usr/share/sb_keys/KEK.crt \
--add-db "${owner}" /usr/share/sb_keys/DB.crt

sed -e "s%^SECURE_BOOT=.*%SECURE_BOOT=1%" -i "${script}"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
## Keys & Certificates

- PK (Platform Key): The Platform Key is the key to the platform.
- KEK (Key Exchange Key): The Key Exchange Key is used to update the signature database.
- DB (Signature Database): The signature database is used to validate signed EFI binaries.
- Shim Certificates: Our set of certificates

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ S="${WORKDIR}"

src_install() {
insinto /usr/share/sb_keys
newins "${FILESDIR}/PK.key" PK.key
newins "${FILESDIR}/PK.crt" PK.crt
newins "${FILESDIR}/KEK.key" KEK.key
newins "${FILESDIR}/KEK.crt" KEK.crt
newins "${FILESDIR}/DB.key" DB.key
newins "${FILESDIR}/DB.crt" DB.crt

Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 3e00e3f

Please sign in to comment.