mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-07-26 00:35:19 -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)
|
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{
|
verifyOpts := &verify.Options{
|
||||||
TrustedRoots: map[string][]*trust.AMDRootCerts{
|
TrustedRoots: map[string][]*trust.AMDRootCerts{
|
||||||
"Genoa": {
|
"Genoa": {
|
||||||
|
@ -129,7 +134,7 @@ func (v *Validator) getTrustedKey(ctx context.Context, attDoc vtpm.AttestationDo
|
||||||
Product: "Genoa",
|
Product: "Genoa",
|
||||||
ProductCerts: &trust.ProductCerts{
|
ProductCerts: &trust.ProductCerts{
|
||||||
Ask: ask,
|
Ask: ask,
|
||||||
Ark: trustedArk,
|
Ark: ark,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue