mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-07-24 07:50:40 -04:00
DO NOT MERGE! attestation: use ark from THIM
remove this commit eventually.
This commit is contained in:
parent
6fa51f73d8
commit
1e7d21e071
1 changed files with 6 additions and 1 deletions
|
@ -122,6 +122,11 @@ func (v *Validator) getTrustedKey(ctx context.Context, attDoc vtpm.AttestationDo
|
|||
return nil, fmt.Errorf("parsing ASK certificate: %w", err)
|
||||
}
|
||||
|
||||
ark, err := x509.ParseCertificate(att.CertificateChain.ArkCert)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("parsing ARK certificate: %w", err)
|
||||
}
|
||||
|
||||
verifyOpts := &verify.Options{
|
||||
TrustedRoots: map[string][]*trust.AMDRootCerts{
|
||||
"Genoa": {
|
||||
|
@ -129,7 +134,7 @@ func (v *Validator) getTrustedKey(ctx context.Context, attDoc vtpm.AttestationDo
|
|||
Product: "Genoa",
|
||||
ProductCerts: &trust.ProductCerts{
|
||||
Ask: ask,
|
||||
Ark: trustedArk,
|
||||
Ark: ark,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue