From 59fa6e3c3f3f63e8a281e6744e7130a385f10654 Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Mon, 8 Jan 2024 13:42:22 +0100 Subject: [PATCH] attestation/snp: use OID range 1.3.9901.2 for snp Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- internal/attestation/snp/issuer.go | 2 +- internal/attestation/snp/validator.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/attestation/snp/issuer.go b/internal/attestation/snp/issuer.go index c41c7b147f..cfebb98e2d 100644 --- a/internal/attestation/snp/issuer.go +++ b/internal/attestation/snp/issuer.go @@ -29,7 +29,7 @@ func NewIssuer(log *slog.Logger) *Issuer { // OID returns the OID of the issuer. func (i *Issuer) OID() asn1.ObjectIdentifier { - return asn1.ObjectIdentifier{1, 3, 9900, 77, 77} + return asn1.ObjectIdentifier{1, 3, 9901, 2, 1} } // Issue the attestation document. diff --git a/internal/attestation/snp/validator.go b/internal/attestation/snp/validator.go index 403d9a591a..ceccb437f7 100644 --- a/internal/attestation/snp/validator.go +++ b/internal/attestation/snp/validator.go @@ -68,7 +68,7 @@ func NewValidatorWithCallbacks(optsGen validateOptsGenerator, log *slog.Logger, // OID returns the OID of the validator. func (v *Validator) OID() asn1.ObjectIdentifier { - return asn1.ObjectIdentifier{1, 3, 9900, 77, 77} + return asn1.ObjectIdentifier{1, 3, 9901, 2, 2} } // Validate a TPM based attestation.