@@ -976,12 +976,16 @@ async def test_TC_TLSCERT_2_9(self):
976976 asserts .assert_in (my_ccdid [i ], found_certs , "ProvisionedClientCertificates should contain provisioned client cert" )
977977 asserts .assert_equal (found_certs [my_ccdid [i ]].clientCertificate ,
978978 my_client_cert [i ], "Expected matching certificate detail" )
979+ asserts .assert_equal (found_certs [my_ccdid [1 ]].intermediateCertificates ,
980+ my_intermediate_certs_1 , "Expected matching certificate detail" )
979981
980982 self .step (12 )
981983 found_certs = await cr2_cmd .read_client_certs_attribute_as_map (TransportPayloadCapability .LARGE_PAYLOAD )
982984 asserts .assert_equal (len (found_certs ), 1 , "Expected 1 certificate" )
983985 asserts .assert_in (my_ccdid [2 ], found_certs , "ProvisionedClientCertificates should contain provisioned client cert" )
984986 asserts .assert_equal (found_certs [my_ccdid [2 ]].clientCertificate , my_client_cert [2 ], "Expected matching certificate detail" )
987+ asserts .assert_equal (found_certs [my_ccdid [2 ]].intermediateCertificates ,
988+ my_intermediate_certs_2 , "Expected matching certificate detail" )
985989
986990 self .step (13 )
987991 # Must close session so we don't re-use large payload session
@@ -1014,8 +1018,8 @@ async def test_TC_TLSCERT_2_9(self):
10141018 response = await cr1_cmd .send_csr_command (ccdid = my_ccdid [0 ], nonce = my_nonce [3 ])
10151019 cr1_cmd .assert_valid_ccdid (response .ccdid )
10161020 asserts .assert_equal (response .ccdid , my_ccdid [0 ], "Expected same ID" )
1017- my_csr [ 3 ] = cr1_cmd .assert_valid_csr (response , my_nonce [3 ])
1018- my_client_cert [3 ] = cr1_cmd .gen_cert_with_key (root , public_key = my_csr [3 ].public_key (), subject = my_csr [3 ].subject )
1021+ cr1_cmd .assert_valid_csr (response , my_nonce [3 ])
1022+ my_client_cert [3 ] = cr1_cmd .gen_cert_with_key (root , public_key = my_csr [0 ].public_key (), subject = my_csr [0 ].subject )
10191023
10201024 self .step (17 )
10211025 await cr1_cmd .send_provision_client_command (ccdid = my_ccdid [0 ], certificate = my_client_cert [3 ])
0 commit comments