]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
runqemu: Add support to handle EnrollDefaultKeys PK/KEK1 certificate
authorRicardo Neri <ricardo.neri-calderon@linux.intel.com>
Mon, 5 Aug 2019 22:18:23 +0000 (18:18 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 12 Aug 2019 15:23:57 +0000 (16:23 +0100)
commit9b90717e9102a31dd8b99b16d62cd644091fd57e
treed2ec7b9abd1542350e672e02efbc860563157614
parentc7fb87ee6fb9cc4c6ed8bf93978445a0794e40aa
runqemu: Add support to handle EnrollDefaultKeys PK/KEK1 certificate

The EnrollDefaultKeys.efi application (distributed in ovmf-shell-image)
expects the hypervisor to provide a Platform Key and first Key Exchange
Key certificate.

For QEMU, this is done by adding an OEM string in the Type 11 SMBIOS
table. The string contains the EnrollDefaultKeys application GUID followed
by the certificate string. For now, the string is passed in the command
line until QEMU understands OEM strings from regular files (please see
https://bugs.launchpad.net/qemu/+bug/1826200).

If runqemu detects it is given an OVMF binary with support for Secure Boot
(i.e., ovmf.secboot* binaries), extract the certificate string from the
OvmfPkKek1.pem certificate and modify the command-line parameters to
provide the key. Such certificate is created when building OVMF with
support for Secure Boot.

Cc: Ross Burton <ross.burton@intel.com>
Cc: Patrick Ohly <patrick.ohly@intel.com>
(From OE-Core rev: 5e47316ae62f7632fb62bc3b8093ac42f9e3541c)

Signed-off-by: Ricardo Neri <ricardo.neri-calderon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/runqemu