Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 19b5100

Browse files
committedApr 15, 2025
Add CA trust database to the repo.
This is needed for https support (tls server certificate verification). Signed-off-by: Gerd Hoffmann <[email protected]>
1 parent d5fb966 commit 19b5100

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed
 

‎uefi-test-runner/https/README.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
https ca cert database in efi signature list format
2+
3+
Copied over from centos stream 9 where this is available as
4+
/etc/pki/ca-trust/extracted/edk2/cacerts.bin
5+
6+
It's the Mozilla Foundation CA certificate list, shipped in
7+
ca-certificates.rpm, licensed as "MIT AND GPL-2.0-or-later".

‎uefi-test-runner/https/cacerts.bin

160 KB
Binary file not shown.

‎xtask/src/qemu.rs

+6
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,12 @@ pub fn run_qemu(arch: UefiArch, opt: &QemuOpt) -> Result<()> {
540540
None
541541
};
542542

543+
// Pass CA certificate database to the edk2 firmware, for TLS support.
544+
cmd.args([
545+
"-fw_cfg",
546+
"name=etc/edk2/https/cacerts,file=uefi-test-runner/https/cacerts.bin",
547+
]);
548+
543549
// Set up a software TPM if requested.
544550
let _tpm = if let Some(tpm_version) = opt.tpm {
545551
let tpm = Swtpm::spawn(tpm_version)?;

0 commit comments

Comments
 (0)
Please sign in to comment.