Skip to content

Commit 22f8d2d

Browse files
committed
Add certificate cases
Signed-off-by: Basil Hess <[email protected]>
1 parent 5ed95f6 commit 22f8d2d

File tree

2 files changed

+440
-0
lines changed

2 files changed

+440
-0
lines changed
Lines changed: 161 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,161 @@
1+
{
2+
"bomFormat": "CycloneDX",
3+
"specVersion": "1.7",
4+
"serialNumber": "urn:uuid:e8c355aa-2142-4084-a8c7-6d42c8610ba2",
5+
"version": 1,
6+
"metadata": {
7+
"timestamp": "2024-01-09T12:00:00Z",
8+
"component": {
9+
"type": "application",
10+
"name": "my application",
11+
"version": "1.0"
12+
}
13+
},
14+
"components": [
15+
{
16+
"name": "google.com",
17+
"type": "cryptographic-asset",
18+
"bom-ref": "c9c7ac91-2115-45e8-ae13-7d0e1dec74be",
19+
"cryptoProperties": {
20+
"assetType": "certificate",
21+
"certificateProperties": {
22+
"serialNumber": "1234567890ABCDEF",
23+
"subjectName": "CN = www.google.com",
24+
"issuerName": "C = US, O = Google Trust Services LLC, CN = GTS CA 1C3",
25+
"notValidBefore": "2016-11-21T08:00:00Z",
26+
"notValidAfter": "2017-11-22T07:59:59Z",
27+
"certificateFormat": "X.509",
28+
"certificateFileExtension": "crt",
29+
"fingerprint": {
30+
"alg": "SHA-256",
31+
"content": "1e15e0fbd3ce95bde5945633ae96add551341b11e5bae7bba12e98ad84a5beb4"
32+
},
33+
"certificateState": [
34+
{
35+
"state": "active",
36+
"reason": "Certificate is currently valid and in use"
37+
}
38+
],
39+
"creationDate": "2016-11-21T07:30:00Z",
40+
"activationDate": "2016-11-21T08:00:00Z",
41+
"relatedCryptographicAssets": [
42+
{
43+
"type": "algorithm",
44+
"ref": "6b00f384-6c39-420f-91eb-94de0f7be569RR"
45+
},
46+
{
47+
"type": "publicKey",
48+
"ref": "ceb37320-8239-40e8-ab77-8798dbd98773"
49+
}
50+
]
51+
},
52+
"oid": "2.5.4.3"
53+
}
54+
},
55+
{
56+
"name": "SHA512withRSA",
57+
"type": "cryptographic-asset",
58+
"bom-ref": "6b00f384-6c39-420f-91eb-94de0f7be569",
59+
"cryptoProperties": {
60+
"assetType": "algorithm",
61+
"algorithmProperties": {
62+
"primitive": "signature",
63+
"executionEnvironment": "software-plain-ram",
64+
"implementationPlatform": "x86_64",
65+
"certificationLevel": [ "none" ],
66+
"padding": "pkcs1v15",
67+
"cryptoFunctions": [ "sign", "verify" ]
68+
},
69+
"oid": "1.2.840.113549.1.1.13"
70+
}
71+
},
72+
{
73+
"name": "RSA-2048",
74+
"type": "cryptographic-asset",
75+
"bom-ref": "ceb37320-8239-40e8-ab77-8798dbd98773",
76+
"cryptoProperties": {
77+
"assetType": "related-crypto-material",
78+
"relatedCryptoMaterialProperties": {
79+
"type": "public-key",
80+
"id": "2e9ef09e-dfac-4526-96b4-d02f31af1b22",
81+
"state": "active",
82+
"size": 2048,
83+
"format": "PEM",
84+
"value": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA...\n-----END PUBLIC KEY-----",
85+
"creationDate": "2016-11-21T08:00:00Z",
86+
"activationDate": "2016-11-21T08:20:00Z",
87+
"updateDate": "2016-11-21T08:00:00Z",
88+
"expirationDate": "2017-11-22T07:59:59Z",
89+
"securedBy": {
90+
"mechanism": "None"
91+
},
92+
"fingerprint": {
93+
"alg": "SHA-256",
94+
"content": "a1b2c3d4e5f6789012345678901234567890abcdef1234567890abcdef123456"
95+
},
96+
"relatedCryptographicAssets": [
97+
{
98+
"type": "algorithm",
99+
"ref": "a154af0a-0dca-4ed5-b611-2405a3a6ae47"
100+
}
101+
]
102+
},
103+
"oid": "1.2.840.113549.1.1.1"
104+
}
105+
},
106+
{
107+
"name": "RSA-2048",
108+
"type": "cryptographic-asset",
109+
"bom-ref": "a154af0a-0dca-4ed5-b611-2405a3a6ae47",
110+
"cryptoProperties": {
111+
"assetType": "algorithm",
112+
"algorithmProperties": {
113+
"primitive": "pke",
114+
"algorithmFamily": "RSAES-OAEP",
115+
"parameterSetIdentifier": "2048",
116+
"executionEnvironment": "software-plain-ram",
117+
"implementationPlatform": "x86_64",
118+
"certificationLevel": [ "none" ],
119+
"padding": "oaep",
120+
"cryptoFunctions": [ "encrypt", "decrypt" ]
121+
},
122+
"oid": "1.2.840.113549.1.1.1"
123+
}
124+
},
125+
{
126+
"name": "TLS 1.3 Protocol",
127+
"type": "cryptographic-asset",
128+
"bom-ref": "a3553dc1-f376-43d1-89dc-87bb71981c0c",
129+
"cryptoProperties": {
130+
"assetType": "protocol",
131+
"protocolProperties": {
132+
"type": "tls",
133+
"version": "1.3",
134+
"cipherSuites": [
135+
{
136+
"name": "TLS_AES_256_GCM_SHA384",
137+
"algorithms": [
138+
"1977d71b-8981-4292-b40d-842a019c2229",
139+
"422fa336-b401-42b7-89b8-8966aa30bca0"
140+
],
141+
"identifiers": [
142+
"0x13,0x02"
143+
]
144+
},
145+
{
146+
"name": "TLS_CHACHA20_POLY1305_SHA256",
147+
"algorithms": [
148+
"1af4fc08-5d0d-436e-8058-eeef921983d0",
149+
"6af3066b-ab66-4593-975f-d9ba2c623a89"
150+
],
151+
"identifiers": [
152+
"0x13,0x03"
153+
]
154+
}
155+
]
156+
},
157+
"oid": "1.3.6.1.5.5.7.3.1"
158+
}
159+
}
160+
]
161+
}

0 commit comments

Comments
 (0)