@@ -77,46 +77,6 @@ certificate "test-signer-a1" {
7777 }
7878}
7979
80- key-pair "test-signer-a2" {
81- p384
82- }
83-
84- entity "test-signer-a2" {
85- country-name "US"
86- organization-name "Oxide Computer Company"
87- common-name "test-platformid-1 Signer Staging A2"
88- }
89-
90- certificate "test-signer-a2" {
91- issuer-certificate "test-root-a"
92- issuer-key "test-root-a"
93-
94- subject-entity "test-signer-a2"
95- subject-key "test-signer-a2"
96-
97- digest-algorithm "sha-384"
98- not-after "9999-12-31T23:59:59Z"
99- serial-number "01"
100-
101- extensions {
102- subject-key-identifier critical= false
103- authority-key-identifier critical= false {
104- key-id
105- }
106-
107- basic-constraints critical= true ca= true
108- key-usage critical= true {
109- key-cert-sign
110- crl-sign
111- }
112- certificate-policies critical= true {
113- oana-platform-identity
114- tcg-dice-kp-identity-init
115- tcg-dice-kp-attest-init
116- tcg-dice-kp-eca
117- }
118- }
119- }
12080/// Device 1
12181key-pair "test-platformid-1" {
12282 ed25519
@@ -166,7 +126,7 @@ key-pair "test-deviceid-1" {
166126entity "test-deviceid-1" {
167127 country-name "US"
168128 organization-name "Oxide Computer Company"
169- common-name "/C=US/O=Oxide Computer Company/CN= test-deviceid-1"
129+ common-name "test-deviceid-1"
170130}
171131
172132certificate "test-deviceid-1" {
@@ -207,7 +167,7 @@ key-pair "test-sprockets-auth-1" {
207167entity "test-sprockets-auth-1" {
208168 country-name "US"
209169 organization-name "Oxide Computer Company"
210- common-name "/C=US/O=Oxide Computer Company/CN= test-sprockets-auth-1"
170+ common-name "test-sprockets-auth-1"
211171}
212172
213173certificate "test-sprockets-auth-1" {
@@ -241,6 +201,58 @@ certificate "test-sprockets-auth-1" {
241201 }
242202}
243203
204+ // TODO: sprockets reverses this cert chain before passing it to rustls
205+ certificate-list "test-sprockets-auth-1" \
206+ "test-signer-a1" \
207+ "test-platformid-1" \
208+ "test-deviceid-1" \
209+ "test-sprockets-auth-1"
210+
211+ key-pair "test-alias-1" {
212+ ed25519
213+ }
214+
215+ entity "test-alias-1" {
216+ country-name "US"
217+ organization-name "Oxide Computer Company"
218+ common-name "alias"
219+ }
220+
221+ certificate "test-alias-1" {
222+ issuer-certificate "test-deviceid-1"
223+ issuer-key "test-deviceid-1"
224+
225+ subject-entity "test-alias-1"
226+ subject-key "test-alias-1"
227+
228+ not-after "9999-12-31T23:59:59Z"
229+ serial-number "00"
230+
231+ extensions {
232+ basic-constraints critical= true ca= false
233+ key-usage critical= true {
234+ digital-signature
235+ }
236+ certificate-policies critical= true {
237+ tcg-dice-kp-attest-init
238+ }
239+ dice-tcb-info critical= true {
240+ fwid-list {
241+ fwid {
242+ digest-algorithm "sha3-256"
243+ digest "72fa8f8ea84a42251031366002cbb36281d0131f78cd680436116a720cdd9de5"
244+ }
245+ }
246+ }
247+ }
248+ }
249+
250+ certificate-list "test-alias-1" \
251+ "test-alias-1" \
252+ "test-deviceid-1" \
253+ "test-platformid-1" \
254+ "test-signer-a1"
255+
244256/// Device 2
245257
246258key-pair "test-platformid-2" {
@@ -291,7 +303,7 @@ key-pair "test-deviceid-2" {
291303entity "test-deviceid-2" {
292304 country-name "US"
293305 organization-name "Oxide Computer Company"
294- common-name "/C=US/O=Oxide Computer Company/CN= test-deviceid-2"
306+ common-name "test-deviceid-2"
295307}
296308
297309certificate "test-deviceid-2" {
@@ -332,7 +344,7 @@ key-pair "test-sprockets-auth-2" {
332344entity "test-sprockets-auth-2" {
333345 country-name "US"
334346 organization-name "Oxide Computer Company"
335- common-name "/C=US/O=Oxide Computer Company/CN= test-sprockets-auth-2"
347+ common-name "test-sprockets-auth-2"
336348}
337349
338350certificate "test-sprockets-auth-2" {
@@ -366,3 +378,54 @@ certificate "test-sprockets-auth-2" {
366378 }
367379}
368380
381+ // TODO: sprockets reverses this cert chain before passing it to rustls
382+ certificate-list "test-sprockets-auth-2" \
383+ "test-signer-a1" \
384+ "test-platformid-2" \
385+ "test-deviceid-2" \
386+ "test-sprockets-auth-2"
387+
388+ key-pair "test-alias-2" {
389+ ed25519
390+ }
391+
392+ entity "test-alias-2" {
393+ country-name "US"
394+ organization-name "Oxide Computer Company"
395+ common-name "alias"
396+ }
397+
398+ certificate "test-alias-2" {
399+ issuer-certificate "test-deviceid-2"
400+ issuer-key "test-deviceid-2"
401+
402+ subject-entity "test-alias-2"
403+ subject-key "test-alias-2"
404+
405+ not-after "9999-12-31T23:59:59Z"
406+ serial-number "00"
407+
408+ extensions {
409+ basic-constraints critical= true ca= false
410+ key-usage critical= true {
411+ digital-signature
412+ }
413+ certificate-policies critical= true {
414+ tcg-dice-kp-attest-init
415+ }
416+ dice-tcb-info critical= true {
417+ fwid-list {
418+ fwid {
419+ digest-algorithm "sha3-256"
420+ digest "72fa8f8ea84a42251031366002cbb36281d0131f78cd680436116a720cdd9de5"
421+ }
422+ }
423+ }
424+ }
425+ }
426+
427+ certificate-list "test-alias-2" \
428+ "test-alias-2" \
429+ "test-deviceid-2" \
430+ "test-platformid-2" \
431+ "test-signer-a1"
0 commit comments