go-attestation/attributecert/testdata/Intel_pc4.cer.json
Matthew Garrett f5fa92f739
First attempt at adding support for attribute certificates (#117)
Platform certificates are defined as RFC5755 attribute certificates with
various additional attributes and extensions defined in the TCG Platform
Certificate Profile. Add support for parsing them, derived from
crypto/x509. Include some test certificates and verify we parse them.
2019-10-27 23:12:15 -07:00

168 lines
6.4 KiB
JSON

{
"Raw": "MIIDjjCCAvcCAQEwMKAuMBakFDASMRAwDgYDVQQDDAdTVE1pY3JvAhQHAIGFZ/81eRaQ0tQElF31aw5tx6CBkDCBjaSBijCBhzELMAkGA1UEBhMCVVMxCzAJBgNVBAgMAkNBMRQwEgYDVQQHDAtTYW50YSBDbGFyYTEaMBgGA1UECgwRSW50ZWwgQ29ycG9yYXRpb24xITAfBgNVBAsMGFRyYW5zcGFyZW50IFN1cHBseSBDaGFpbjEWMBQGA1UEAwwNd3d3LmludGVsLmNvbTANBgkqhkiG9w0BAQUFAAIUApPA+zckUw886Rk8yaf+cEEZzbYwIhgPMjAxNzA0MjExNzA1MjlaGA8yMDMwMTIzMTIzNTk1OVowMTAZBgVngQUCETEQMA4wCQIBAQIBAgIBAQwBMTAUBgVngQUCEzELMAkCAQCCAQMBAQAwggGvMIGtBgNVHSABAf8EgaIwgZ8wgZwGCiqGSIb4TQEFAgQwgY0wLwYIKwYBBQUHAgIwIwwhVENQQSBUcnVzdGVkIFBsYXRmb3JtIEVuZG9yc2VtZW50MFoGCCsGAQUFBwIBFk5odHRwczovL3RydXN0ZWRzZXJ2aWNlcy5pbnRlbC5jb20vY29udGVudC9UU0MvY2VydHMvVFNDY2VydFBvbGljeVN0YXRlbWVudC5wZGYwdwYDVR0RAQH/BG0wa6RpMGcxEDAOBgVngQUCBAwFSW50ZWwxFTATBgVngQUCBQwKREUzODE1VFlLSDEVMBMGBWeBBQIGDApIMjY5OTgtNDAyMSUwIwYGZ4EFBQEGDBlHNllLNDIzMDBDODcsR0VUWTQyMTAwMUdWMB8GA1UdIwQYMBaAFCjTsOj/JJ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bTBrpGkwZzEQMA4GBWeBBQIEDAVJbnRlbDEVMBMGBWeBBQIFDApERTM4MTVUWUtIMRUwEwYFZ4EFAgYMCkgyNjk5OC00MDIxJTAjBgZngQUFAQYMGUc2WUs0MjMwMEM4NyxHRVRZNDIxMDAxR1YwHwYDVR0jBBgwFoAUKNOw6P8kn/aMA+KLxQxiri36Z4IwYwYIKwYBBQUHAQEEVzBVMFMGCCsGAQUFBzAChkdodHRwczovL3RydXN0ZWRzZXJ2aWNlcy5pbnRlbC5jb20vY29udGVudC9UU0MvY2VydHMvSW50ZWxTaWduaW5nS2V5LmNlcg==",
"Signature": "d6OzjNhd4KfyTOhqO4PDcbjqlDiGPO3bBMexatWTJ3uC5y2Qt3POx2KpbwejbQrA7oGJurh7YHtCiPOKF7gbeLQdCYE0IVeWxh5mIkgIs+OUG9SPswBmwBFz6Ay1McW+hg6v4Xtok6SH9fxRK15cdbyP9m+VdBSAxNs4JsZOQeo=",
"SignatureAlgorithm": 0,
"Version": 2,
"SerialNumber": 14713002128900822875530586530101450951391563190,
"Holder": {
"Issuer": {
"Country": null,
"Organization": null,
"OrganizationalUnit": null,
"Locality": null,
"Province": null,
"StreetAddress": null,
"PostalCode": null,
"SerialNumber": "",
"CommonName": "STMicro",
"Names": [
{
"Type": [
2,
5,
4,
3
],
"Value": "STMicro"
}
],
"ExtraNames": null
},
"Serial": 39974218276442478052338187117424437099638975943
},
"Issuer": {
"Country": [
"US"
],
"Organization": [
"Intel Corporation"
],
"OrganizationalUnit": [
"Transparent Supply Chain"
],
"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"
},
{
"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": "2017-04-21T17:05:29Z",
"NotAfter": "2030-12-31T23:59:59Z",
"TCGPlatformSpecification": {
"Version": {
"MajorVersion": 1,
"MinorVersion": 2,
"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": 0,
"Iso9000Certified": false,
"Iso9000Uri": ""
},
"PlatformManufacturer": "Intel",
"PlatformModel": "DE3815TYKH",
"PlatformVersion": "H26998-402",
"PlatformSerial": "G6YK42300C87,GETY421001GV",
"CredentialSpecification": "",
"UserNotice": {
"NoticeRef": {
"Organization": "",
"NoticeNumbers": null
},
"ExplicitText": ""
}
}