diff --git a/crates/utils/tcbinfo-updater/src/main.rs b/crates/utils/tcbinfo-updater/src/main.rs index 8df9612..4cea74a 100644 --- a/crates/utils/tcbinfo-updater/src/main.rs +++ b/crates/utils/tcbinfo-updater/src/main.rs @@ -98,7 +98,11 @@ async fn upsert_tcbinfo() -> Result<(), &'static str> { } fn verify_signature (tcbinfo: Value, key: VerifyingKey) { - let signed_tcbinfo = SignedTcbInfo::try_from(tcbinfo.as_str().expect("failed to parse tcbinfo json")).expect("tcbinfo string parsing failed"); + tcbinfo_json = tcbinfo.as_str(); + if let Err(e) = tcbinfo_json { + println!("{tcbinfo:?}"); + } + let signed_tcbinfo = SignedTcbInfo::try_from().expect("tcbinfo string parsing failed"); signed_tcbinfo.verify(Some(&key), None).expect("could not verify signature"); }