go-attestation/attributecert/testdata/Intel_nuc1.cer.json
Matthew Garrett 3538e3d287 Fix broken tag statements
A number of the struct definitions had broken tag definitions, which
meant some parsing was working by accident and some parsing was entirely
broken. Fixing this uncovered some additional issues (a mixture of
incorrect definitions and platform certificates that violate the spec),
so this is all cleaned up as well.
2020-05-08 14:32:33 -07:00

201 lines
9.9 KiB
JSON

{
"Raw": "MIIHZzCCBc8CAQEwgZWggZIwgYmkgYYwgYMxCzAJBgNVBAYTAkRFMSEwHwYDVQQKDBhJbmZpbmVvbiBUZWNobm9sb2dpZXMgQUcxGjAYBgNVBAsMEU9QVElHQShUTSkgVFBNMi4wMTUwMwYDVQQDDCxJbmZpbmVvbiBPUFRJR0EoVE0pIFJTQSBNYW51ZmFjdHVyaW5nIENBIDAyMgIEewdr5KCBpTCBoqSBnzCBnDELMAkGA1UEBhMCVVMxCzAJBgNVBAgMAkNBMRQwEgYDVQQHDAtTYW50YSBDbGFyYTEaMBgGA1UECgwRSW50ZWwgQ29ycG9yYXRpb24xNjA0BgNVBAsMLVRyYW5zcGFyZW50IFN1cHBseSBDaGFpbiBJc3N1aW5nIENBIElLR0ZfVEVTVDEWMBQGA1UEAwwNd3d3LmludGVsLmNvbTANBgkqhkiG9w0BAQsFAAIURWDgSMFKL0n0S+ktvxmwCYC4Sf8wIhgPMjAxODEwMDYyMTA5MzNaGA8yMDMyMDUzMTEwMjMwMlowggJ5MBwGBWeBBQIRMRMwETAJAgECAgEAAgEBBAQAAAABMBIGBWeBBQIZMQkwBwYFZ4EFCAIwFgYFZ4EFAhcxDTALMAkCAQECAQECAQkwFAYFZ4EFAhMxCzAJAgEAggEDAQEAMIIBzQYHZ4EFBQEHATGCAcAwggG8oIIBOTA8BAQBAAAADBRJbnRlbChSKSBDb3Jwb3JhdGlvbgwHQ29yZSBpNYAIWDIzOTgzOTKBAzIuNoIDMzQzgwH/MDgEBAMAAAAMB1NhbXN1bmcMEE00NzFBNTE0M0VCMC1DUEKACEFCQzQ1OTg5gQMz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191883026258511591308753565665791,
"Holder": {
"Issuer": {
"Country": [
"DE"
],
"Organization": [
"Infineon Technologies AG"
],
"OrganizationalUnit": [
"OPTIGA(TM) TPM2.0"
],
"Locality": null,
"Province": null,
"StreetAddress": null,
"PostalCode": null,
"SerialNumber": "",
"CommonName": "Infineon OPTIGA(TM) RSA Manufacturing CA 022",
"Names": [
{
"Type": [
2,
5,
4,
6
],
"Value": "DE"
},
{
"Type": [
2,
5,
4,
10
],
"Value": "Infineon Technologies AG"
},
{
"Type": [
2,
5,
4,
11
],
"Value": "OPTIGA(TM) TPM2.0"
},
{
"Type": [
2,
5,
4,
3
],
"Value": "Infineon OPTIGA(TM) RSA Manufacturing CA 022"
}
],
"ExtraNames": null
},
"Serial": 2064083940
},
"Issuer": {
"Country": [
"US"
],
"Organization": [
"Intel Corporation"
],
"OrganizationalUnit": [
"Transparent Supply Chain Issuing CA IKGF_TEST"
],
"Locality": [
"Santa Clara"
],
"Province": [
"CA"
],
"StreetAddress": null,
"PostalCode": null,
"SerialNumber": "",
"CommonName": "www.intel.com",
"Names": [
{
"Type": [
2,
5,
4,
6
],
"Value": "US"
},
{
"Type": [
2,
5,
4,
8
],
"Value": "CA"
},
{
"Type": [
2,
5,
4,
7
],
"Value": "Santa Clara"
},
{
"Type": [
2,
5,
4,
10
],
"Value": "Intel Corporation"
},
{
"Type": [
2,
5,
4,
11
],
"Value": "Transparent Supply Chain Issuing CA IKGF_TEST"
},
{
"Type": [
2,
5,
4,
3
],
"Value": "www.intel.com"
}
],
"ExtraNames": null
},
"Subject": {
"Country": null,
"Organization": null,
"OrganizationalUnit": null,
"Locality": null,
"Province": null,
"StreetAddress": null,
"PostalCode": null,
"SerialNumber": "",
"CommonName": "",
"Names": null,
"ExtraNames": null
},
"NotBefore": "2018-10-06T21:09:33Z",
"NotAfter": "2032-05-31T10:23:02Z",
"TCGPlatformSpecification": {
"Version": {
"MajorVersion": 2,
"MinorVersion": 0,
"Revision": 1
}
},
"TBBSecurityAssertions": {
"Version": 0,
"CcInfo": {
"Version": "",
"AssuranceLevel": 0,
"EvaluationStatus": 0,
"Plus": false,
"StrengthOfFunction": 0,
"ProfileOid": null,
"ProfileURI": "",
"TargetOid": null,
"TargetURI": null
},
"FipsLevel": {
"Version": "",
"Level": 0,
"Plus": false
},
"RtmType": 3,
"Iso9000Certified": false,
"Iso9000URI": ""
},
"PlatformManufacturer": "Intel Corporation",
"PlatformModel": "NUC7i5DNHE",
"PlatformVersion": "J71739-401",
"PlatformSerial": "DW1600420300110_BTDN732000QM",
"CredentialSpecification": "",
"UserNotice": {
"NoticeRef": {
"Organization": "",
"NoticeNumbers": null
},
"ExplicitText": ""
}
}