mirror of
https://github.com/google/go-attestation.git
synced 2024-12-19 04:57:59 +00:00
f5fa92f739
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.
168 lines
6.0 KiB
JSON
168 lines
6.0 KiB
JSON
{
|
|
"Raw": "MIIDADCCAegCAQEwMKAuMBakFDASMRAwDgYDVQQDDAdTVE1pY3JvAhQHAIGFZ/81eRaQ0tQElF31aw5tx6CBkDCBjaSBijCBhzELMAkGA1UEBhMCVVMxCzAJBgNVBAgMAkNBMRQwEgYDVQQHDAtTYW50YSBDbGFyYTEaMBgGA1UECgwRSW50ZWwgQ29ycG9yYXRpb24xITAfBgNVBAsMGFRyYW5zcGFyZW50IFN1cHBseSBDaGFpbjEWMBQGA1UEAwwNd3d3LmludGVsLmNvbTANBgkqhkiG9w0BAQUFAAIUVN7ryhYi819dSl1Zt999CapH6e8wIhgPMjAxNzAzMjMyMjM0MzNaGA8yMDMwMTIzMTIzNTk1OVowMTAZBgVngQUCETEQMA4wCQIBAQIBAgIBAQwBMTAUBgVngQUCEzELMAkCAQCCAQMBAQAwgaEwTQYDVR0gAQH/BEMwQTA/BgoqhkiG+E0BBQIEMDEwLwYIKwYBBQUHAgIwIwwhVENQQSBUcnVzdGVkIFBsYXRmb3JtIEVuZG9yc2VtZW50MFAGA1UdEQEB/wRGMESkQjBAMRAwDgYFZ4EFAgQMBUludGVsMRUwEwYFZ4EFAgUMCkRFMzgxNVRZS0gxFTATBgVngQUCBgwKSDI2OTk4LTQwMjANBgkqhkiG9w0BAQUFAAOCAQEAZ6v7uR4PBhyozOXapFEEl40QIN4R2mX9ff0OfFG4QhiwM8MtgqygwUpIw57hYDpZOfhHEbGVCSrLM/ujWxmAGQAsIyaJTtD30X+pBFDnq97v0JjBKDi+tFlbims+INEWTU7z1YCswWuGVLbnQ7Kh0Dl1I4cNASXqkMMZjByYH/1Wh++DQ+vAgziOxZMBZlZ3s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PBpS1K19sRXYbVhROlEqK3cejsYG0EhaOmszSI/IXOhLQL6ntz57Vrpzk0T8tuet1gFmI/FoDy4CGm9YiBl1cr4iZiMmKgc2rubmcku9M6+KBo9g==",
|
|
"SignatureAlgorithm": 0,
|
|
"Version": 2,
|
|
"SerialNumber": 484526530336932890242076058223020130738509441519,
|
|
"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-03-23T22:34:33Z",
|
|
"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": "",
|
|
"CredentialSpecification": "",
|
|
"UserNotice": {
|
|
"NoticeRef": {
|
|
"Organization": "",
|
|
"NoticeNumbers": null
|
|
},
|
|
"ExplicitText": ""
|
|
}
|
|
} |