Skip to content

Commit

Permalink
Merge pull request #73 from msanft/fix/use-reported-tcb-vcek-url
Browse files Browse the repository at this point in the history
fix: Use reported TCB when fetching VCEK
  • Loading branch information
deeglaze authored Aug 31, 2023
2 parents d8660ce + c673691 commit c83c3d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion verify/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ func fillInAttestation(attestation *spb.Attestation, options *Options) error {
}
}
if len(chain.GetVcekCert()) == 0 {
vcekURL := kds.VCEKCertURL(product, report.GetChipId(), kds.TCBVersion(report.GetCurrentTcb()))
vcekURL := kds.VCEKCertURL(product, report.GetChipId(), kds.TCBVersion(report.GetReportedTcb()))
vcek, err := getter.Get(vcekURL)
if err != nil {
return &trust.AttestationRecreationErr{
Expand Down

0 comments on commit c83c3d9

Please sign in to comment.