mirror of
https://github.com/rust-osdev/uefi-rs
synced 2026-06-08 17:17:36 +00:00
Add CA trust database to the repo.
This is needed for https support (tls server certificate verification). Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
committed by
Nicholas Bishop
parent
8585fef9de
commit
3fc70b0df7
@@ -0,0 +1,7 @@
|
||||
https ca cert database in efi signature list format
|
||||
|
||||
Copied over from centos stream 9 where this is available as
|
||||
/etc/pki/ca-trust/extracted/edk2/cacerts.bin
|
||||
|
||||
It's the Mozilla Foundation CA certificate list, shipped in
|
||||
ca-certificates.rpm, licensed as "MIT AND GPL-2.0-or-later".
|
||||
Binary file not shown.
@@ -531,6 +531,12 @@ pub fn run_qemu(arch: UefiArch, opt: &QemuOpt) -> Result<()> {
|
||||
None
|
||||
};
|
||||
|
||||
// Pass CA certificate database to the edk2 firmware, for TLS support.
|
||||
cmd.args([
|
||||
"-fw_cfg",
|
||||
"name=etc/edk2/https/cacerts,file=uefi-test-runner/https/cacerts.bin",
|
||||
]);
|
||||
|
||||
// Set up a software TPM if requested.
|
||||
let _tpm = if let Some(tpm_version) = opt.tpm {
|
||||
let tpm = Swtpm::spawn(tpm_version)?;
|
||||
|
||||
Reference in New Issue
Block a user