diff --git a/cli/internal/cmd/verify.go b/cli/internal/cmd/verify.go index 68f787641e1..b422d641dcf 100644 --- a/cli/internal/cmd/verify.go +++ b/cli/internal/cmd/verify.go @@ -809,7 +809,7 @@ func newSNPReport(reportBytes []byte) (res verify.SNPReport, err error) { SignerInfo: verify.SignerInfo{ AuthorKey: signerInfo.AuthorKeyEn, MaskChipKey: signerInfo.MaskChipKey, - SigningKey: signerInfo.SigningKey, + SigningKey: signerInfo.SigningKey.String(), }, ReportData: report.ReportData, Measurement: report.Measurement, diff --git a/internal/verify/verify.go b/internal/verify/verify.go index 086c4c7ebe2..fa24666555f 100644 --- a/internal/verify/verify.go +++ b/internal/verify/verify.go @@ -14,7 +14,6 @@ package verify import ( "crypto/x509" - "fmt" "github.com/golang-jwt/jwt/v5" ) @@ -57,9 +56,9 @@ type PlatformInfo struct { // SignerInfo contains the signer information. type SignerInfo struct { - AuthorKey bool `json:"author_key_en"` - MaskChipKey bool `json:"mask_chip_key"` - SigningKey fmt.Stringer `json:"signing_key"` + AuthorKey bool `json:"author_key_en"` + MaskChipKey bool `json:"mask_chip_key"` + SigningKey string `json:"signing_key"` } // SNPReport contains the SNP report data.