From 0238b3fd2ce89a53e8cf76af1369249af84a78a4 Mon Sep 17 00:00:00 2001 From: Larry Dewey Date: Tue, 5 Mar 2024 09:52:12 -0600 Subject: [PATCH] URL: Fixing URL breakage There is a bug in the code as the AMD KDS is URL case-sensitive. Signed-off-by: Larry Dewey --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/fetch.rs | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 9148765..769d7b4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1380,7 +1380,7 @@ dependencies = [ [[package]] name = "snpguest" -version = "0.4.0" +version = "0.4.1" dependencies = [ "anyhow", "asn1-rs", diff --git a/Cargo.toml b/Cargo.toml index 0a53f2b..d98a280 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "snpguest" -version = "0.4.0" +version = "0.4.1" authors = ["The VirTEE Project Developers"] edition = "2021" license = "Apache-2.0" diff --git a/src/fetch.rs b/src/fetch.rs index d8f98b0..8045a60 100644 --- a/src/fetch.rs +++ b/src/fetch.rs @@ -134,7 +134,8 @@ mod cert_authority { // Should make -> https://kdsintf.amd.com/vcek/v1/{SEV_PROD_NAME}/cert_chain let url: String = format!( - "{KDS_CERT_SITE}/{endorser}/v1/{}/{KDS_CERT_CHAIN}", + "{KDS_CERT_SITE}/{}/v1/{}/{KDS_CERT_CHAIN}", + endorser.to_string().to_lowercase(), processor_model.to_kds_url() );