From 6085626650a56120da8062261e37bcb20baed5eb Mon Sep 17 00:00:00 2001 From: Evgeny Margolis Date: Mon, 25 Apr 2022 12:45:18 -0700 Subject: [PATCH] Support Commissioner DUT Test Vectors Generation. (#17519) Added python script to generate test vectors: src/tools/chip-cert/gen_com_dut_test_vectors.py This script currently generates only structural errors in the DAC and PAI certificates. Next steps will be to generate structureal CD error and other validation flow errors. By default the generated test vectors will be stored here: credentials/development/commissioner_dut/ --- .../struct_dac_cert_version_v2/cd.der | Bin 0 -> 236 bytes .../struct_dac_cert_version_v2/dac-Cert.der | Bin 0 -> 466 bytes .../struct_dac_cert_version_v2/dac-Cert.pem | 12 + .../struct_dac_cert_version_v2/dac-Key.der | Bin 0 -> 121 bytes .../struct_dac_cert_version_v2/dac-Key.pem | 5 + .../struct_dac_cert_version_v2/pai-Cert.der | Bin 0 -> 450 bytes .../struct_dac_cert_version_v2/pai-Cert.pem | 12 + .../struct_dac_cert_version_v2/pai-Key.der | Bin 0 -> 121 bytes .../struct_dac_cert_version_v2/pai-Key.pem | 5 + .../test_case_vector.json | 9 + .../struct_dac_cert_version_v3/cd.der | Bin 0 -> 237 bytes .../struct_dac_cert_version_v3/dac-Cert.der | Bin 0 -> 466 bytes .../struct_dac_cert_version_v3/dac-Cert.pem | 12 + .../struct_dac_cert_version_v3/dac-Key.der | Bin 0 -> 121 bytes .../struct_dac_cert_version_v3/dac-Key.pem | 5 + .../struct_dac_cert_version_v3/pai-Cert.der | Bin 0 -> 450 bytes .../struct_dac_cert_version_v3/pai-Cert.pem | 12 + .../struct_dac_cert_version_v3/pai-Key.der | Bin 0 -> 121 bytes .../struct_dac_cert_version_v3/pai-Key.pem | 5 + .../test_case_vector.json | 9 + .../struct_dac_ext_akid_missing/cd.der | Bin 0 -> 235 bytes .../struct_dac_ext_akid_missing/dac-Cert.der | Bin 0 -> 433 bytes .../struct_dac_ext_akid_missing/dac-Cert.pem | 12 + .../struct_dac_ext_akid_missing/dac-Key.der | Bin 0 -> 121 bytes .../struct_dac_ext_akid_missing/dac-Key.pem | 5 + .../struct_dac_ext_akid_missing/pai-Cert.der | Bin 0 -> 450 bytes .../struct_dac_ext_akid_missing/pai-Cert.pem | 12 + .../struct_dac_ext_akid_missing/pai-Key.der | Bin 0 -> 121 bytes .../struct_dac_ext_akid_missing/pai-Key.pem | 5 + .../test_case_vector.json | 9 + .../cd.der | Bin 0 -> 237 bytes .../dac-Cert.der | Bin 0 -> 521 bytes .../dac-Cert.pem | 13 + .../dac-Key.der | Bin 0 -> 121 bytes .../dac-Key.pem | 5 + .../pai-Cert.der | Bin 0 -> 450 bytes .../pai-Cert.pem | 12 + .../pai-Key.der | Bin 0 -> 121 bytes .../pai-Key.pem | 5 + .../test_case_vector.json | 9 + .../struct_dac_ext_basic_ca_missing/cd.der | Bin 0 -> 237 bytes .../dac-Cert.der | Bin 0 -> 469 bytes .../dac-Cert.pem | 12 + .../dac-Key.der | Bin 0 -> 121 bytes .../dac-Key.pem | 5 + .../pai-Cert.der | Bin 0 -> 450 bytes .../pai-Cert.pem | 12 + .../pai-Key.der | Bin 0 -> 121 bytes .../pai-Key.pem | 5 + .../test_case_vector.json | 9 + .../struct_dac_ext_basic_ca_wrong/cd.der | Bin 0 -> 236 bytes .../dac-Cert.der | Bin 0 -> 469 bytes .../dac-Cert.pem | 12 + .../struct_dac_ext_basic_ca_wrong/dac-Key.der | Bin 0 -> 121 bytes .../struct_dac_ext_basic_ca_wrong/dac-Key.pem | 5 + .../pai-Cert.der | Bin 0 -> 449 bytes .../pai-Cert.pem | 12 + .../struct_dac_ext_basic_ca_wrong/pai-Key.der | Bin 0 -> 121 bytes .../struct_dac_ext_basic_ca_wrong/pai-Key.pem | 5 + .../test_case_vector.json | 9 + .../cd.der | Bin 0 -> 235 bytes .../dac-Cert.der | Bin 0 -> 462 bytes .../dac-Cert.pem | 12 + .../dac-Key.der | Bin 0 -> 121 bytes .../dac-Key.pem | 5 + .../pai-Cert.der | Bin 0 -> 451 bytes .../pai-Cert.pem | 12 + .../pai-Key.der | Bin 0 -> 121 bytes .../pai-Key.pem | 5 + .../test_case_vector.json | 9 + .../cd.der | Bin 0 -> 236 bytes .../dac-Cert.der | Bin 0 -> 462 bytes .../dac-Cert.pem | 12 + .../dac-Key.der | Bin 0 -> 121 bytes .../dac-Key.pem | 5 + .../pai-Cert.der | Bin 0 -> 451 bytes .../pai-Cert.pem | 12 + .../pai-Key.der | Bin 0 -> 121 bytes .../pai-Key.pem | 5 + .../test_case_vector.json | 9 + .../struct_dac_ext_basic_missing/cd.der | Bin 0 -> 235 bytes .../struct_dac_ext_basic_missing/dac-Cert.der | Bin 0 -> 451 bytes .../struct_dac_ext_basic_missing/dac-Cert.pem | 12 + .../struct_dac_ext_basic_missing/dac-Key.der | Bin 0 -> 121 bytes .../struct_dac_ext_basic_missing/dac-Key.pem | 5 + .../struct_dac_ext_basic_missing/pai-Cert.der | Bin 0 -> 450 bytes .../struct_dac_ext_basic_missing/pai-Cert.pem | 12 + .../struct_dac_ext_basic_missing/pai-Key.der | Bin 0 -> 121 bytes .../struct_dac_ext_basic_missing/pai-Key.pem | 5 + .../test_case_vector.json | 9 + .../struct_dac_ext_basic_pathlen0/cd.der | Bin 0 -> 237 bytes .../dac-Cert.der | Bin 0 -> 467 bytes .../dac-Cert.pem | 12 + .../struct_dac_ext_basic_pathlen0/dac-Key.der | Bin 0 -> 121 bytes .../struct_dac_ext_basic_pathlen0/dac-Key.pem | 5 + .../pai-Cert.der | Bin 0 -> 451 bytes .../pai-Cert.pem | 12 + .../struct_dac_ext_basic_pathlen0/pai-Key.der | Bin 0 -> 121 bytes .../struct_dac_ext_basic_pathlen0/pai-Key.pem | 5 + .../test_case_vector.json | 9 + .../struct_dac_ext_basic_pathlen1/cd.der | Bin 0 -> 236 bytes .../dac-Cert.der | Bin 0 -> 465 bytes .../dac-Cert.pem | 12 + .../struct_dac_ext_basic_pathlen1/dac-Key.der | Bin 0 -> 121 bytes .../struct_dac_ext_basic_pathlen1/dac-Key.pem | 5 + .../pai-Cert.der | Bin 0 -> 450 bytes .../pai-Cert.pem | 12 + .../struct_dac_ext_basic_pathlen1/pai-Key.der | Bin 0 -> 121 bytes .../struct_dac_ext_basic_pathlen1/pai-Key.pem | 5 + .../test_case_vector.json | 9 + .../struct_dac_ext_basic_pathlen2/cd.der | Bin 0 -> 236 bytes .../dac-Cert.der | Bin 0 -> 465 bytes .../dac-Cert.pem | 12 + .../struct_dac_ext_basic_pathlen2/dac-Key.der | Bin 0 -> 121 bytes .../struct_dac_ext_basic_pathlen2/dac-Key.pem | 5 + .../pai-Cert.der | Bin 0 -> 451 bytes .../pai-Cert.pem | 12 + .../struct_dac_ext_basic_pathlen2/pai-Key.der | Bin 0 -> 121 bytes .../struct_dac_ext_basic_pathlen2/pai-Key.pem | 5 + .../test_case_vector.json | 9 + .../cd.der | Bin 0 -> 236 bytes .../dac-Cert.der | Bin 0 -> 468 bytes .../dac-Cert.pem | 12 + .../dac-Key.der | Bin 0 -> 121 bytes .../dac-Key.pem | 5 + .../pai-Cert.der | Bin 0 -> 450 bytes .../pai-Cert.pem | 12 + .../pai-Key.der | Bin 0 -> 121 bytes .../pai-Key.pem | 5 + .../test_case_vector.json | 9 + .../cd.der | Bin 0 -> 237 bytes .../dac-Cert.der | Bin 0 -> 501 bytes .../dac-Cert.pem | 13 + .../dac-Key.der | Bin 0 -> 121 bytes .../dac-Key.pem | 5 + .../pai-Cert.der | Bin 0 -> 449 bytes .../pai-Cert.pem | 12 + .../pai-Key.der | Bin 0 -> 121 bytes .../pai-Key.pem | 5 + .../test_case_vector.json | 9 + .../cd.der | Bin 0 -> 235 bytes .../dac-Cert.der | Bin 0 -> 464 bytes .../dac-Cert.pem | 12 + .../dac-Key.der | Bin 0 -> 121 bytes .../dac-Key.pem | 5 + .../pai-Cert.der | Bin 0 -> 449 bytes .../pai-Cert.pem | 12 + .../pai-Key.der | Bin 0 -> 121 bytes .../pai-Key.pem | 5 + .../test_case_vector.json | 9 + .../cd.der | Bin 0 -> 236 bytes .../dac-Cert.der | Bin 0 -> 463 bytes .../dac-Cert.pem | 12 + .../dac-Key.der | Bin 0 -> 121 bytes .../dac-Key.pem | 5 + .../pai-Cert.der | Bin 0 -> 449 bytes .../pai-Cert.pem | 12 + .../pai-Key.der | Bin 0 -> 121 bytes .../pai-Key.pem | 5 + .../test_case_vector.json | 9 + .../cd.der | Bin 0 -> 236 bytes .../dac-Cert.der | Bin 0 -> 465 bytes .../dac-Cert.pem | 12 + .../dac-Key.der | Bin 0 -> 121 bytes .../dac-Key.pem | 5 + .../pai-Cert.der | Bin 0 -> 449 bytes .../pai-Cert.pem | 12 + .../pai-Key.der | Bin 0 -> 121 bytes .../pai-Key.pem | 5 + .../test_case_vector.json | 9 + .../cd.der | Bin 0 -> 236 bytes .../dac-Cert.der | Bin 0 -> 465 bytes .../dac-Cert.pem | 12 + .../dac-Key.der | Bin 0 -> 121 bytes .../dac-Key.pem | 5 + .../pai-Cert.der | Bin 0 -> 449 bytes .../pai-Cert.pem | 12 + .../pai-Key.der | Bin 0 -> 121 bytes .../pai-Key.pem | 5 + .../test_case_vector.json | 9 + .../cd.der | Bin 0 -> 237 bytes .../dac-Cert.der | Bin 0 -> 466 bytes .../dac-Cert.pem | 12 + .../dac-Key.der | Bin 0 -> 121 bytes .../dac-Key.pem | 5 + .../pai-Cert.der | Bin 0 -> 450 bytes .../pai-Cert.pem | 12 + .../pai-Key.der | Bin 0 -> 121 bytes .../pai-Key.pem | 5 + .../test_case_vector.json | 9 + .../struct_dac_ext_key_usage_missing/cd.der | Bin 0 -> 235 bytes .../dac-Cert.der | Bin 0 -> 450 bytes .../dac-Cert.pem | 12 + .../dac-Key.der | Bin 0 -> 121 bytes .../dac-Key.pem | 5 + .../pai-Cert.der | Bin 0 -> 450 bytes .../pai-Cert.pem | 12 + .../pai-Key.der | Bin 0 -> 121 bytes .../pai-Key.pem | 5 + .../test_case_vector.json | 9 + .../struct_dac_ext_skid_missing/cd.der | Bin 0 -> 236 bytes .../struct_dac_ext_skid_missing/dac-Cert.der | Bin 0 -> 434 bytes .../struct_dac_ext_skid_missing/dac-Cert.pem | 12 + .../struct_dac_ext_skid_missing/dac-Key.der | Bin 0 -> 121 bytes .../struct_dac_ext_skid_missing/dac-Key.pem | 5 + .../struct_dac_ext_skid_missing/pai-Cert.der | Bin 0 -> 449 bytes .../struct_dac_ext_skid_missing/pai-Cert.pem | 12 + .../struct_dac_ext_skid_missing/pai-Key.der | Bin 0 -> 121 bytes .../struct_dac_ext_skid_missing/pai-Key.pem | 5 + .../test_case_vector.json | 9 + .../cd.der | Bin 0 -> 236 bytes .../dac-Cert.der | Bin 0 -> 487 bytes .../dac-Cert.pem | 13 + .../dac-Key.der | Bin 0 -> 121 bytes .../dac-Key.pem | 5 + .../pai-Cert.der | Bin 0 -> 450 bytes .../pai-Cert.pem | 12 + .../pai-Key.der | Bin 0 -> 121 bytes .../pai-Key.pem | 5 + .../test_case_vector.json | 9 + .../cd.der | Bin 0 -> 235 bytes .../dac-Cert.der | Bin 0 -> 463 bytes .../dac-Cert.pem | 12 + .../dac-Key.der | Bin 0 -> 121 bytes .../dac-Key.pem | 5 + .../pai-Cert.der | Bin 0 -> 450 bytes .../pai-Cert.pem | 12 + .../pai-Key.der | Bin 0 -> 121 bytes .../pai-Key.pem | 5 + .../test_case_vector.json | 9 + .../cd.der | Bin 0 -> 236 bytes .../dac-Cert.der | Bin 0 -> 465 bytes .../dac-Cert.pem | 12 + .../dac-Key.der | Bin 0 -> 121 bytes .../dac-Key.pem | 5 + .../pai-Cert.der | Bin 0 -> 449 bytes .../pai-Cert.pem | 12 + .../pai-Key.der | Bin 0 -> 121 bytes .../pai-Key.pem | 5 + .../test_case_vector.json | 9 + .../struct_dac_sig_curve_prime256v1/cd.der | Bin 0 -> 235 bytes .../dac-Cert.der | Bin 0 -> 467 bytes .../dac-Cert.pem | 12 + .../dac-Key.der | Bin 0 -> 121 bytes .../dac-Key.pem | 5 + .../pai-Cert.der | Bin 0 -> 451 bytes .../pai-Cert.pem | 12 + .../pai-Key.der | Bin 0 -> 121 bytes .../pai-Key.pem | 5 + .../test_case_vector.json | 9 + .../struct_dac_sig_curve_secp256k1/cd.der | Bin 0 -> 236 bytes .../dac-Cert.der | Bin 0 -> 464 bytes .../dac-Cert.pem | 12 + .../dac-Key.der | Bin 0 -> 118 bytes .../dac-Key.pem | 5 + .../pai-Cert.der | Bin 0 -> 449 bytes .../pai-Cert.pem | 12 + .../pai-Key.der | Bin 0 -> 121 bytes .../pai-Key.pem | 5 + .../test_case_vector.json | 9 + .../struct_dac_subject_pid_mismatch/cd.der | Bin 0 -> 237 bytes .../dac-Cert.der | Bin 0 -> 466 bytes .../dac-Cert.pem | 12 + .../dac-Key.der | Bin 0 -> 121 bytes .../dac-Key.pem | 5 + .../pai-Cert.der | Bin 0 -> 451 bytes .../pai-Cert.pem | 12 + .../pai-Key.der | Bin 0 -> 121 bytes .../pai-Key.pem | 5 + .../test_case_vector.json | 9 + .../struct_dac_subject_vid_mismatch/cd.der | Bin 0 -> 236 bytes .../dac-Cert.der | Bin 0 -> 466 bytes .../dac-Cert.pem | 12 + .../dac-Key.der | Bin 0 -> 121 bytes .../dac-Key.pem | 5 + .../pai-Cert.der | Bin 0 -> 450 bytes .../pai-Cert.pem | 12 + .../pai-Key.der | Bin 0 -> 121 bytes .../pai-Key.pem | 5 + .../test_case_vector.json | 9 + .../struct_pai_cert_version_v2/cd.der | Bin 0 -> 236 bytes .../struct_pai_cert_version_v2/dac-Cert.der | Bin 0 -> 466 bytes .../struct_pai_cert_version_v2/dac-Cert.pem | 12 + .../struct_pai_cert_version_v2/dac-Key.der | Bin 0 -> 121 bytes .../struct_pai_cert_version_v2/dac-Key.pem | 5 + .../struct_pai_cert_version_v2/pai-Cert.der | Bin 0 -> 449 bytes .../struct_pai_cert_version_v2/pai-Cert.pem | 12 + .../struct_pai_cert_version_v2/pai-Key.der | Bin 0 -> 121 bytes .../struct_pai_cert_version_v2/pai-Key.pem | 5 + .../test_case_vector.json | 9 + .../struct_pai_cert_version_v3/cd.der | Bin 0 -> 236 bytes .../struct_pai_cert_version_v3/dac-Cert.der | Bin 0 -> 466 bytes .../struct_pai_cert_version_v3/dac-Cert.pem | 12 + .../struct_pai_cert_version_v3/dac-Key.der | Bin 0 -> 121 bytes .../struct_pai_cert_version_v3/dac-Key.pem | 5 + .../struct_pai_cert_version_v3/pai-Cert.der | Bin 0 -> 450 bytes .../struct_pai_cert_version_v3/pai-Cert.pem | 12 + .../struct_pai_cert_version_v3/pai-Key.der | Bin 0 -> 121 bytes .../struct_pai_cert_version_v3/pai-Key.pem | 5 + .../test_case_vector.json | 9 + .../struct_pai_ext_akid_missing/cd.der | Bin 0 -> 236 bytes .../struct_pai_ext_akid_missing/dac-Cert.der | Bin 0 -> 467 bytes .../struct_pai_ext_akid_missing/dac-Cert.pem | 12 + .../struct_pai_ext_akid_missing/dac-Key.der | Bin 0 -> 121 bytes .../struct_pai_ext_akid_missing/dac-Key.pem | 5 + .../struct_pai_ext_akid_missing/pai-Cert.der | Bin 0 -> 418 bytes .../struct_pai_ext_akid_missing/pai-Cert.pem | 11 + .../struct_pai_ext_akid_missing/pai-Key.der | Bin 0 -> 121 bytes .../struct_pai_ext_akid_missing/pai-Key.pem | 5 + .../test_case_vector.json | 9 + .../cd.der | Bin 0 -> 237 bytes .../dac-Cert.der | Bin 0 -> 466 bytes .../dac-Cert.pem | 12 + .../dac-Key.der | Bin 0 -> 121 bytes .../dac-Key.pem | 5 + .../pai-Cert.der | Bin 0 -> 505 bytes .../pai-Cert.pem | 13 + .../pai-Key.der | Bin 0 -> 121 bytes .../pai-Key.pem | 5 + .../test_case_vector.json | 9 + .../struct_pai_ext_basic_ca_missing/cd.der | Bin 0 -> 236 bytes .../dac-Cert.der | Bin 0 -> 466 bytes .../dac-Cert.pem | 12 + .../dac-Key.der | Bin 0 -> 121 bytes .../dac-Key.pem | 5 + .../pai-Cert.der | Bin 0 -> 446 bytes .../pai-Cert.pem | 12 + .../pai-Key.der | Bin 0 -> 121 bytes .../pai-Key.pem | 5 + .../test_case_vector.json | 9 + .../struct_pai_ext_basic_ca_wrong/cd.der | Bin 0 -> 236 bytes .../dac-Cert.der | Bin 0 -> 465 bytes .../dac-Cert.pem | 12 + .../struct_pai_ext_basic_ca_wrong/dac-Key.der | Bin 0 -> 121 bytes .../struct_pai_ext_basic_ca_wrong/dac-Key.pem | 5 + .../pai-Cert.der | Bin 0 -> 446 bytes .../pai-Cert.pem | 12 + .../struct_pai_ext_basic_ca_wrong/pai-Key.der | Bin 0 -> 121 bytes .../struct_pai_ext_basic_ca_wrong/pai-Key.pem | 5 + .../test_case_vector.json | 9 + .../cd.der | Bin 0 -> 236 bytes .../dac-Cert.der | Bin 0 -> 466 bytes .../dac-Cert.pem | 12 + .../dac-Key.der | Bin 0 -> 121 bytes .../dac-Key.pem | 5 + .../pai-Cert.der | Bin 0 -> 447 bytes .../pai-Cert.pem | 12 + .../pai-Key.der | Bin 0 -> 121 bytes .../pai-Key.pem | 5 + .../test_case_vector.json | 9 + .../cd.der | Bin 0 -> 236 bytes .../dac-Cert.der | Bin 0 -> 466 bytes .../dac-Cert.pem | 12 + .../dac-Key.der | Bin 0 -> 121 bytes .../dac-Key.pem | 5 + .../pai-Cert.der | Bin 0 -> 446 bytes .../pai-Cert.pem | 12 + .../pai-Key.der | Bin 0 -> 121 bytes .../pai-Key.pem | 5 + .../test_case_vector.json | 9 + .../struct_pai_ext_basic_missing/cd.der | Bin 0 -> 237 bytes .../struct_pai_ext_basic_missing/dac-Cert.der | Bin 0 -> 466 bytes .../struct_pai_ext_basic_missing/dac-Cert.pem | 12 + .../struct_pai_ext_basic_missing/dac-Key.der | Bin 0 -> 121 bytes .../struct_pai_ext_basic_missing/dac-Key.pem | 5 + .../struct_pai_ext_basic_missing/pai-Cert.der | Bin 0 -> 430 bytes .../struct_pai_ext_basic_missing/pai-Cert.pem | 11 + .../struct_pai_ext_basic_missing/pai-Key.der | Bin 0 -> 121 bytes .../struct_pai_ext_basic_missing/pai-Key.pem | 5 + .../test_case_vector.json | 9 + .../struct_pai_ext_basic_pathlen0/cd.der | Bin 0 -> 235 bytes .../dac-Cert.der | Bin 0 -> 465 bytes .../dac-Cert.pem | 12 + .../struct_pai_ext_basic_pathlen0/dac-Key.der | Bin 0 -> 121 bytes .../struct_pai_ext_basic_pathlen0/dac-Key.pem | 5 + .../pai-Cert.der | Bin 0 -> 450 bytes .../pai-Cert.pem | 12 + .../struct_pai_ext_basic_pathlen0/pai-Key.der | Bin 0 -> 121 bytes .../struct_pai_ext_basic_pathlen0/pai-Key.pem | 5 + .../test_case_vector.json | 9 + .../struct_pai_ext_basic_pathlen1/cd.der | Bin 0 -> 236 bytes .../dac-Cert.der | Bin 0 -> 466 bytes .../dac-Cert.pem | 12 + .../struct_pai_ext_basic_pathlen1/dac-Key.der | Bin 0 -> 121 bytes .../struct_pai_ext_basic_pathlen1/dac-Key.pem | 5 + .../pai-Cert.der | Bin 0 -> 450 bytes .../pai-Cert.pem | 12 + .../struct_pai_ext_basic_pathlen1/pai-Key.der | Bin 0 -> 121 bytes .../struct_pai_ext_basic_pathlen1/pai-Key.pem | 5 + .../test_case_vector.json | 9 + .../struct_pai_ext_basic_pathlen2/cd.der | Bin 0 -> 236 bytes .../dac-Cert.der | Bin 0 -> 466 bytes .../dac-Cert.pem | 12 + .../struct_pai_ext_basic_pathlen2/dac-Key.der | Bin 0 -> 121 bytes .../struct_pai_ext_basic_pathlen2/dac-Key.pem | 5 + .../pai-Cert.der | Bin 0 -> 450 bytes .../pai-Cert.pem | 12 + .../struct_pai_ext_basic_pathlen2/pai-Key.der | Bin 0 -> 121 bytes .../struct_pai_ext_basic_pathlen2/pai-Key.pem | 5 + .../test_case_vector.json | 9 + .../cd.der | Bin 0 -> 235 bytes .../dac-Cert.der | Bin 0 -> 466 bytes .../dac-Cert.pem | 12 + .../dac-Key.der | Bin 0 -> 121 bytes .../dac-Key.pem | 5 + .../pai-Cert.der | Bin 0 -> 448 bytes .../pai-Cert.pem | 12 + .../pai-Key.der | Bin 0 -> 121 bytes .../pai-Key.pem | 5 + .../test_case_vector.json | 9 + .../cd.der | Bin 0 -> 236 bytes .../dac-Cert.der | Bin 0 -> 466 bytes .../dac-Cert.pem | 12 + .../dac-Key.der | Bin 0 -> 121 bytes .../dac-Key.pem | 5 + .../pai-Cert.der | Bin 0 -> 486 bytes .../pai-Cert.pem | 13 + .../pai-Key.der | Bin 0 -> 121 bytes .../pai-Key.pem | 5 + .../test_case_vector.json | 9 + .../cd.der | Bin 0 -> 235 bytes .../dac-Cert.der | Bin 0 -> 467 bytes .../dac-Cert.pem | 12 + .../dac-Key.der | Bin 0 -> 121 bytes .../dac-Key.pem | 5 + .../pai-Cert.der | Bin 0 -> 446 bytes .../pai-Cert.pem | 12 + .../pai-Key.der | Bin 0 -> 121 bytes .../pai-Key.pem | 5 + .../test_case_vector.json | 9 + .../cd.der | Bin 0 -> 235 bytes .../dac-Cert.der | Bin 0 -> 466 bytes .../dac-Cert.pem | 12 + .../dac-Key.der | Bin 0 -> 121 bytes .../dac-Key.pem | 5 + .../pai-Cert.der | Bin 0 -> 447 bytes .../pai-Cert.pem | 12 + .../pai-Key.der | Bin 0 -> 121 bytes .../pai-Key.pem | 5 + .../test_case_vector.json | 9 + .../cd.der | Bin 0 -> 237 bytes .../dac-Cert.der | Bin 0 -> 467 bytes .../dac-Cert.pem | 12 + .../dac-Key.der | Bin 0 -> 121 bytes .../dac-Key.pem | 5 + .../pai-Cert.der | Bin 0 -> 450 bytes .../pai-Cert.pem | 12 + .../pai-Key.der | Bin 0 -> 121 bytes .../pai-Key.pem | 5 + .../test_case_vector.json | 9 + .../cd.der | Bin 0 -> 237 bytes .../dac-Cert.der | Bin 0 -> 466 bytes .../dac-Cert.pem | 12 + .../dac-Key.der | Bin 0 -> 121 bytes .../dac-Key.pem | 5 + .../pai-Cert.der | Bin 0 -> 449 bytes .../pai-Cert.pem | 12 + .../pai-Key.der | Bin 0 -> 121 bytes .../pai-Key.pem | 5 + .../test_case_vector.json | 9 + .../cd.der | Bin 0 -> 236 bytes .../dac-Cert.der | Bin 0 -> 466 bytes .../dac-Cert.pem | 12 + .../dac-Key.der | Bin 0 -> 121 bytes .../dac-Key.pem | 5 + .../pai-Cert.der | Bin 0 -> 450 bytes .../pai-Cert.pem | 12 + .../pai-Key.der | Bin 0 -> 121 bytes .../pai-Key.pem | 5 + .../test_case_vector.json | 9 + .../struct_pai_ext_key_usage_missing/cd.der | Bin 0 -> 236 bytes .../dac-Cert.der | Bin 0 -> 466 bytes .../dac-Cert.pem | 12 + .../dac-Key.der | Bin 0 -> 121 bytes .../dac-Key.pem | 5 + .../pai-Cert.der | Bin 0 -> 433 bytes .../pai-Cert.pem | 12 + .../pai-Key.der | Bin 0 -> 121 bytes .../pai-Key.pem | 5 + .../test_case_vector.json | 9 + .../struct_pai_ext_skid_missing/cd.der | Bin 0 -> 235 bytes .../struct_pai_ext_skid_missing/dac-Cert.der | Bin 0 -> 432 bytes .../struct_pai_ext_skid_missing/dac-Cert.pem | 11 + .../struct_pai_ext_skid_missing/dac-Key.der | Bin 0 -> 121 bytes .../struct_pai_ext_skid_missing/dac-Key.pem | 5 + .../struct_pai_ext_skid_missing/pai-Cert.der | Bin 0 -> 418 bytes .../struct_pai_ext_skid_missing/pai-Cert.pem | 11 + .../struct_pai_ext_skid_missing/pai-Key.der | Bin 0 -> 121 bytes .../struct_pai_ext_skid_missing/pai-Key.pem | 5 + .../test_case_vector.json | 9 + .../cd.der | Bin 0 -> 236 bytes .../dac-Cert.der | Bin 0 -> 465 bytes .../dac-Cert.pem | 12 + .../dac-Key.der | Bin 0 -> 121 bytes .../dac-Key.pem | 5 + .../pai-Cert.der | Bin 0 -> 470 bytes .../pai-Cert.pem | 12 + .../pai-Key.der | Bin 0 -> 121 bytes .../pai-Key.pem | 5 + .../test_case_vector.json | 9 + .../cd.der | Bin 0 -> 237 bytes .../dac-Cert.der | Bin 0 -> 466 bytes .../dac-Cert.pem | 12 + .../dac-Key.der | Bin 0 -> 121 bytes .../dac-Key.pem | 5 + .../pai-Cert.der | Bin 0 -> 447 bytes .../pai-Cert.pem | 12 + .../pai-Key.der | Bin 0 -> 121 bytes .../pai-Key.pem | 5 + .../test_case_vector.json | 9 + .../cd.der | Bin 0 -> 235 bytes .../dac-Cert.der | Bin 0 -> 465 bytes .../dac-Cert.pem | 12 + .../dac-Key.der | Bin 0 -> 121 bytes .../dac-Key.pem | 5 + .../pai-Cert.der | Bin 0 -> 450 bytes .../pai-Cert.pem | 12 + .../pai-Key.der | Bin 0 -> 121 bytes .../pai-Key.pem | 5 + .../test_case_vector.json | 9 + .../struct_pai_sig_curve_prime256v1/cd.der | Bin 0 -> 235 bytes .../dac-Cert.der | Bin 0 -> 466 bytes .../dac-Cert.pem | 12 + .../dac-Key.der | Bin 0 -> 121 bytes .../dac-Key.pem | 5 + .../pai-Cert.der | Bin 0 -> 449 bytes .../pai-Cert.pem | 12 + .../pai-Key.der | Bin 0 -> 121 bytes .../pai-Key.pem | 5 + .../test_case_vector.json | 9 + .../struct_pai_sig_curve_secp256k1/cd.der | Bin 0 -> 236 bytes .../dac-Cert.der | Bin 0 -> 466 bytes .../dac-Cert.pem | 12 + .../dac-Key.der | Bin 0 -> 121 bytes .../dac-Key.pem | 5 + .../pai-Cert.der | Bin 0 -> 446 bytes .../pai-Cert.pem | 12 + .../pai-Key.der | Bin 0 -> 118 bytes .../pai-Key.pem | 5 + .../test_case_vector.json | 9 + .../struct_pai_subject_pid_mismatch/cd.der | Bin 0 -> 237 bytes .../dac-Cert.der | Bin 0 -> 466 bytes .../dac-Cert.pem | 12 + .../dac-Key.der | Bin 0 -> 121 bytes .../dac-Key.pem | 5 + .../pai-Cert.der | Bin 0 -> 451 bytes .../pai-Cert.pem | 12 + .../pai-Key.der | Bin 0 -> 121 bytes .../pai-Key.pem | 5 + .../test_case_vector.json | 9 + .../struct_pai_subject_vid_mismatch/cd.der | Bin 0 -> 235 bytes .../dac-Cert.der | Bin 0 -> 465 bytes .../dac-Cert.pem | 12 + .../dac-Key.der | Bin 0 -> 121 bytes .../dac-Key.pem | 5 + .../pai-Cert.der | Bin 0 -> 451 bytes .../pai-Cert.pem | 12 + .../pai-Key.der | Bin 0 -> 121 bytes .../pai-Key.pem | 5 + .../test_case_vector.json | 9 + src/tools/chip-cert/CertUtils.cpp | 161 +++++-- src/tools/chip-cert/Cmd_GenAttCert.cpp | 227 +++++++++- src/tools/chip-cert/KeyUtils.cpp | 26 +- src/tools/chip-cert/chip-cert.h | 143 ++++++- .../chip-cert/gen_com_dut_test_vectors.py | 392 ++++++++++++++++++ 565 files changed, 3303 insertions(+), 55 deletions(-) create mode 100644 credentials/development/commissioner_dut/struct_dac_cert_version_v2/cd.der create mode 100644 credentials/development/commissioner_dut/struct_dac_cert_version_v2/dac-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_dac_cert_version_v2/dac-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_cert_version_v2/dac-Key.der create mode 100644 credentials/development/commissioner_dut/struct_dac_cert_version_v2/dac-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_cert_version_v2/pai-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_dac_cert_version_v2/pai-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_cert_version_v2/pai-Key.der create mode 100644 credentials/development/commissioner_dut/struct_dac_cert_version_v2/pai-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_cert_version_v2/test_case_vector.json create mode 100644 credentials/development/commissioner_dut/struct_dac_cert_version_v3/cd.der create mode 100644 credentials/development/commissioner_dut/struct_dac_cert_version_v3/dac-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_dac_cert_version_v3/dac-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_cert_version_v3/dac-Key.der create mode 100644 credentials/development/commissioner_dut/struct_dac_cert_version_v3/dac-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_cert_version_v3/pai-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_dac_cert_version_v3/pai-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_cert_version_v3/pai-Key.der create mode 100644 credentials/development/commissioner_dut/struct_dac_cert_version_v3/pai-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_cert_version_v3/test_case_vector.json create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_akid_missing/cd.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_akid_missing/dac-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_akid_missing/dac-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_akid_missing/dac-Key.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_akid_missing/dac-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_akid_missing/pai-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_akid_missing/pai-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_akid_missing/pai-Key.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_akid_missing/pai-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_akid_missing/test_case_vector.json create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_authority_info_access_present/cd.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_authority_info_access_present/dac-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_authority_info_access_present/dac-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_authority_info_access_present/dac-Key.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_authority_info_access_present/dac-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_authority_info_access_present/pai-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_authority_info_access_present/pai-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_authority_info_access_present/pai-Key.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_authority_info_access_present/pai-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_authority_info_access_present/test_case_vector.json create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_ca_missing/cd.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_ca_missing/dac-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_ca_missing/dac-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_ca_missing/dac-Key.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_ca_missing/dac-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_ca_missing/pai-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_ca_missing/pai-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_ca_missing/pai-Key.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_ca_missing/pai-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_ca_missing/test_case_vector.json create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_ca_wrong/cd.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_ca_wrong/dac-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_ca_wrong/dac-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_ca_wrong/dac-Key.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_ca_wrong/dac-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_ca_wrong/pai-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_ca_wrong/pai-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_ca_wrong/pai-Key.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_ca_wrong/pai-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_ca_wrong/test_case_vector.json create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_critical_missing/cd.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_critical_missing/dac-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_critical_missing/dac-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_critical_missing/dac-Key.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_critical_missing/dac-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_critical_missing/pai-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_critical_missing/pai-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_critical_missing/pai-Key.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_critical_missing/pai-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_critical_missing/test_case_vector.json create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_critical_wrong/cd.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_critical_wrong/dac-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_critical_wrong/dac-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_critical_wrong/dac-Key.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_critical_wrong/dac-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_critical_wrong/pai-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_critical_wrong/pai-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_critical_wrong/pai-Key.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_critical_wrong/pai-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_critical_wrong/test_case_vector.json create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_missing/cd.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_missing/dac-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_missing/dac-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_missing/dac-Key.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_missing/dac-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_missing/pai-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_missing/pai-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_missing/pai-Key.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_missing/pai-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_missing/test_case_vector.json create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen0/cd.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen0/dac-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen0/dac-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen0/dac-Key.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen0/dac-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen0/pai-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen0/pai-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen0/pai-Key.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen0/pai-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen0/test_case_vector.json create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen1/cd.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen1/dac-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen1/dac-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen1/dac-Key.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen1/dac-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen1/pai-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen1/pai-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen1/pai-Key.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen1/pai-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen1/test_case_vector.json create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen2/cd.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen2/dac-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen2/dac-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen2/dac-Key.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen2/dac-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen2/pai-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen2/pai-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen2/pai-Key.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen2/pai-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen2/test_case_vector.json create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen_presence_wrong/cd.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen_presence_wrong/dac-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen_presence_wrong/dac-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen_presence_wrong/dac-Key.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen_presence_wrong/dac-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen_presence_wrong/pai-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen_presence_wrong/pai-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen_presence_wrong/pai-Key.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen_presence_wrong/pai-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen_presence_wrong/test_case_vector.json create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_extended_key_usage_present/cd.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_extended_key_usage_present/dac-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_extended_key_usage_present/dac-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_extended_key_usage_present/dac-Key.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_extended_key_usage_present/dac-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_extended_key_usage_present/pai-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_extended_key_usage_present/pai-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_extended_key_usage_present/pai-Key.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_extended_key_usage_present/pai-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_extended_key_usage_present/test_case_vector.json create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_missing/cd.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_missing/dac-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_missing/dac-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_missing/dac-Key.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_missing/dac-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_missing/pai-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_missing/pai-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_missing/pai-Key.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_missing/pai-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_missing/test_case_vector.json create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_wrong/cd.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_wrong/dac-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_wrong/dac-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_wrong/dac-Key.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_wrong/dac-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_wrong/pai-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_wrong/pai-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_wrong/pai-Key.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_wrong/pai-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_wrong/test_case_vector.json create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_key_usage_crl_sign_wrong/cd.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_key_usage_crl_sign_wrong/dac-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_key_usage_crl_sign_wrong/dac-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_key_usage_crl_sign_wrong/dac-Key.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_key_usage_crl_sign_wrong/dac-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_key_usage_crl_sign_wrong/pai-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_key_usage_crl_sign_wrong/pai-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_key_usage_crl_sign_wrong/pai-Key.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_key_usage_crl_sign_wrong/pai-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_key_usage_crl_sign_wrong/test_case_vector.json create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_key_usage_dig_sig_wrong/cd.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_key_usage_dig_sig_wrong/dac-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_key_usage_dig_sig_wrong/dac-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_key_usage_dig_sig_wrong/dac-Key.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_key_usage_dig_sig_wrong/dac-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_key_usage_dig_sig_wrong/pai-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_key_usage_dig_sig_wrong/pai-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_key_usage_dig_sig_wrong/pai-Key.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_key_usage_dig_sig_wrong/pai-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_key_usage_dig_sig_wrong/test_case_vector.json create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_key_usage_key_cert_sign_wrong/cd.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_key_usage_key_cert_sign_wrong/dac-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_key_usage_key_cert_sign_wrong/dac-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_key_usage_key_cert_sign_wrong/dac-Key.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_key_usage_key_cert_sign_wrong/dac-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_key_usage_key_cert_sign_wrong/pai-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_key_usage_key_cert_sign_wrong/pai-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_key_usage_key_cert_sign_wrong/pai-Key.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_key_usage_key_cert_sign_wrong/pai-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_key_usage_key_cert_sign_wrong/test_case_vector.json create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_key_usage_missing/cd.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_key_usage_missing/dac-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_key_usage_missing/dac-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_key_usage_missing/dac-Key.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_key_usage_missing/dac-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_key_usage_missing/pai-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_key_usage_missing/pai-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_key_usage_missing/pai-Key.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_key_usage_missing/pai-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_key_usage_missing/test_case_vector.json create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_skid_missing/cd.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_skid_missing/dac-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_skid_missing/dac-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_skid_missing/dac-Key.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_skid_missing/dac-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_skid_missing/pai-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_skid_missing/pai-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_skid_missing/pai-Key.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_skid_missing/pai-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_skid_missing/test_case_vector.json create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_subject_alt_name_present/cd.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_subject_alt_name_present/dac-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_subject_alt_name_present/dac-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_subject_alt_name_present/dac-Key.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_subject_alt_name_present/dac-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_subject_alt_name_present/pai-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_subject_alt_name_present/pai-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_subject_alt_name_present/pai-Key.der create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_subject_alt_name_present/pai-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_ext_subject_alt_name_present/test_case_vector.json create mode 100644 credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha1/cd.der create mode 100644 credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha1/dac-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha1/dac-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha1/dac-Key.der create mode 100644 credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha1/dac-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha1/pai-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha1/pai-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha1/pai-Key.der create mode 100644 credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha1/pai-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha1/test_case_vector.json create mode 100644 credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha256/cd.der create mode 100644 credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha256/dac-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha256/dac-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha256/dac-Key.der create mode 100644 credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha256/dac-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha256/pai-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha256/pai-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha256/pai-Key.der create mode 100644 credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha256/pai-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha256/test_case_vector.json create mode 100644 credentials/development/commissioner_dut/struct_dac_sig_curve_prime256v1/cd.der create mode 100644 credentials/development/commissioner_dut/struct_dac_sig_curve_prime256v1/dac-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_dac_sig_curve_prime256v1/dac-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_sig_curve_prime256v1/dac-Key.der create mode 100644 credentials/development/commissioner_dut/struct_dac_sig_curve_prime256v1/dac-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_sig_curve_prime256v1/pai-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_dac_sig_curve_prime256v1/pai-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_sig_curve_prime256v1/pai-Key.der create mode 100644 credentials/development/commissioner_dut/struct_dac_sig_curve_prime256v1/pai-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_sig_curve_prime256v1/test_case_vector.json create mode 100644 credentials/development/commissioner_dut/struct_dac_sig_curve_secp256k1/cd.der create mode 100644 credentials/development/commissioner_dut/struct_dac_sig_curve_secp256k1/dac-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_dac_sig_curve_secp256k1/dac-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_sig_curve_secp256k1/dac-Key.der create mode 100644 credentials/development/commissioner_dut/struct_dac_sig_curve_secp256k1/dac-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_sig_curve_secp256k1/pai-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_dac_sig_curve_secp256k1/pai-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_sig_curve_secp256k1/pai-Key.der create mode 100644 credentials/development/commissioner_dut/struct_dac_sig_curve_secp256k1/pai-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_sig_curve_secp256k1/test_case_vector.json create mode 100644 credentials/development/commissioner_dut/struct_dac_subject_pid_mismatch/cd.der create mode 100644 credentials/development/commissioner_dut/struct_dac_subject_pid_mismatch/dac-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_dac_subject_pid_mismatch/dac-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_subject_pid_mismatch/dac-Key.der create mode 100644 credentials/development/commissioner_dut/struct_dac_subject_pid_mismatch/dac-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_subject_pid_mismatch/pai-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_dac_subject_pid_mismatch/pai-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_subject_pid_mismatch/pai-Key.der create mode 100644 credentials/development/commissioner_dut/struct_dac_subject_pid_mismatch/pai-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_subject_pid_mismatch/test_case_vector.json create mode 100644 credentials/development/commissioner_dut/struct_dac_subject_vid_mismatch/cd.der create mode 100644 credentials/development/commissioner_dut/struct_dac_subject_vid_mismatch/dac-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_dac_subject_vid_mismatch/dac-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_subject_vid_mismatch/dac-Key.der create mode 100644 credentials/development/commissioner_dut/struct_dac_subject_vid_mismatch/dac-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_subject_vid_mismatch/pai-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_dac_subject_vid_mismatch/pai-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_subject_vid_mismatch/pai-Key.der create mode 100644 credentials/development/commissioner_dut/struct_dac_subject_vid_mismatch/pai-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_dac_subject_vid_mismatch/test_case_vector.json create mode 100644 credentials/development/commissioner_dut/struct_pai_cert_version_v2/cd.der create mode 100644 credentials/development/commissioner_dut/struct_pai_cert_version_v2/dac-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_pai_cert_version_v2/dac-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_cert_version_v2/dac-Key.der create mode 100644 credentials/development/commissioner_dut/struct_pai_cert_version_v2/dac-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_cert_version_v2/pai-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_pai_cert_version_v2/pai-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_cert_version_v2/pai-Key.der create mode 100644 credentials/development/commissioner_dut/struct_pai_cert_version_v2/pai-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_cert_version_v2/test_case_vector.json create mode 100644 credentials/development/commissioner_dut/struct_pai_cert_version_v3/cd.der create mode 100644 credentials/development/commissioner_dut/struct_pai_cert_version_v3/dac-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_pai_cert_version_v3/dac-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_cert_version_v3/dac-Key.der create mode 100644 credentials/development/commissioner_dut/struct_pai_cert_version_v3/dac-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_cert_version_v3/pai-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_pai_cert_version_v3/pai-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_cert_version_v3/pai-Key.der create mode 100644 credentials/development/commissioner_dut/struct_pai_cert_version_v3/pai-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_cert_version_v3/test_case_vector.json create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_akid_missing/cd.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_akid_missing/dac-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_akid_missing/dac-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_akid_missing/dac-Key.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_akid_missing/dac-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_akid_missing/pai-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_akid_missing/pai-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_akid_missing/pai-Key.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_akid_missing/pai-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_akid_missing/test_case_vector.json create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_authority_info_access_present/cd.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_authority_info_access_present/dac-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_authority_info_access_present/dac-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_authority_info_access_present/dac-Key.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_authority_info_access_present/dac-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_authority_info_access_present/pai-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_authority_info_access_present/pai-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_authority_info_access_present/pai-Key.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_authority_info_access_present/pai-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_authority_info_access_present/test_case_vector.json create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_ca_missing/cd.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_ca_missing/dac-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_ca_missing/dac-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_ca_missing/dac-Key.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_ca_missing/dac-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_ca_missing/pai-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_ca_missing/pai-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_ca_missing/pai-Key.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_ca_missing/pai-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_ca_missing/test_case_vector.json create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_ca_wrong/cd.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_ca_wrong/dac-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_ca_wrong/dac-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_ca_wrong/dac-Key.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_ca_wrong/dac-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_ca_wrong/pai-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_ca_wrong/pai-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_ca_wrong/pai-Key.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_ca_wrong/pai-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_ca_wrong/test_case_vector.json create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_critical_missing/cd.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_critical_missing/dac-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_critical_missing/dac-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_critical_missing/dac-Key.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_critical_missing/dac-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_critical_missing/pai-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_critical_missing/pai-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_critical_missing/pai-Key.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_critical_missing/pai-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_critical_missing/test_case_vector.json create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_critical_wrong/cd.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_critical_wrong/dac-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_critical_wrong/dac-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_critical_wrong/dac-Key.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_critical_wrong/dac-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_critical_wrong/pai-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_critical_wrong/pai-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_critical_wrong/pai-Key.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_critical_wrong/pai-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_critical_wrong/test_case_vector.json create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_missing/cd.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_missing/dac-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_missing/dac-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_missing/dac-Key.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_missing/dac-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_missing/pai-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_missing/pai-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_missing/pai-Key.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_missing/pai-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_missing/test_case_vector.json create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen0/cd.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen0/dac-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen0/dac-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen0/dac-Key.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen0/dac-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen0/pai-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen0/pai-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen0/pai-Key.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen0/pai-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen0/test_case_vector.json create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen1/cd.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen1/dac-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen1/dac-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen1/dac-Key.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen1/dac-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen1/pai-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen1/pai-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen1/pai-Key.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen1/pai-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen1/test_case_vector.json create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen2/cd.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen2/dac-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen2/dac-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen2/dac-Key.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen2/dac-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen2/pai-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen2/pai-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen2/pai-Key.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen2/pai-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen2/test_case_vector.json create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen_presence_wrong/cd.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen_presence_wrong/dac-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen_presence_wrong/dac-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen_presence_wrong/dac-Key.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen_presence_wrong/dac-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen_presence_wrong/pai-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen_presence_wrong/pai-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen_presence_wrong/pai-Key.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen_presence_wrong/pai-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen_presence_wrong/test_case_vector.json create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_extended_key_usage_present/cd.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_extended_key_usage_present/dac-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_extended_key_usage_present/dac-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_extended_key_usage_present/dac-Key.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_extended_key_usage_present/dac-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_extended_key_usage_present/pai-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_extended_key_usage_present/pai-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_extended_key_usage_present/pai-Key.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_extended_key_usage_present/pai-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_extended_key_usage_present/test_case_vector.json create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_missing/cd.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_missing/dac-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_missing/dac-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_missing/dac-Key.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_missing/dac-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_missing/pai-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_missing/pai-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_missing/pai-Key.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_missing/pai-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_missing/test_case_vector.json create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_wrong/cd.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_wrong/dac-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_wrong/dac-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_wrong/dac-Key.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_wrong/dac-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_wrong/pai-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_wrong/pai-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_wrong/pai-Key.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_wrong/pai-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_wrong/test_case_vector.json create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_key_usage_crl_sign_wrong/cd.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_key_usage_crl_sign_wrong/dac-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_key_usage_crl_sign_wrong/dac-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_key_usage_crl_sign_wrong/dac-Key.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_key_usage_crl_sign_wrong/dac-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_key_usage_crl_sign_wrong/pai-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_key_usage_crl_sign_wrong/pai-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_key_usage_crl_sign_wrong/pai-Key.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_key_usage_crl_sign_wrong/pai-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_key_usage_crl_sign_wrong/test_case_vector.json create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_key_usage_dig_sig_wrong/cd.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_key_usage_dig_sig_wrong/dac-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_key_usage_dig_sig_wrong/dac-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_key_usage_dig_sig_wrong/dac-Key.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_key_usage_dig_sig_wrong/dac-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_key_usage_dig_sig_wrong/pai-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_key_usage_dig_sig_wrong/pai-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_key_usage_dig_sig_wrong/pai-Key.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_key_usage_dig_sig_wrong/pai-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_key_usage_dig_sig_wrong/test_case_vector.json create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_key_usage_key_cert_sign_wrong/cd.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_key_usage_key_cert_sign_wrong/dac-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_key_usage_key_cert_sign_wrong/dac-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_key_usage_key_cert_sign_wrong/dac-Key.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_key_usage_key_cert_sign_wrong/dac-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_key_usage_key_cert_sign_wrong/pai-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_key_usage_key_cert_sign_wrong/pai-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_key_usage_key_cert_sign_wrong/pai-Key.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_key_usage_key_cert_sign_wrong/pai-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_key_usage_key_cert_sign_wrong/test_case_vector.json create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_key_usage_missing/cd.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_key_usage_missing/dac-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_key_usage_missing/dac-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_key_usage_missing/dac-Key.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_key_usage_missing/dac-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_key_usage_missing/pai-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_key_usage_missing/pai-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_key_usage_missing/pai-Key.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_key_usage_missing/pai-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_key_usage_missing/test_case_vector.json create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_skid_missing/cd.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_skid_missing/dac-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_skid_missing/dac-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_skid_missing/dac-Key.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_skid_missing/dac-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_skid_missing/pai-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_skid_missing/pai-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_skid_missing/pai-Key.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_skid_missing/pai-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_skid_missing/test_case_vector.json create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_subject_alt_name_present/cd.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_subject_alt_name_present/dac-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_subject_alt_name_present/dac-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_subject_alt_name_present/dac-Key.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_subject_alt_name_present/dac-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_subject_alt_name_present/pai-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_subject_alt_name_present/pai-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_subject_alt_name_present/pai-Key.der create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_subject_alt_name_present/pai-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_ext_subject_alt_name_present/test_case_vector.json create mode 100644 credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha1/cd.der create mode 100644 credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha1/dac-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha1/dac-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha1/dac-Key.der create mode 100644 credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha1/dac-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha1/pai-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha1/pai-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha1/pai-Key.der create mode 100644 credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha1/pai-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha1/test_case_vector.json create mode 100644 credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha256/cd.der create mode 100644 credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha256/dac-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha256/dac-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha256/dac-Key.der create mode 100644 credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha256/dac-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha256/pai-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha256/pai-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha256/pai-Key.der create mode 100644 credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha256/pai-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha256/test_case_vector.json create mode 100644 credentials/development/commissioner_dut/struct_pai_sig_curve_prime256v1/cd.der create mode 100644 credentials/development/commissioner_dut/struct_pai_sig_curve_prime256v1/dac-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_pai_sig_curve_prime256v1/dac-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_sig_curve_prime256v1/dac-Key.der create mode 100644 credentials/development/commissioner_dut/struct_pai_sig_curve_prime256v1/dac-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_sig_curve_prime256v1/pai-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_pai_sig_curve_prime256v1/pai-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_sig_curve_prime256v1/pai-Key.der create mode 100644 credentials/development/commissioner_dut/struct_pai_sig_curve_prime256v1/pai-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_sig_curve_prime256v1/test_case_vector.json create mode 100644 credentials/development/commissioner_dut/struct_pai_sig_curve_secp256k1/cd.der create mode 100644 credentials/development/commissioner_dut/struct_pai_sig_curve_secp256k1/dac-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_pai_sig_curve_secp256k1/dac-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_sig_curve_secp256k1/dac-Key.der create mode 100644 credentials/development/commissioner_dut/struct_pai_sig_curve_secp256k1/dac-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_sig_curve_secp256k1/pai-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_pai_sig_curve_secp256k1/pai-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_sig_curve_secp256k1/pai-Key.der create mode 100644 credentials/development/commissioner_dut/struct_pai_sig_curve_secp256k1/pai-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_sig_curve_secp256k1/test_case_vector.json create mode 100644 credentials/development/commissioner_dut/struct_pai_subject_pid_mismatch/cd.der create mode 100644 credentials/development/commissioner_dut/struct_pai_subject_pid_mismatch/dac-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_pai_subject_pid_mismatch/dac-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_subject_pid_mismatch/dac-Key.der create mode 100644 credentials/development/commissioner_dut/struct_pai_subject_pid_mismatch/dac-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_subject_pid_mismatch/pai-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_pai_subject_pid_mismatch/pai-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_subject_pid_mismatch/pai-Key.der create mode 100644 credentials/development/commissioner_dut/struct_pai_subject_pid_mismatch/pai-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_subject_pid_mismatch/test_case_vector.json create mode 100644 credentials/development/commissioner_dut/struct_pai_subject_vid_mismatch/cd.der create mode 100644 credentials/development/commissioner_dut/struct_pai_subject_vid_mismatch/dac-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_pai_subject_vid_mismatch/dac-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_subject_vid_mismatch/dac-Key.der create mode 100644 credentials/development/commissioner_dut/struct_pai_subject_vid_mismatch/dac-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_subject_vid_mismatch/pai-Cert.der create mode 100644 credentials/development/commissioner_dut/struct_pai_subject_vid_mismatch/pai-Cert.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_subject_vid_mismatch/pai-Key.der create mode 100644 credentials/development/commissioner_dut/struct_pai_subject_vid_mismatch/pai-Key.pem create mode 100644 credentials/development/commissioner_dut/struct_pai_subject_vid_mismatch/test_case_vector.json create mode 100755 src/tools/chip-cert/gen_com_dut_test_vectors.py diff --git a/credentials/development/commissioner_dut/struct_dac_cert_version_v2/cd.der b/credentials/development/commissioner_dut/struct_dac_cert_version_v2/cd.der new file mode 100644 index 0000000000000000000000000000000000000000..d42203deaa727c650bf644f3d95505ca1ecd3a3f GIT binary patch literal 236 zcmXqLe96YC)#lOmotKfFX+h&{gT@<7jLe3-2Hb3%32h#Xsmv@)j0Uaj-G}h210CH+H8z0j7^Jbm>79j+}zv@4HU$Ajf@OTj0_+kN`l`K z2n>ykfymU-)H2Gz4TqU7j?UQ4L=$D=VX*)i9%&%V#twEV6C>2g%#7^JP7Ev&3;)km z>^L4QD&6$+n2KNJvrV}y7wQ)6UnwiT_(D8;NIjDY&$na8`Wgj2O7@0|*JbR|(76;p z;mB5jxf(<*;f}iR$8OVdAm05s+*B~OAyzl=CgC)1$J(W7SJ>c#?tGqSWkpr38 zgTcU+Ns-}DY=iC1baBQQxf>_b<10k_41OPe-@Yqb{FLw2st=p&m=yFrz0tF?jZsPu c6YKhro!xVK-;z~7)n)QI?)P_H?vVTp0G_RjXaE2J literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_cert_version_v2/dac-Cert.pem b/credentials/development/commissioner_dut/struct_dac_cert_version_v2/dac-Cert.pem new file mode 100644 index 00000000000000..3b2a00789768b6 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_cert_version_v2/dac-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBzjCCAXSgAwIBAQIII0N0uct+CD0wCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +REFDMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAARYof+dIYjHUxUbgvnGJE555rJtBNB+ +or+pHRej0F8HVH8CNAz2xsaOgRFIdL1VF35ouigs0l+QxNsMRydzqfiDo2AwXjAM +BgNVHRMBAf8EAjAAMA4GA1UdDwEB/wQEAwIHgDAdBgNVHQ4EFgQUPhMhzb9IJo2+ +qUxFoLC4ZlPlLwIwHwYDVR0jBBgwFoAUFWO+/6gwpNvu5RrJt1Dd/jpurNcwCgYI +KoZIzj0EAwIDSAAwRQIhAMJdgD3ZZxcBXB7YyWdfeBWOMPvD74e6axfKTdV68LI+ +AiAu8uwuPj1cImdWForwa2uMy76kqvknHG8I34+K04gZ8w== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_dac_cert_version_v2/dac-Key.der b/credentials/development/commissioner_dut/struct_dac_cert_version_v2/dac-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..0712a431c139eac98917ea9ad6e433af5c9d7f2a GIT binary patch literal 121 zcmV-<0EYiCcLD(c1Rx)VBD6K7H{*)EbJJ3~5o~p&@xL!x1!30o2fO=%aF3u01_&yK zNX|V20SBQ(13~}j*f;R210CH+H8z0j7^Jbm>79j+}zv@4HU$Ajf@OTj0_+kN`l`K z2n>ykfymU-)G`W>nVvYzj5H8tV+Xs5i4p2JW=3{qCk7TdzMh3gqx8S-zP}<{-F;<( zpmvL@v;FEM@?iemCtV0e|W)B7fS0)9c zhp(PhK9l&D+`VnakIl*@dQso?g_HbOxb?Iyd~ah_%B0A!zN#kIp50QVyyj$_^Y$YJ V9?6}#bFFtRZwd65Pmo+&0RRw!iS_^h literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_cert_version_v2/pai-Cert.pem b/credentials/development/commissioner_dut/struct_dac_cert_version_v2/pai-Cert.pem new file mode 100644 index 00000000000000..566be79634b389 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_cert_version_v2/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBvjCCAWSgAwIBAgIISjYJJhme3RUwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowMDEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTBZMBMGByqGSM49AgEGCCqGSM49AwEH +A0IABB4OjKHFWi/1u9+oaydHqWARK4QlQflYfoV6z5bgz6qsSffaH11Wr7Dg6fJF +R+H+mX3o+4ADAGW05CIWC+4M2UWjZjBkMBIGA1UdEwEB/wQIMAYBAf8CAQEwDgYD +VR0PAQH/BAQDAgEGMB0GA1UdDgQWBBQVY77/qDCk2+7lGsm3UN3+Om6s1zAfBgNV +HSMEGDAWgBRq/SJ3H1Ef7L8WQZdnENzcMaFxfjAKBggqhkjOPQQDAgNIADBFAiAy +4ermeeYY/mOLtpj4syN0Llr3LxNiT6hGjIWh7zw6dQIhAK96fG0/Bzkkd3zJXkO3 +xHBIY4ltnTu6p4RRTx9gGa14 +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_dac_cert_version_v2/pai-Key.der b/credentials/development/commissioner_dut/struct_dac_cert_version_v2/pai-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..b4ba5f3f14f3c3316d8e2fa8ad83e2f75eda4532 GIT binary patch literal 121 zcmV-<0EYiCcLD(c1R%`HOdIeEE%G4lGM{-?yWWlk{=BMvU7cFSa0?+tK*^vA1_&yK zNX|V20SBQ(13~}<9uAD5#ab`*yWgm5Cr7DZ5i5ixLHSsIg?i7H;Lob8N%z_xT~@EK b;OX*3N8$dNedzmu0{~^Tj-G}h210CH+H8z0j7^Jbm>79j+}zv@4HU$Ajf@OTj0_+kN`l`K z2n>ykfymU-)H2Gz4TqU7j?UQ4L=$D=VX*)i9%&%V#twEV6C>2g%#7^JP7EyBSGtXs zm+9o3S>ISBzm7-x=;Br*1=ESsgeBr%?u*$s$$$R4FI|>vcmB_vWSgIQcJlF0r}u?_ zwsTEpeEYU%#mn}^2?lWnJV0;D3NtePXJIm6FyI66_(42iu&_56$b$HMEMhDo*>T@y zUw9Zl;f>S|e}~_{@1<@JTy7u_l2&E`23~{6o5h>zSI4XnxUOQgt|D7~rq$i^?Z|=5 z?7?8*%A}C}gURUn=?R8yOoiSXULW7JPw7gJ?2+XGg>S|F?%CvXhe?s)(nX1Xai*E) e%A;C1%g@eeV`uX1+W)%v`dj0}7gF!+W(ELea*{0o literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_cert_version_v3/dac-Cert.pem b/credentials/development/commissioner_dut/struct_dac_cert_version_v3/dac-Cert.pem new file mode 100644 index 00000000000000..9e408c505a5a13 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_cert_version_v3/dac-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBzjCCAXSgAwIBAgIIDK5kwgUSAUEwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +REFDMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAARr1Isyp3YsbMyvgXIfrgwbxaOFMiA1 +kZYTGF/pvly+kk+f7vSKOa25/22SPW9lzZPH8su+V/M+RWMB7e2MqOmHo2AwXjAM +BgNVHRMBAf8EAjAAMA4GA1UdDwEB/wQEAwIHgDAdBgNVHQ4EFgQUa172m9DhX5Ds +GrhPQPv73mW3UacwHwYDVR0jBBgwFoAU7KOyf6tcqBDXJDqueGsnmTrdz4cwCgYI +KoZIzj0EAwIDSAAwRQIga/gCMtfLkDGGAnFLsOvHur4i1IwdxKdQce0W/byyTNwC +IQDS0Rj+XjVpzndahAl3zZiGBwJNir/rc9ftM8PQZdy7Aw== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_dac_cert_version_v3/dac-Key.der b/credentials/development/commissioner_dut/struct_dac_cert_version_v3/dac-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..e37170bf571a41c140b3bd8452d3cfd0519ba893 GIT binary patch literal 121 zcmV-<0EYiCcLD(c1Rx;Bpf)dcw3seKF_cK0FncE$OcB!9_m-zJkHs&Ff$n#7)lt3u`!3TF!S*H zCYF?>7Ab_J7MCalI64}N7znX(X|pl1Fg7i!VPfQAadUGsG*A%dH8L_VF*1OFC<%T` zATTsC1|m~SQ_CnkW_scJobofuexPAJSwytZ?`^r`ErceRYx zhV56AJIvOi*LQQ%*W(vIBxDrM-TCYBA^9E7vrb#^=`+Q~3C5V)>l zwXPyteWumj^X&%mAZcY5U|=yQJL*@MBrl}W*( zMTA&-U1_+KYRIYf#Q(~XL3f$oElY1$Lx7O8|o?4&^1_&yK zNX|V20SBQ(13~}!DI1VoYeZ(waTX5%Rb_aX+IQd>uYuz@k literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_cert_version_v3/pai-Key.pem b/credentials/development/commissioner_dut/struct_dac_cert_version_v3/pai-Key.pem new file mode 100644 index 00000000000000..bab07c039ea260 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_cert_version_v3/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIPby6KEXHgwmB+hUrnjDU2Kfvwrc4PCTeymHt9bVmJ5aoAoGCCqGSM49 +AwEHoUQDQgAEUsggmWHWuZ8bytcl3SoyrVa/Jh7DBoQujtmy9cfR8GBocZ25+uPC +H7hDmss4Di8CfcQsYFtw52d2B3v3OPleUg== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_dac_cert_version_v3/test_case_vector.json b/credentials/development/commissioner_dut/struct_dac_cert_version_v3/test_case_vector.json new file mode 100644 index 00000000000000..ed86a0962e0895 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_cert_version_v3/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "DAC Test Vector: Valid certificate version field set to v3(2)", + "is_success_case": "true", + "dac_cert": "308201ce30820174a00302010202080cae64c205120141300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d030107034200046bd48b32a7762c6cccaf81721fae0c1bc5a385322035919613185fe9be5cbe924f9feef48a39adb9ff6d923d6f65cd93c7f2cbbe57f33e456301eded8ca8e987a360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e041604146b5ef69bd0e15f90ec1ab84f40fbfbde65b751a7301f0603551d23041830168014eca3b27fab5ca810d7243aae786b27993addcf87300a06082a8648ce3d040302034800304502206bf80232d7cb90318602714bb0ebc7babe22d48c1dc4a75071ed16fdbcb24cdc022100d2d118fe5e3569ce775a840977cd988607024d8abfeb73d7ed33c3d065dcbb03", + "pai_cert": "308201be30820164a003020102020801a53ebdb7c77789300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313059301306072a8648ce3d020106082a8648ce3d0301070342000452c8209961d6b99f1bcad725dd2a32ad56bf261ec306842e8ed9b2f5c7d1f06068719db9fae3c21fb8439acb380e2f027dc42c605b70e76776077bf738f95e52a366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e04160414eca3b27fab5ca810d7243aae786b27993addcf87301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d040302034800304502203874c3e128a2586f31301c15840b814136e6bc3fa9bdd023f7d9070a84ffefed022100b19bba684fc646b47e686d7bd306e73986d89ff3dd438b90e04b697c32caa684", + "certification_declaration": "3081ea06092a864886f70d010702a081dc3081d9020103310d300b0609608648016503040201304506092a864886f70d010701a0380436152400012501f1ff360205008018250334122c04135a494732303134315a423333303030312d32342405002406002507769824080018317e307c020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d04030204483046022100beee93d0de9ca5e41a7484013d7050ce439b5e92ee2c47b74399c9ea866e62ff022100b112b86226ed90d8e9136ebd94247e279dbcc6e49494c89cc27f4a8ec86a9f03", + "dac_private_key": "20c6a0362f75b4982e433194489c307b27184c11d2d8f796a7683163e2eb24a2", + "dac_public_key": "046bd48b32a7762c6cccaf81721fae0c1bc5a385322035919613185fe9be5cbe924f9feef48a39adb9ff6d923d6f65cd93c7f2cbbe57f33e456301eded8ca8e987" +} diff --git a/credentials/development/commissioner_dut/struct_dac_ext_akid_missing/cd.der b/credentials/development/commissioner_dut/struct_dac_ext_akid_missing/cd.der new file mode 100644 index 0000000000000000000000000000000000000000..918fb4d1b1675b393d77e6c2fb5c39f71aaf9eeb GIT binary patch literal 235 zcmXqLe8I-4)#lOmotKfFX+h&HgU0JjjLe3-2Hb3%32h#Xsmv@)j0UaaFgtdmCpf)=1Z>t literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_ext_akid_missing/dac-Cert.der b/credentials/development/commissioner_dut/struct_dac_ext_akid_missing/dac-Cert.der new file mode 100644 index 0000000000000000000000000000000000000000..2a6e760d8ed2803301c037a404b0f95dede37c74 GIT binary patch literal 433 zcmXqLVq9y`#2CDQnTe5!iNok7cS))L&8-GpY#dr`9_MUXn3)U=3?&T2*qB3En0fep z6H7``ixfgqi%S#&96b$1420OYwAmP07@HQ=FfsD5xVgC*8YqbK8W|aw7#To7lmx#e z5EvR61Cgnvsb!Rb8xAvF9G$V7i6+X#!(st4JkmgzjUDV#CPt`}nHkxcofufczMOjy zC$IHXxpa+ZvWq$kV=6PAM z6A!7C#97@wQZ;e0y@9O(5767P!i#?`rpT?i=ne y_2f9Xal6t6-zFvnN12a_W)=!dKdcelT=`U>Xr)@o=Y>q$r!O^K@iqHS_DTSUBZL|N literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_ext_akid_missing/dac-Cert.pem b/credentials/development/commissioner_dut/struct_dac_ext_akid_missing/dac-Cert.pem new file mode 100644 index 00000000000000..e3819352af3d61 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_akid_missing/dac-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBrTCCAVOgAwIBAgIIMtkLdHVP2bUwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +REFDMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAARW9M7gXh8q5SN1rEmB4uTs4ulidrVa +AVF1Fcz3k2RdHZDrXyePPPTkK05dBozXGjfb5bOeal2RwiZ0XjrbxHqRoz8wPTAM +BgNVHRMBAf8EAjAAMA4GA1UdDwEB/wQEAwIHgDAdBgNVHQ4EFgQUpVLxDDvTkOli +pRjcmb5XFaTeXm8wCgYIKoZIzj0EAwIDSAAwRQIhAJYBm4Pay1B/56mq27F+oPcm +3yzfMb91SQjBsbcisE2CAiBBHPFhNjggpfCsEbN55RByqSZ086ECt5elNaj1a9xr +qQ== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_akid_missing/dac-Key.der b/credentials/development/commissioner_dut/struct_dac_ext_akid_missing/dac-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..c79fdbd9d9f3251a530e9cf5f99c734763f0ccbc GIT binary patch literal 121 zcmV-<0EYiCcLD(c1R&3#GgvVRH-bD6TKRKvM<1qz+WUUx#`P~|Zly=IX4;?%1_&yK zNX|V20SBQ(13~}JkHs&Ff$n#7)lt3u`!3TF!S*H zCYF?>7Ab_J7MCalI64}N7znX(X|pl1Fg7i!VPfQAadUGsG*A%dH8L_VF*1OFC<%T` zATTsC1|m~SQ_CnkW_scJobofudWbF$y?_Ad$Ul; z%tOnnj-GuGx1zT*WvhniF(Ju`KiXO+NHCf67@In33^63x@$4kYZwFG~fe?@q@&G!NAC7APeI2v52vVG`#EL^$B5`@NKP` zfRn_!-ujIz91Y|_(#kBrz-kc5`m0nfA1ME3znJ6nbb&i}3>OyGAqOh62ZMntlOn^B zKl{%$-#&1~Yq?uh`RtH7PMudz-?B-u1pFydG2P=9z@%W6>Ek~;CD=242Pea=gi{M{ V^K@-Lw0F;%y2iyP-gjIu1povqhwcCX literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_ext_akid_missing/pai-Cert.pem b/credentials/development/commissioner_dut/struct_dac_ext_akid_missing/pai-Cert.pem new file mode 100644 index 00000000000000..292df21eb5699f --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_akid_missing/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBvjCCAWSgAwIBAgIIGD6qjPnNUJMwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowMDEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTBZMBMGByqGSM49AgEGCCqGSM49AwEH +A0IABGFta88lFn2iFG6mS/uzElSZwqZ6xc3gXqiNiWS1KDXGEhmR+IaFkBgCNwwy +i27QZvQ6eV1kosBplvG9pYqKBxujZjBkMBIGA1UdEwEB/wQIMAYBAf8CAQEwDgYD +VR0PAQH/BAQDAgEGMB0GA1UdDgQWBBSA7ooNTFQCkPatNhBCGK6Nf7GoQTAfBgNV +HSMEGDAWgBRq/SJ3H1Ef7L8WQZdnENzcMaFxfjAKBggqhkjOPQQDAgNIADBFAiEA +xPy/zoPbwNRKp0Z6d5tUfgks6uXtBhoEUPxyJDW8RlACIDppTE+bZFNJZ7gJANpg +yqDbDIq3wr28rH6Bo8jviNA1 +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_akid_missing/pai-Key.der b/credentials/development/commissioner_dut/struct_dac_ext_akid_missing/pai-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..97ce4e98b33c20c0af588fea060413dabc550007 GIT binary patch literal 121 zcmV-<0EYiCcLD(c1RxBe=8`}c_*5<6Nj-G}h210CH+H8z0j7^Jbm>79j+}zv@4HU$Ajf@OTj0_+kN`l`K z2n>ykfymU-)H2Gz4TqU7j?UQ4L=$D=VX*)i9%&%V#twEV6C>2g%#7^JP7EwdXFp`S zU+eDsdCdbsIPBGvCdR$hRk?}tZlL3PPABe{f;sFDOy}>{h#OGrXV-cCn zTYLX*ZPS@|Px2G2Z3UF;(l@^~kOxUCvjBsyL4+edw#Rtw@5vkXCdu~Lhx}6$P!};U zVdDS>9xE$5BO{B3ftrB|jBmi$CXrE6QedU8pPyV@pqE;am|KvOs+XLftB)Kx%Z zE=&p`hwnIUV`z3aJR#m{Zlj}N{Qgm-|AglX(MR?zS*%&Nf=R*na+dPcROL3=@AqCl ZtH_(U-{3U=`+M?k7dq=SSM8G%1^@%inF;^^ literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_ext_authority_info_access_present/dac-Cert.pem b/credentials/development/commissioner_dut/struct_dac_ext_authority_info_access_present/dac-Cert.pem new file mode 100644 index 00000000000000..af31cdf4136dfb --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_authority_info_access_present/dac-Cert.pem @@ -0,0 +1,13 @@ +-----BEGIN CERTIFICATE----- +MIICBTCCAaygAwIBAgIIe5d63TeEWm8wCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +REFDMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAASlm+EG331HTfOs+EgVxwuHX0MQ+DvR +fkajrFew2M4cGNlPQrnYP8ynbNLIdPdukR3zUxw2T55/Tqk/5fX/LsjWo4GXMIGU +MAwGA1UdEwEB/wQCMAAwDgYDVR0PAQH/BAQDAgeAMB0GA1UdDgQWBBSbDX3f3X2C +zO7kb2A7PRAjfmez7TAfBgNVHSMEGDAWgBQIX12MM637k7C9Yh2MP1T+JhAnFDA0 +BggrBgEFBQcBAQQoMCYwJAYIKwYBBQUHMAGGGGh0dHA6Ly9vY3NwLmV4YW1wbGUu +Y29tLzAKBggqhkjOPQQDAgNHADBEAiBUw9xBtgCDRzHIF4U3PCwoM+/iWU+Q5yBb +xL6koyl+qAIgM9NqI5VlI4Yd997p5nhukb8wyw/v3h9G0Il+Kaq+HhM= +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_authority_info_access_present/dac-Key.der b/credentials/development/commissioner_dut/struct_dac_ext_authority_info_access_present/dac-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..9eb30bc36bf88def60e195e802590bb180e4d6eb GIT binary patch literal 121 zcmV-<0EYiCcLD(c1R%mTcpT*w_-+x+qT#XTIVo6m1d%#7^JP7Ey9=x`=^1NLrZ%7+4J=S$~zv=$#Ko-T0bj^V<>I^;lQ_Fyn@Wm06A z!LxHuQrES;=J~CMZ~o=tT^+GyPV(u5lRm49Wb>u`9x*B82!&LpSY9`(YMfm$b;;It V@fl$}Z|@y_uexXFmeV^eI042%h^hbp literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_ext_authority_info_access_present/pai-Cert.pem b/credentials/development/commissioner_dut/struct_dac_ext_authority_info_access_present/pai-Cert.pem new file mode 100644 index 00000000000000..71ad2c6c786870 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_authority_info_access_present/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBvjCCAWSgAwIBAgIId+Ifj7WiBh4wCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowMDEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTBZMBMGByqGSM49AgEGCCqGSM49AwEH +A0IABNdf9CWhXgi2u8loLJu99vaKhkUOc+2s8J8ZOuE2iJwtO8hbNvhLsroBuHhq +2rEaqS6TlXx5tIkgdg0bxJDNr6ijZjBkMBIGA1UdEwEB/wQIMAYBAf8CAQEwDgYD +VR0PAQH/BAQDAgEGMB0GA1UdDgQWBBQIX12MM637k7C9Yh2MP1T+JhAnFDAfBgNV +HSMEGDAWgBRq/SJ3H1Ef7L8WQZdnENzcMaFxfjAKBggqhkjOPQQDAgNIADBFAiEA +mAy5vGKK1r03b4XD2f0KDatYtJxjy2DJTKtyHW8aTuICIGwSVHlkOdcyeoGbeJWk +tYcXmFYM7d7F7yW8ubTLuTgJ +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_authority_info_access_present/pai-Key.der b/credentials/development/commissioner_dut/struct_dac_ext_authority_info_access_present/pai-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..d2ed939a8f8e7c014640d97e658b7c1bd2a6986b GIT binary patch literal 121 zcmV-<0EYiCcLD(c1RzO#0$-(%8gQW+TrPk0;Xo)c(X0@8CCHEJOqchqv>Tub1_&yK zNX|V20SBQ(13~}<*I)D{paOZ%~$dmVM_v~vIT8}S>tKRgb*dvZb&P|3EB9l29)T5tTtwlag`!u_|O UvbxHTtjN9lEB3Q`py literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_ca_missing/dac-Cert.der b/credentials/development/commissioner_dut/struct_dac_ext_basic_ca_missing/dac-Cert.der new file mode 100644 index 0000000000000000000000000000000000000000..282617dd4ad6435bae628816d2f97e2f8ea3dcec GIT binary patch literal 469 zcmXqLV!UY3#8|$7nTe5!iNoTmP5?XKaRmb|HV&;ek8`#x%uEIbh7ty1Y|No7%sl+Q zi6teeMG7IQ#U%;>j-G}h210CH+H8z0j7^Jbm>79j+}zv@4HU$Ajf@OTj0_+kN`l`K z2n>ykfymU-)H2Gz4TqU7j?UQ4L=$D=VX*)i9%&%V#twEV6C>2g%#7^JP7ExnN~v!D zxr+sU-8YlY4LBt-b&*tU)V2L*1>X0+-Ew;IzyI@0->%d#mD;d%&3TOwiB(%}SoP*F zb`Xwd*gb9Q4BO1b$p(oA{6KHZ3NtePXJIt}h7f}RA4q^7BmfK<_67r45TB1lj78*x zAh*9Pqk#R@-RqAp+w^%)j@_P92J#?jWfoxgHHcVf?s4%jSk8VVAl&#;ee>_A)w?~A z!v`rkGiZBWV-m7*GbTGqeK5buxew9BLZ|DHANsVp@b bu(hnuC{!4#wAeb0Z=*mHUjVz7wU|9=FJLwp literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_ca_missing/dac-Key.pem b/credentials/development/commissioner_dut/struct_dac_ext_basic_ca_missing/dac-Key.pem new file mode 100644 index 00000000000000..5c7c2cfc33dfe5 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_basic_ca_missing/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEINon4iaBLXpKixJa21lQvei2dvg8dOD1ZJFYBenvYvrFoAoGCCqGSM49 +AwEHoUQDQgAEJSJlRv8LcxD63zYbbVDKFJWiGn1a1r/NEO+P7bTLo/7/njXtqSw1 +GrC1rM8oVBiqtNg6jW+jQBNfALuWtZg9aQ== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_ca_missing/pai-Cert.der b/credentials/development/commissioner_dut/struct_dac_ext_basic_ca_missing/pai-Cert.der new file mode 100644 index 0000000000000000000000000000000000000000..670a3fba99d0077ed8e3228558602619d70f7d2b GIT binary patch literal 450 zcmXqLV%%rY#F(;xnTe5!iG%59kZHg8y)*+ZHV&;ek8`#x%uEIbh7ty1Y|No7%sl+Q zi6teeMG7IQ#U%;>j*f;R210CH+H8z0j7^Jbm>79j+}zv@4HU$Ajf@OTj0_+kN`l`K z2n>ykfymU-)G`W>nVvYzj5H8tV+Xs5i4p2JW=3{qCkB>lzw?}<4Hsw@aNg~z3(vcI z?uy16rvt2srT33~WmudUxXbs$F|q$HTcUohUXwJ#Wb^)_TdTOHboBnRSln0s=Xd1d zG=mhNH<&|Zg&7(Dvv3%&0VyU%Mgu;O7(Yl17z~VT2C^VNABz}^h=t}J7Y~Ew>_-B^ zjW5+V|BhO{+rvN}B(2N>46Fu`tiMX-@`3Vi_KP`APZzjz$8cd`9de*DdoUQdGAS}# z;qME2>~B=8v#LcoeZsvnX__pt+S7!!Vzh+6AI@DY!KA=zx~1N&S$2Uqk72}>8K%*v U<_o15%XHerwM=ZQ`>j&~0KYPX=>Px# literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_ca_missing/pai-Cert.pem b/credentials/development/commissioner_dut/struct_dac_ext_basic_ca_missing/pai-Cert.pem new file mode 100644 index 00000000000000..ac10d8b7b18bd1 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_basic_ca_missing/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBvjCCAWSgAwIBAgIIAvlSNY8X3mYwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowMDEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTBZMBMGByqGSM49AgEGCCqGSM49AwEH +A0IABNb7bkNbMaApcAndin5Xbt3O1CjsQsAFYXXfxPUAo2lRuk3wxhb/RLRa+aus +Ypg0s79y2qoKlIiN+jijjnf8+1mjZjBkMBIGA1UdEwEB/wQIMAYBAf8CAQEwDgYD +VR0PAQH/BAQDAgEGMB0GA1UdDgQWBBQ4KbxESDCnB8RQVzPSf4P7Wqu7SDAfBgNV +HSMEGDAWgBRq/SJ3H1Ef7L8WQZdnENzcMaFxfjAKBggqhkjOPQQDAgNIADBFAiEA +1A+OUuNPMnMsqoQjZ5DezGYpBF0rlhMqXCoT98NtoxgCIA01tH9Ggx2gFwwxWNSY +NVvKnxJkMxyJPF6EkYZ++yx0 +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_ca_missing/pai-Key.der b/credentials/development/commissioner_dut/struct_dac_ext_basic_ca_missing/pai-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..00aa7b80539d0ccd65ad57cc69bae44e16a79d2b GIT binary patch literal 121 zcmV-<0EYiCcLD(c1Rw-Rp&%Nf33!VLjc%WbG+#{wpKsMJegqD<*@rPlaulEn1_&yK zNX|V20SBQ(13~}<*86TlTQQ(1a0%UtephbY&eSOELcj%Kb>GDG0HbM9x=rxL7XL)F bTKTK2Vwg0uzjE5D3Y3VA`Z%MGcl`TVNcS_P literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_ca_missing/pai-Key.pem b/credentials/development/commissioner_dut/struct_dac_ext_basic_ca_missing/pai-Key.pem new file mode 100644 index 00000000000000..50acc0f4b9d86d --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_basic_ca_missing/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIARIoSAaogl4iwiNbp+JNF9NBJ9v1S5+BA642YcxR3IUoAoGCCqGSM49 +AwEHoUQDQgAE1vtuQ1sxoClwCd2Kfldu3c7UKOxCwAVhdd/E9QCjaVG6TfDGFv9E +tFr5q6ximDSzv3LaqgqUiI36OKOOd/z7WQ== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_ca_missing/test_case_vector.json b/credentials/development/commissioner_dut/struct_dac_ext_basic_ca_missing/test_case_vector.json new file mode 100644 index 00000000000000..d79752ad019002 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_basic_ca_missing/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "DAC Test Vector: Certificate Basic Constraint extension CA field is missing", + "is_success_case": "false", + "dac_cert": "308201d130820177a003020102020838d52c50070ec720300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d0301070342000425226546ff0b7310fadf361b6d50ca1495a21a7d5ad6bfcd10ef8fedb4cba3feff9e35eda92c351ab0b5accf285418aab4d83a8d6fa340135f00bb96b5983d69a3633061300f0603551d130101ff04053003020100300e0603551d0f0101ff040403020780301d0603551d0e04160414c8110b4f1d01103fd5bbafc7a6b2f3bc6c3ebcca301f0603551d230418301680143829bc444830a707c4505733d27f83fb5aabbb48300a06082a8648ce3d040302034800304502203068efbf4261c69e39583f154b01b8fbfa067668703efe9a486835229b70fcc7022100b7352405e78cdd7ae7287554bee9d549793e8b512f4974ed976de93074f81e9f", + "pai_cert": "308201be30820164a003020102020802f952358f17de66300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313059301306072a8648ce3d020106082a8648ce3d03010703420004d6fb6e435b31a0297009dd8a7e576eddced428ec42c0056175dfc4f500a36951ba4df0c616ff44b45af9abac629834b3bf72daaa0a94888dfa38a38e77fcfb59a366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e041604143829bc444830a707c4505733d27f83fb5aabbb48301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d0403020348003045022100d40f8e52e34f32732caa84236790decc6629045d2b96132a5c2a13f7c36da31802200d35b47f46831da0170c3158d498355bca9f1264331c893c5e8491867efb2c74", + "certification_declaration": "3081ea06092a864886f70d010702a081dc3081d9020103310d300b0609608648016503040201304506092a864886f70d010701a0380436152400012501f1ff360205008018250334122c04135a494732303134315a423333303030312d32342405002406002507769824080018317e307c020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d04030204483046022100a8c5f3b1a71919dd80ff1b4e04ceeb5adacb238fd7d85fb10bf0e356ddc99062022100b6f1886d95d93bb1fa06a96808d0dfedf26a8a77c4a86dddfa5df3275115f9ec", + "dac_private_key": "da27e226812d7a4a8b125adb5950bde8b676f83c74e0f564915805e9ef62fac5", + "dac_public_key": "0425226546ff0b7310fadf361b6d50ca1495a21a7d5ad6bfcd10ef8fedb4cba3feff9e35eda92c351ab0b5accf285418aab4d83a8d6fa340135f00bb96b5983d69" +} diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_ca_wrong/cd.der b/credentials/development/commissioner_dut/struct_dac_ext_basic_ca_wrong/cd.der new file mode 100644 index 0000000000000000000000000000000000000000..01ab18641b69f19168684b7cf3cb058b2471a1e0 GIT binary patch literal 236 zcmXqLe96YC)#lOmotKfFX+h&{gT@<7jLe3-2Hb3%32h#Xsmv@)j0Uarii)(3GV;1Rb8>`efm3{ Tt|JDYHb<%Ho%!s_rFb6zjnzl- literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_ca_wrong/dac-Cert.der b/credentials/development/commissioner_dut/struct_dac_ext_basic_ca_wrong/dac-Cert.der new file mode 100644 index 0000000000000000000000000000000000000000..07f213437d8eed256f94bc97c694d91af3922d98 GIT binary patch literal 469 zcmXqLV!UY3#8|$7nTe5!iG%;tre_8VrGgE(*f_M>JkHs&Ff$n#7)lt3u`!3TF!S*H zCYF?>7Ab_J7MCalIC>h27znX(X|pl1Fg7i!VPfQAadUGsG*A%dH8L_VF*1OFC<%T` zATTsC1|m~SQ_Cm=HymcVI67lD6HSzfhs6S9c%*?a8#~ygOpH(`Gc&R?J29{nM#S)6 z*nQ!EU86eF$I6BNW(8~1&lY}LJKu&=e5YT{os5{$XDi!tix-tFj5b<2U0(g>p{7qd zDT{UaY-IA5>nko!Hb^w!2YOppn33^63#$P$kTT!{3GjmifFZ-)U?2mdzSf-#+Z|ueKdd~#T%x4DjAZcY5VE8qN^tosYui0n2FkQyNlQpC(@1=A#19CVs zdoUQdGAS~gmxy)Q{#QZ&=knEFGRA6$)DlbDzg!DV5cU<%keG3O0h5B){ED^K`J2Rh d_UbL!Idv`feuiY{;*9c^$jD30fx1T@0svV{gg^iQ literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_ca_wrong/dac-Cert.pem b/credentials/development/commissioner_dut/struct_dac_ext_basic_ca_wrong/dac-Cert.pem new file mode 100644 index 00000000000000..73ffcfead222f3 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_basic_ca_wrong/dac-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIB0TCCAXegAwIBAgIID8qy5jChGlMwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +REFDMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAARxWFwP0LvQwD6BJwLxeaFPNnCsJ81x +9q2fPAkXuU583Ghcdeaph21zonShWzKllx8n2cKC8ixkoy0OPBxupy8ho2MwYTAP +BgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIHgDAdBgNVHQ4EFgQUz1YrlnhY +QXYgKH8zSgjrvJAJaeYwHwYDVR0jBBgwFoAUjkQrE6y+PaFnHDhJBVSKbukbewAw +CgYIKoZIzj0EAwIDSAAwRQIhAM8YXUS3/SAv+aerShwzJsImYXSH9NZVYBNNF2gY +mNegAiBKn3itO2+yF4y9LqS5la0LvwBjQ3Nod4RZWdKDUS3F4Q== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_ca_wrong/dac-Key.der b/credentials/development/commissioner_dut/struct_dac_ext_basic_ca_wrong/dac-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..9af1514d4cc89fa9b9586f95c6dd72b6f768cce9 GIT binary patch literal 121 zcmV-<0EYiCcLD(c1R%CAsKTtv32lsW;oM!Zl^CHN`Wyx literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_ca_wrong/dac-Key.pem b/credentials/development/commissioner_dut/struct_dac_ext_basic_ca_wrong/dac-Key.pem new file mode 100644 index 00000000000000..a455be20e35208 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_basic_ca_wrong/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEILYvqMKsywltjHLh3GFbRTY/vNCyPzHCJYpU0BVsKgyfoAoGCCqGSM49 +AwEHoUQDQgAEcVhcD9C70MA+gScC8XmhTzZwrCfNcfatnzwJF7lOfNxoXHXmqYdt +c6J0oVsypZcfJ9nCgvIsZKMtDjwcbqcvIQ== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_ca_wrong/pai-Cert.der b/credentials/development/commissioner_dut/struct_dac_ext_basic_ca_wrong/pai-Cert.der new file mode 100644 index 0000000000000000000000000000000000000000..de3b317c3c8dba570b85c4964a87fc0197c940f8 GIT binary patch literal 449 zcmXqLV%%%c#F(;xnTe5!iKG5ykY2udg^U3g8;4e#$2nUTW+npzLkR;hHs(+kW*&au z#FCQKB88CD;u3`bM@K^u10gmpZ8k<0#->FzOpH7%Zfj#0Yg9Gb1~*69dbZLhtF9eBK1w`aUg8nKh~R z$nWMUzwele&$(_=wCv82Q!~s29?eWEd2{STbM0amG3MlhLT?`FrS1EgxkR;V&UL=U zX$C1kZ!m|-3NtePXW=kl15!+kj0SulF@BI3Fc=uw3}iukJ{B<+kv#tI|e4zZB{bG*O(*^F_FAU}XdcVpyvP|1mb}}nh?CWRa!y9?}V#}0{)LO-O}zV6mm-V-^B^j T1ruFP{GT~ZCO5Tu(_Ku% literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_critical_missing/dac-Cert.der b/credentials/development/commissioner_dut/struct_dac_ext_basic_critical_missing/dac-Cert.der new file mode 100644 index 0000000000000000000000000000000000000000..e215ca2a3098b314811616bbb10f293313b131d5 GIT binary patch literal 462 zcmXqLVmxKg#8|k1nTe5!iNoiXz|{UQ}nHZr?W@cn(c4A<8^KC_L z?&3biM_cm+1Waf5t;_-pxdxG?_3y59x1QZ}uJ_b!&Xw99<8}&9Lk?kP zcLoC&CIyL-?r(ioE|ZtC?U&iGv+9qcc&VuLUxDwUygOzJ)Xzv~QYcID==sjF{>^0n bYacb7cYhb>sOaQwxxl{8++|aP!*o#qteuTY literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_critical_missing/dac-Cert.pem b/credentials/development/commissioner_dut/struct_dac_ext_basic_critical_missing/dac-Cert.pem new file mode 100644 index 00000000000000..f937cbb6f42bb6 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_basic_critical_missing/dac-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIByjCCAXGgAwIBAgIITNoQlY/6u6IwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +REFDMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAATs9qhtbaOOAeK1bxAQNZuMbAwN1F3S +pDaJ1iCj3LDHPBqVdW54+XJn3L4oaMtCTH/6rmyV2p2x8QZxzcjr6rXSo10wWzAJ +BgNVHRMEAjAAMA4GA1UdDwEB/wQEAwIHgDAdBgNVHQ4EFgQUWySeBlIvflK2gPLf +DG8zYaLiAHIwHwYDVR0jBBgwFoAUpX/u1IuFzbLOjcrbCakr8V65E5YwCgYIKoZI +zj0EAwIDRwAwRAIgGHSL9o46RJOlBr8csLl6/CEXdRUb/RD3FQ24mRB/mGcCIHZk +SIz3BK/sk0/W8ShDu/cXCHiJC4TQB643RLKAQJcV +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_critical_missing/dac-Key.der b/credentials/development/commissioner_dut/struct_dac_ext_basic_critical_missing/dac-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..233f617598ab92e962100557c2f6a98e09da873a GIT binary patch literal 121 zcmV-<0EYiCcLD(c1Rzg6Lo&qw+-r+YuA)^K<~Aw4SCB;W? b+`cGi%R)?l`mSu1+MTiS264^E>*}@AlqEMf literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_critical_missing/dac-Key.pem b/credentials/development/commissioner_dut/struct_dac_ext_basic_critical_missing/dac-Key.pem new file mode 100644 index 00000000000000..1e0fa09c4ddb55 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_basic_critical_missing/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIE89QzLE/9xri06uolUY5jYpvVeQRT+yJHvgRgXGleF7oAoGCCqGSM49 +AwEHoUQDQgAE7PaobW2jjgHitW8QEDWbjGwMDdRd0qQ2idYgo9ywxzwalXVuePly +Z9y+KGjLQkx/+q5sldqdsfEGcc3I6+q10g== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_critical_missing/pai-Cert.der b/credentials/development/commissioner_dut/struct_dac_ext_basic_critical_missing/pai-Cert.der new file mode 100644 index 0000000000000000000000000000000000000000..f12a1147dda3e911d4d525e41da2a87f4bbe8ef5 GIT binary patch literal 451 zcmXqLV%%@g#F(;xnTe5!iNocrcI=hx9ZUvXY#dr`9_MUXn3)U=3?&T2*qB3En0fep z6H7``ixfgqi%S#&932fs420OYwAmP07@HQ=FfsD5xVgC*8YqbK8W|aw7#To7lmx#e z5EvR61Cgnvsbv%%Gd*#b8EGKQ#twE96C>1d%#7^JP7EyH_O|t{<9X13SM7fE)R|2J z1qT=FzWido-f&^kw$;aF`?EgjmOpekS3RTqr|L}J-r3Lhu>E8CRkLHw1Rl9a_UEyS z(+pC8-e3-u6=r1o&%$BA2Ber684dVAV*DU6U@$PU8OVb8d@N!tB1`MvUFmK;yXjo- zsoR_@wLiw~6rN@v50X}90R~osNY-Daa``~{H~YmLr>6_txnsDnunsv;nLQZ{+?W&@ zTBBI*irz|p^rN;7@5(_#e{zHaGf?H3{H7=kE1_&yK zNX|V20SBQ(13~}<_PvIVt_GU_RF`;6%tH&LWYVs|2;Y7}R bn2Y%(nGKDb=e!2~1p0iqtdI;ISqJA`s4p_# literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_critical_missing/pai-Key.pem b/credentials/development/commissioner_dut/struct_dac_ext_basic_critical_missing/pai-Key.pem new file mode 100644 index 00000000000000..8d57cc3bf512f1 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_basic_critical_missing/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIBbJDakrXac0BXhggy5J6jpZzhILOib+Q4ZHgltPzjUuoAoGCCqGSM49 +AwEHoUQDQgAE9r2Gjq4M4I/dJt9blZmCEHDBoy3p9DevMaFitqvHHY9q8i134UTO +e5iL+SWZDY2b57wG/gT6fLiskAweWQfnXQ== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_critical_missing/test_case_vector.json b/credentials/development/commissioner_dut/struct_dac_ext_basic_critical_missing/test_case_vector.json new file mode 100644 index 00000000000000..964ef3fc524d16 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_basic_critical_missing/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "DAC Test Vector: Certificate Basic Constraint extension critical field is missing", + "is_success_case": "false", + "dac_cert": "308201ca30820171a00302010202084cda10958ffabba2300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004ecf6a86d6da38e01e2b56f1010359b8c6c0c0dd45dd2a43689d620a3dcb0c73c1a95756e78f97267dcbe2868cb424c7ffaae6c95da9db1f10671cdc8ebeab5d2a35d305b30090603551d1304023000300e0603551d0f0101ff040403020780301d0603551d0e041604145b249e06522f7e52b680f2df0c6f3361a2e20072301f0603551d23041830168014a57feed48b85cdb2ce8dcadb09a92bf15eb91396300a06082a8648ce3d0403020347003044022018748bf68e3a4493a506bf1cb0b97afc211775151bfd10f7150db899107f986702207664488cf704afec934fd6f12843bbf7170878890b84d007ae3744b280409715", + "pai_cert": "308201bf30820164a003020102020844cd2b5dd46bb802300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313059301306072a8648ce3d020106082a8648ce3d03010703420004f6bd868eae0ce08fdd26df5b9599821070c1a32de9f437af31a162b6abc71d8f6af22d77e144ce7b988bf925990d8d9be7bc06fe04fa7cb8ac900c1e5907e75da366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e04160414a57feed48b85cdb2ce8dcadb09a92bf15eb91396301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d0403020349003046022100855a04dd15da67e2f2796bc74df2fd2cb55e2448551e324d362a5bf71e9366ea022100d0edf0942410b6a5f63a9637874e2b990944556604305e460000708300c40958", + "certification_declaration": "3081e806092a864886f70d010702a081da3081d7020103310d300b0609608648016503040201304506092a864886f70d010701a0380436152400012501f1ff360205008018250334122c04135a494732303134315a423333303030312d32342405002406002507769824080018317c307a020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d040302044630440220261e5642187ef1644369b4d0ed9921f005864feda1a899a7a3705fac5b50d15b02205ad7c145af31c4957cae83e7dcd27cb4b6ced9ba77e9a6fa348766059dc219eb", + "dac_private_key": "4f3d4332c4ffdc6b8b4eaea25518e63629bd5790453fb2247be04605c695e17b", + "dac_public_key": "04ecf6a86d6da38e01e2b56f1010359b8c6c0c0dd45dd2a43689d620a3dcb0c73c1a95756e78f97267dcbe2868cb424c7ffaae6c95da9db1f10671cdc8ebeab5d2" +} diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_critical_wrong/cd.der b/credentials/development/commissioner_dut/struct_dac_ext_basic_critical_wrong/cd.der new file mode 100644 index 0000000000000000000000000000000000000000..93a353b7c6687b0df3412762821428c6cb03294e GIT binary patch literal 236 zcmXqLe96YC)#lOmotKfFX+h&{gT@<7jLe3-2Hb3%32h#Xsmv@)j0UaZyq1nW)TZ%NHd6EV9l$zG85vB#ZBf$fBizqf_DOF~S6kFzOpH7%ZfC?t&DSrG^m1R;xt2L6w_IlbRNve;F;w51_M42lb@0CKMOES*c%LFL3}G!G6KprHm%mNI#29eP8NA32r3Oi(#LrgSoZU~AiXRSmIVPAq^tgq+E=(+Bc@ bgN~6^FG%A%(1d%#7^JP7Evxe(_Rk5B+h{u|Dy0lBM3X zZ6OwF%MMuo+we6k@j&jys4D)tY5y*Cyq@YH-+6bLifU<^u8c_V)T=%}RFw9;o^xz* znn4QC8_c1y!iOyGAqOh6Cxd|-lOjXQ ztBGF)lI(9xs$$&`=70ayvLnV9U+j&m$5ZO91#|iy#01 literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_critical_wrong/pai-Cert.pem b/credentials/development/commissioner_dut/struct_dac_ext_basic_critical_wrong/pai-Cert.pem new file mode 100644 index 00000000000000..5eb0bc26a2bc28 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_basic_critical_wrong/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBvzCCAWSgAwIBAgIID+GOMm3R0RwwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowMDEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTBZMBMGByqGSM49AgEGCCqGSM49AwEH +A0IABCBOXxqtwvxCLDvI+ZI5Lpa2VDgmpsA7/rD1VmHAbdFaeg9+lv7QiOuVQB+J +3aYkJXVmLRwUU5XVTPgkIr7rnMajZjBkMBIGA1UdEwEB/wQIMAYBAf8CAQEwDgYD +VR0PAQH/BAQDAgEGMB0GA1UdDgQWBBRVZ+KHP5pxiB0jVDQo2bBSXncFeTAfBgNV +HSMEGDAWgBRq/SJ3H1Ef7L8WQZdnENzcMaFxfjAKBggqhkjOPQQDAgNJADBGAiEA +hOqR9RBiP9iSegWwVk/f6qbEM9HovV58bCrv+mYoerUCIQC7+nKd49BL0dteYLG/ +0bkpN62YMpeBShz4ZcxSuCiG0g== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_critical_wrong/pai-Key.der b/credentials/development/commissioner_dut/struct_dac_ext_basic_critical_wrong/pai-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..37d0988b3712a6a064fb5a807aa7e6c413877699 GIT binary patch literal 121 zcmV-<0EYiCcLD(c1R!CCDx_tPFu_Pe8n!mV=gCA$kTa57vc6S+Tk1~@L!Qr4)8E+SWNeVOcy72-*q2EmSSNbM&7N&XmX}34{yMs(VcK@l SHIE%#_Wrp$+f=5Vvl{>=(nnj-G}h210CH+H8z0j7^Jbm>79j+}zv@4HU$Ajf@OTj0_+kN`l`K z2n>ykfymU-)H2Gz4TqU7j?UQ4L=$D=VX*)i9%&%V#twEV6C>2g%#7^JP7ExOOv$Sm ztd_5ju)KADp3s^754ja=bW-^0yo&;-oU{L*X;Xji)0V2lg+~vqQ+sa2s6F{jdGw#j zpC+pNUH_<^wmfKYkU@X}AJE&f{EUqMS%3k--e4dL;`6bHv53SvF-D)vP1gUK71;9q zv!&#s`ZZe&YF)FJwlkN{s5m S^0wK>UM`$F@qXDYZ!rLE42lN; literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_missing/dac-Cert.pem b/credentials/development/commissioner_dut/struct_dac_ext_basic_missing/dac-Cert.pem new file mode 100644 index 00000000000000..3ae9e540f9e37d --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_basic_missing/dac-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBvzCCAWagAwIBAgIIdWQZZ/hRmSMwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +REFDMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAARZAmOrADqnr1g52t+eEsy/4QsgPCxk +Dn5LclGUzj//aTx/3vK0emGhxcKuJucyASuT7Hdb/JPykSdO1/ErZqdSo1IwUDAO +BgNVHQ8BAf8EBAMCB4AwHQYDVR0OBBYEFF1CAVvJbWMv9WpRhPfzORmif6y0MB8G +A1UdIwQYMBaAFESUBKTSsI5oejdmvN3p3DEHtQblMAoGCCqGSM49BAMCA0cAMEQC +IE/Du5ZitPyojUXhCHPlF511CY9T0ZVO7lsXNBi4LzN9AiAxYJCXJS7vz7zB5k5U +mHUkXCXhd4abxumhnZHfdtpLFg== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_missing/dac-Key.der b/credentials/development/commissioner_dut/struct_dac_ext_basic_missing/dac-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..e3a7661d6f24aa6482acf31ba5fdb73b4bea4619 GIT binary patch literal 121 zcmV-<0EYiCcLD(c1RwytK`~^|KoGrDrXJc8qUJu07p#>qKrx-mTY+{(7Tcf-1_&yK zNX|V20SBQ(13~}e2>WY#dr`9_MUXn3)U=3?&T2*qB3En0fep z6H7``ixfgqi%S#&932fs420OYwAmP07@HQ=FfsD5xVgC*8YqbK8W|aw7#To7lmx#e z5EvR61Cgnvsbv%%Gd*#b8EGKQ#twE96C>1d%#7^JP7Ew+>D*;j;tS@!-dAitWB#na zfpb5I9y?q(>E@%WCxvD@l+0OL=^3|d(i{8t4KB;=b^c1__#RF2{d4!+<>w(~J{9td z(+pC8-e3-u6=r1o&%$BA2Ber684dVAV*DU6U@$PU8OVb8d@N!tA}&){mR#DFEM@?iemCtV0e|W)B7fS0+V< z|4Ul<*1mSh$z7?tT=non@dS4+RS(WXH&P5ej3k(AW0@4>8^Y9UB{J4~FPy3H@~l+q V%*l2}b=x98wadr7kc;F#3;^7Wg_i&T literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_missing/pai-Cert.pem b/credentials/development/commissioner_dut/struct_dac_ext_basic_missing/pai-Cert.pem new file mode 100644 index 00000000000000..79052c615b6647 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_basic_missing/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBvjCCAWSgAwIBAgIIB71uNqm8JxswCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowMDEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTBZMBMGByqGSM49AgEGCCqGSM49AwEH +A0IABCZnC3Y6F6Cd675zP5ifmv1RnfAVxsNxktni1ckSmUB0nKV5SV6mkuw/74BE +pz8s/RpsTcViTfzdztPnVHZMeB+jZjBkMBIGA1UdEwEB/wQIMAYBAf8CAQEwDgYD +VR0PAQH/BAQDAgEGMB0GA1UdDgQWBBRElASk0rCOaHo3Zrzd6dwxB7UG5TAfBgNV +HSMEGDAWgBRq/SJ3H1Ef7L8WQZdnENzcMaFxfjAKBggqhkjOPQQDAgNIADBFAiEA +/6SEDq3rRGxtqS2nJcPhF2BHCiVICcLYZDFIMhgDfV0CIB+AVid9GGivS6GZIOnN +GmWZkz4yfrZZ8ocfXugeWQvD +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_missing/pai-Key.der b/credentials/development/commissioner_dut/struct_dac_ext_basic_missing/pai-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..5bd09a77b395d72d51d19dcc7ad3ae7b7229a69b GIT binary patch literal 121 zcmV-<0EYiCcLD(c1R!2EP7dWNv7O(($}SCZGAsxO04lHwLq)aN<-Egv59go?1_&yK zNX|V20SBQ(13~}%Mb8n4g;cQJwG=#=~)v+2Ym75}81BoTYh5UZ#@l bKktA;d-VLbF%eAe3b6~`|DmF!!$TF=kZ^Xu8Osr!V|jE?WI UaNH0(zgytqgm-%xyG&0300;U>p#T5? literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen0/dac-Cert.der b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen0/dac-Cert.der new file mode 100644 index 0000000000000000000000000000000000000000..eec9f7e9db8379a2ae5357392470da20fde53d95 GIT binary patch literal 467 zcmXqLVmxoq#8|R`nTe5!i9@cnKy2~E*jNKDHV&;ek8`#x%uEIbh7ty1Y|No7%sl+Q zi6teeMG7IQ#U%;>j-G}h210CH+H8z0j7^Jbm>79j+}zv@4HU$Ajf@OTj0_+kN`l`K z2n>ykfymU-)H2Gz4TqU7j?UQ4L=$D=VX*)i9%&%V#twEV6C>2g%#7^JP7EyUeqB6y zN)B^1XJ?mezxTDGIQ@Iv!u<^fC+`>pq>KFuni|08slQ#_t~(`I{I}ZcDSNCL7n?Ia zPxxZkbj(9h`_1A6gE#{optog(85#exFc~ly@PT;zARaJS*c%LFL3}r4CF!5$}GUZYY+)b{#1I_G2c7c)M@u-61DV;A z!N844kzr9nKKGUo1!lpguAg>U-^hO}*|hoLLaRdO8^3>)ae6!iD!F4VWN9~Tjpy4b c_8fD*YacLJJkHs&Ff$n#7)lt3u`!3TF!S*H zCYF?>7Ab_J7MCalI64}N7znX(X|pl1Fg7i!VPfQAadUGsG*A%dH8L_VF*1OFC<%T` zATTsC1|m~SQ_CnkW_scJobofuf;{!Qq$p0QgsAhx~h{*oE% zMCx3lpVl9Jzp?ON%$wb-p1*0Fv;M|+ajt)hHGFfVzltvSJl$SHG&`mLv|f3<;V0w8 zX$C1kZ!m|-3NtePXW=kl15!+kj0SulF@BI3Fc=uw3}iukJ{B<+k+9@Xr3al@Z=5b= zYP5IIIUjJegu_4{B(2N>46Fu`tiMX-@`3Vi_KP`APZzjz$8cd`9de*DdomcfF)1<} zJ>@=S`u6ivGTP@lTFdM&575mmu-Vsnt4!;&(219M%0MMwme^OP%XBPLGjjc9F!{y93pZeduyic{KnBLMhHi2DEl literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen0/pai-Cert.pem b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen0/pai-Cert.pem new file mode 100644 index 00000000000000..fc5b7392117d38 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen0/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBvzCCAWSgAwIBAgIIV5Mnr0rRnWswCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowMDEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTBZMBMGByqGSM49AgEGCCqGSM49AwEH +A0IABB7+kI07mLslUF2Hit+kmK4UfkVb5X/F77Fx/lzsu6rn7IGcr9j3Fwr+oyhN +bBv1FaDzlz8oFWtkj8sud18x8jOjZjBkMBIGA1UdEwEB/wQIMAYBAf8CAQEwDgYD +VR0PAQH/BAQDAgEGMB0GA1UdDgQWBBRWY/J1wUIF2Mt1AoE/QCzPUMV0CDAfBgNV +HSMEGDAWgBRq/SJ3H1Ef7L8WQZdnENzcMaFxfjAKBggqhkjOPQQDAgNJADBGAiEA +xcpHlJe3z5Roh51BOxy/d1AtbXA8vonadirzEsjpbiMCIQD0pD97ZxyIpiYyRfow +k9TeJ1fQHa7Fwpc4MXeqCRszsQ== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen0/pai-Key.der b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen0/pai-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..9baffb174c981e1db0bfba2854956ce34fb434fe GIT binary patch literal 121 zcmV-<0EYiCcLD(c1R$BRM;*$TptcPFZI7W<4kqt&iKLn|LberUY*XRe-qoNA1_&yK zNX|V20SBQ(13~}<9{!MxJD9sAP+fOY#a3zp!1hMC>3jDkIOE1UorAC@i;a_ literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen0/pai-Key.pem b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen0/pai-Key.pem new file mode 100644 index 00000000000000..97d49675220882 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen0/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIJmyRx3KmKC2DQBtj6FVDibvc4mkmjRCthVlbFPh297VoAoGCCqGSM49 +AwEHoUQDQgAEHv6QjTuYuyVQXYeK36SYrhR+RVvlf8XvsXH+XOy7qufsgZyv2PcX +Cv6jKE1sG/UVoPOXPygVa2SPyy53XzHyMw== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen0/test_case_vector.json b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen0/test_case_vector.json new file mode 100644 index 00000000000000..3f50c4352dc51f --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen0/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "DAC Test Vector: Certificate Basic Constraint extension PathLen field set to 0", + "is_success_case": "false", + "dac_cert": "308201cf30820174a00302010202081e857016a3915d5d300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004074e8a0c6e22409d299b6b74b7def5787367f75ea1bf8030c9dc30506716fa5295500e492fb7273e8b645317fb26eb94bc3b01a33701e760f43182c648212beca360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e0416041431326841ebbab31837c9731f9b9b8f9b96e32b98301f0603551d230418301680145663f275c14205d8cb7502813f402ccf50c57408300a06082a8648ce3d0403020349003046022100a2606f0bb454200311e545f2ba3bd86fed1982b3e1a13a7143d8fbf8760948e1022100dc3b12393e96ac49ed943f089cf72bc030ac4a2866f1e130d726a59da58405d9", + "pai_cert": "308201bf30820164a0030201020208579327af4ad19d6b300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313059301306072a8648ce3d020106082a8648ce3d030107034200041efe908d3b98bb25505d878adfa498ae147e455be57fc5efb171fe5cecbbaae7ec819cafd8f7170afea3284d6c1bf515a0f3973f28156b648fcb2e775f31f233a366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e041604145663f275c14205d8cb7502813f402ccf50c57408301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d0403020349003046022100c5ca479497b7cf9468879d413b1cbf77502d6d703cbe89da762af312c8e96e23022100f4a43f7b671c88a6263245fa3093d4de2757d01daec5c297383177aa091b33b1", + "certification_declaration": "3081ea06092a864886f70d010702a081dc3081d9020103310d300b0609608648016503040201304506092a864886f70d010701a0380436152400012501f1ff360205008018250334122c04135a494732303134315a423333303030312d32342405002406002507769824080018317e307c020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d04030204483046022100adf3c31a4e27816c20544450934b8fc148be00c6b05c01c2f3179aad87a8c7d2022100beaeab2e4e4949f5cdcd65be126632c7bc3841b05d9f8b10d190eebd018a35ca", + "dac_private_key": "e01bf335ceff445d3a1c16e87d8185e62e58cb94715ac67364fc705fa69bffa7", + "dac_public_key": "04074e8a0c6e22409d299b6b74b7def5787367f75ea1bf8030c9dc30506716fa5295500e492fb7273e8b645317fb26eb94bc3b01a33701e760f43182c648212bec" +} diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen1/cd.der b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen1/cd.der new file mode 100644 index 0000000000000000000000000000000000000000..4e1216e9fdb893a5b4ab7e2dfffb4fc2db7ace73 GIT binary patch literal 236 zcmXqLe96YC)#lOmotKfFX+h&{gT@<7jLe3-2Hb3%32h#Xsmv@)j0Ua+&6 Tg>w}QkBNOPQ`au|b#isZ&d;>_Au?`xS(gf`^Z7XW7&7amKlgLXIyypz3PtF)iAb2Tejq;?~VE7!7=Hf zPgyUQ+Of^@lPt;>Cm6&T@BqCnE6m9FpM}YQ!GI6M;|KA8!NT5PAPeI2v52vVY+JvY z#menn-FBndGD&Sy^V_dZJ7XXZl2&E`23~{6UCSmL^=BWgyIPN|3bwfV+e7D-EOH<- zyE7QLFe%udd@PgBxwGI>dg34X>6)rOmIZqybPuO0iTyaJC6#@RNg<#K9rPYupy5Fckx6(B}7g+)C9} b2BNgIZD+k)@<<4h;Y@ao3MR(0ACfqBCAu=) literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen1/dac-Key.pem b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen1/dac-Key.pem new file mode 100644 index 00000000000000..96d6c9258083ec --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen1/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIHJbSL/6EzbHP6Vv59AZFoyfKxUwVi7s+Rc0UFcsWe8NoAoGCCqGSM49 +AwEHoUQDQgAEx3Or4GulpZH2ehDovAK9CNAuO7vEwSHGa9wWpjAVA2jQ5vd63ErV +VgaitLRtZ71c8kgIkuFMdo0KJsazH5I4dg== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen1/pai-Cert.der b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen1/pai-Cert.der new file mode 100644 index 0000000000000000000000000000000000000000..4163a7a6d953e8007a6bebbc2e2feb7b5e62cc7f GIT binary patch literal 450 zcmXqLV%%rY#F(;xnTe5!i6iTPd%3wlQjY-_8;4e#$2nUTW+npzLkR;hHs(+kW*&au z#FCQKB88CD;u3`bM@K^u10gmpZ8k<0#->FzOpH7%Zfj#0Yg9Gb1~*69Y@DoArf4ccz>j24Zi&*mK|2 zO8jlKrZ>~{Rm1NKC6}}Iervj6*FVco-fVH_^wRSV|JS#_wiMeiY2LxMFVp69OgXwZ z%^(Hn4dzf;VMfOPEF1=GK#GZx(SQ#m#t#w$1_L9Tfh>s6$0Eiea@VrSM*Z1G>#o)# ztAZ`A{`Sy$C2JrLl2&E`23CVe)?cM^`9S$M`^6lmrwiPFXv4bWKz(29Wi@)YUqQWGw)aM#D?$P Vw4(Ba1$W|UebrsuGv}+!1OR!mh)4hc literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen1/pai-Cert.pem b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen1/pai-Cert.pem new file mode 100644 index 00000000000000..939b18938fba74 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen1/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBvjCCAWSgAwIBAgIIasBHdzcQYowwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowMDEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTBZMBMGByqGSM49AgEGCCqGSM49AwEH +A0IABIVGO9BxRwJsuDAW7fQ/C90qYfsyrI1pNeqA+9B002q99oLYPo+aTh82o4mX +dc9A/6+H6zkWsJKewYb0lpyIlMWjZjBkMBIGA1UdEwEB/wQIMAYBAf8CAQEwDgYD +VR0PAQH/BAQDAgEGMB0GA1UdDgQWBBTdOYI8J+bxO4qFxKpTONX7SCzqHTAfBgNV +HSMEGDAWgBRq/SJ3H1Ef7L8WQZdnENzcMaFxfjAKBggqhkjOPQQDAgNIADBFAiEA +ze9WdCVUO2Berd0XA1epFncdS3QbblrhtFwDI+mekxECICrrWJuXZVXgjMzvqAxd +V72yqHnIOAthyy8luguZnySZ +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen1/pai-Key.der b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen1/pai-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..645a79675660e79952c1f7d4317f2172bc464aed GIT binary patch literal 121 zcmV-<0EYiCcLD(c1R!tr_;?|U>BY9;lri{hVx`dbzzmVW&ubkl0R_JY_xkD5*& bHlvA`b&SO*A3`tPJrY*(R6`vAo$g6c literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen2/dac-Cert.der b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen2/dac-Cert.der new file mode 100644 index 0000000000000000000000000000000000000000..94e0d9b034d83613b55d26e70fc03ab68c78b02c GIT binary patch literal 465 zcmXqLVmxcm#8|R`nTe5!iNoJ_#iuXRD(@R`v2kd%d7QIlVP-NgFqAM5V`C0wVdmlY zO)M!%Em8Q}nHZr?W@cn(c4A<8 zZ1zzRo4VDRj8!)MHM?(k+dv*9t;_-pyati<#-gcilN(M5EEo2VJ-Fg(Vb&%aUE bka)S~vE~b|!!_Y%%VZBPKlQj+`cxDETgi;{ literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen2/dac-Cert.pem b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen2/dac-Cert.pem new file mode 100644 index 00000000000000..2c1a0d787217a8 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen2/dac-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBzTCCAXSgAwIBAgIIT02o8vSWed8wCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +REFDMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAATsRQA/7Ff6+o4F4lZotstSZPf35jfi +ZCUb8mmIgM5wv2ngNUjM7mriQsWqxVSKzEBbPzI4VmqOCZq9b54jXNqmo2AwXjAM +BgNVHRMBAf8EAjAAMA4GA1UdDwEB/wQEAwIHgDAdBgNVHQ4EFgQUAiPZQgY/Wliy +iycCMySy/TbfMdswHwYDVR0jBBgwFoAUZ4FylUaTgMgQpxNPXcGo1XFqsjwwCgYI +KoZIzj0EAwIDRwAwRAIgU2muwp5prELkbKZ6RDTDMgqRgleAMG9MjuOxUNquuioC +IHRF8lecKDEratxQGOms4ynoCsN8VzamHcOnyuNzG8pa +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen2/dac-Key.der b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen2/dac-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..e2ed387e30a79afd6c047ec3be315dae0b996aaa GIT binary patch literal 121 zcmV-<0EYiCcLD(c1Ryv?>^#L8IF`s#JixKQa=F55x$1P=-6zvQv$CoZ#y6k}1_&yK zNX|V20SBQ(13~}<>_q@S>{t5wjs@aYXtv8zWcT;xH{xU^8}ez0fX;BgY2Y5R%(t3n!RtHBV5|1qTVGYjv2kd%d7QIlVP-NgFqAM5V`C0wVdmlY zO)M!%Em8?e-rSqD-|e)~;ZK*V zGjDF!Q#~1RhQdpWbL7EVZJ!c zAO+|R=1^H-M#ldv90qJaiiwfYfDa_b4-x|g10$P(EQrs?BE}+;-dHr%ZF0j2f#t&f zu?JUNEzH_vV;~QbR%QVPR)a{^U!`*SK>0WO#T=)n3*5P5xUjGeIZ&BB84TQ*6d5)P zdu>b4&dPnv@z3+%qC@W>u3v_f^~-vg^&(<&=b2|g%fltbSdIy%`Id{j%a@lw$t b0pX2XHw756dId#Fcxj4$ZG|#BNG~`y@DVPc literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen2/pai-Key.pem b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen2/pai-Key.pem new file mode 100644 index 00000000000000..2f927fea7c324a --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen2/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEINUvCfFwivDIHiu0QnXn3wOrXtMqK1EJPisBwmXrC7tQoAoGCCqGSM49 +AwEHoUQDQgAERG5CjinZvWq/Rssyw/LTe2nZtykKicYklEPfGjo62Rl8VEuy8VLR +IQHhjVs3BRixegVFSnhpin5thTI7SC84Nw== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen2/test_case_vector.json b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen2/test_case_vector.json new file mode 100644 index 00000000000000..c6662ac7dc73b9 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen2/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "DAC Test Vector: Certificate Basic Constraint extension PathLen field set to 2", + "is_success_case": "false", + "dac_cert": "308201cd30820174a00302010202084f4da8f2f49679df300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004ec45003fec57fafa8e05e25668b6cb5264f7f7e637e264251bf2698880ce70bf69e03548ccee6ae242c5aac5548acc405b3f3238566a8e099abd6f9e235cdaa6a360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e041604140223d942063f5a58b28b27023324b2fd36df31db301f0603551d2304183016801467817295469380c810a7134f5dc1a8d5716ab23c300a06082a8648ce3d040302034700304402205369aec29e69ac42e46ca67a4434c3320a91825780306f4c8ee3b150daaeba2a02207445f2579c28312b6adc5018e9ace329e80ac37c5736a61dc3a7cae3731bca5a", + "pai_cert": "308201bf30820164a003020102020842c19370b69f6494300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313059301306072a8648ce3d020106082a8648ce3d03010703420004446e428e29d9bd6abf46cb32c3f2d37b69d9b7290a89c6249443df1a3a3ad9197c544bb2f152d12101e18d5b370518b17a05454a78698a7e6d85323b482f3837a366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e0416041467817295469380c810a7134f5dc1a8d5716ab23c301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d0403020349003046022100b3134ab6676b6a6de308fe49c1a2c23184ef1219c55d7f7288ba8d698e5eb8d6022100b4caa581571508ec59eae4644f99ab5789bf71c0caa6e754c97e7495dd4752b7", + "certification_declaration": "3081e906092a864886f70d010702a081db3081d8020103310d300b0609608648016503040201304506092a864886f70d010701a0380436152400012501f1ff360205008018250334122c04135a494732303134315a423333303030312d32342405002406002507769824080018317d307b020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d04030204473045022100ac6765617a5c02188bc6bf6b44117e95757c39abd16d7a792cd56751d6bc72970220109f0698347f89a673a2a321f4f9aaba113ceb59ee46f055d2ddc45674e52827", + "dac_private_key": "3845ec3cc5193896c8523cc0b1c072b9c26bb9ea74dbdd27d341b3b2aa12c637", + "dac_public_key": "04ec45003fec57fafa8e05e25668b6cb5264f7f7e637e264251bf2698880ce70bf69e03548ccee6ae242c5aac5548acc405b3f3238566a8e099abd6f9e235cdaa6" +} diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen_presence_wrong/cd.der b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen_presence_wrong/cd.der new file mode 100644 index 0000000000000000000000000000000000000000..2151772c8dbe238283089bdd1a5154ec7ca40a6b GIT binary patch literal 236 zcmXqLe96YC)#lOmotKfFX+h&{gT@<7jLe3-2Hb3%32h#Xsmv@)j0Ua!Q_v6Y+ik_q#~& literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen_presence_wrong/dac-Cert.der b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen_presence_wrong/dac-Cert.der new file mode 100644 index 0000000000000000000000000000000000000000..ccdd6e80c59b62ccfe547fed3c24907e6e811b21 GIT binary patch literal 468 zcmXqLV!U9`#8|$7nTe5!i9_B;t?G)84Zi^w8;4e#$2nUTW+npzLkR;hHs(+kW*&au z#FCQKB88CD;u3`bM^8f$10gmpZ8k<0#->FzOpH7%Zf{ z4(pwm^gK>H?A*2GY+QQI2l+o`^(4mgIBu%f+A6TVbkFiz=a0|5_uE0lLwf)HzfT0N zE>f9c6E&r^-PL7rvO%H&KhWE?Tey}>{h#OGrXV-eY- zaH`U6+dtW{^QRwj zI5WF57`QMg7=>Ns+!&sA_(yc2NaXf)b8=dqOHN(;rYp(F>={E$MF^8ZK3DJ}zN8ry evZ=Fg-8=GalK+RBPG=27eu>@w5>f9V{}%w~rHmN> literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen_presence_wrong/dac-Cert.pem b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen_presence_wrong/dac-Cert.pem new file mode 100644 index 00000000000000..00145c1c7c91d3 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen_presence_wrong/dac-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIB0DCCAXegAwIBAgIIH0wmetRMPA8wCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +REFDMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQ19mhK+sMuyJLnXhdWztanBgouQ8EP +8mqMYV8MQbJ/KrUQr3W8p9rPx53e+0AUSBu/3/3kENWiJJg8WpSFh0VEo2MwYTAP +BgNVHRMBAf8EBTADAgEAMA4GA1UdDwEB/wQEAwIHgDAdBgNVHQ4EFgQUvCDKcND4 +4uFZZpG5Oba7iOrGV1wwHwYDVR0jBBgwFoAUFpIgbP+hhXkolUUJAYtPY0GJ+U4w +CgYIKoZIzj0EAwIDRwAwRAIgMlbVCbFXZsP4W2EUWbeunGyE5xmVreyKYjI25gBc +eFQCIG8KU6IOYph4HWWb2t7E9pJP8NlCzTAU+hbb9Fh/SB/9 +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen_presence_wrong/dac-Key.der b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen_presence_wrong/dac-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..28c9fd3dce4c045cda860f612308c1cbadb198f4 GIT binary patch literal 121 zcmV-<0EYiCcLD(c1R$0lmORIC%j(3UVgyCq*q*mMPtKmZqK%iQud@FT@Ufr@1_&yK zNX|V20SBQ(13~}j*f;R210CH+H8z0j7^Jbm>79j+}zv@4HU$Ajf@OTj0_+kN`l`K z2n>ykfymU-)G`W>nVvYzj5H8tV+Xs5i4p2JW=3{qCkB>Kcbf^33n$m+xE$1+KT)qd z(5P*p<4JHrQb1FnZkx8Zap~eT zgA|}Qm_ucS85#exa2T)wDJDin13r)#KS&H142*0BvLHSmix`WD*d&FV{|j3yHKw|9 zGIskXJ9hr`Gmr;KE3*Itt3f2|uTr^up!}QtVvf_(1@7E2Tv%9#9H`753%EebVY9uM}cZ)%QrLsvhz%e3~$zX1sy)-yd*NF-}un!+1G8; T`7@{W3UVJxb-By2b#W#DU4nnj literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen_presence_wrong/pai-Cert.pem b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen_presence_wrong/pai-Cert.pem new file mode 100644 index 00000000000000..41db9014fdbc69 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen_presence_wrong/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBvjCCAWSgAwIBAgIIB2Rlxt9fJ1swCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowMDEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTBZMBMGByqGSM49AgEGCCqGSM49AwEH +A0IABFVHPJBZoZN9bETBKZ+RLndRMoahQfkLDpJBXo3LaNn2Dq8RWMMPWJfppkJU +L5bR7akJp0YFWtJQglEthitLM3WjZjBkMBIGA1UdEwEB/wQIMAYBAf8CAQEwDgYD +VR0PAQH/BAQDAgEGMB0GA1UdDgQWBBQWkiBs/6GFeSiVRQkBi09jQYn5TjAfBgNV +HSMEGDAWgBRq/SJ3H1Ef7L8WQZdnENzcMaFxfjAKBggqhkjOPQQDAgNIADBFAiAF +yEg4IkkuYibce6mHMQ3MTomC1C68CHAlaYT2Nk92zwIhAOyuSlLDxkOkWVyPM8LL +m9c9Zw9plo0RC8JlRN0ItaNp +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen_presence_wrong/pai-Key.der b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen_presence_wrong/pai-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..00414b0eab0c97d65496e763b507ff1b676f41fa GIT binary patch literal 121 zcmV-<0EYiCcLD(c1R&0K_2gUag;Oh$A~N>QdgP-;L>`RAWT&78APq_`)c>Fg1_&yK zNX|V20SBQ(13~}~l0jaL%V^p54zCed!w*=O b>83(dFP72msR^e>1zOTjf>AAoD@!wVaBDE= literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen_presence_wrong/pai-Key.pem b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen_presence_wrong/pai-Key.pem new file mode 100644 index 00000000000000..857632dade5e9e --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen_presence_wrong/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIM529eRb7YVTK5EiMvbOeuSjRUQejMVkp6AGIA1KLtT/oAoGCCqGSM49 +AwEHoUQDQgAEVUc8kFmhk31sRMEpn5Eud1EyhqFB+QsOkkFejcto2fYOrxFYww9Y +l+mmQlQvltHtqQmnRgVa0lCCUS2GK0szdQ== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen_presence_wrong/test_case_vector.json b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen_presence_wrong/test_case_vector.json new file mode 100644 index 00000000000000..227f98ccba1451 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen_presence_wrong/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "DAC Test Vector: Certificate Basic Constraint extension PathLen field presence is wrong (present for DAC not present for PAI)", + "is_success_case": "false", + "dac_cert": "308201d030820177a00302010202081f4c267ad44c3c0f300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d0301070342000435f6684afac32ec892e75e1756ced6a7060a2e43c10ff26a8c615f0c41b27f2ab510af75bca7dacfc79ddefb4014481bbfdffde410d5a224983c5a9485874544a3633061300f0603551d130101ff04053003020100300e0603551d0f0101ff040403020780301d0603551d0e04160414bc20ca70d0f8e2e1596691b939b6bb88eac6575c301f0603551d230418301680141692206cffa1857928954509018b4f634189f94e300a06082a8648ce3d040302034700304402203256d509b15766c3f85b611459b7ae9c6c84e71995adec8a623236e6005c785402206f0a53a20e6298781d659bdadec4f6924ff0d942cd3014fa16dbf4587f481ffd", + "pai_cert": "308201be30820164a0030201020208076465c6df5f275b300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313059301306072a8648ce3d020106082a8648ce3d0301070342000455473c9059a1937d6c44c1299f912e77513286a141f90b0e92415e8dcb68d9f60eaf1158c30f5897e9a642542f96d1eda909a746055ad25082512d862b4b3375a366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e041604141692206cffa1857928954509018b4f634189f94e301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d0403020348003045022005c8483822492e6226dc7ba987310dcc4e8982d42ebc0870256984f6364f76cf022100ecae4a52c3c643a4595c8f33c2cb9bd73d670f69968d110bc26544dd08b5a369", + "certification_declaration": "3081e906092a864886f70d010702a081db3081d8020103310d300b0609608648016503040201304506092a864886f70d010701a0380436152400012501f1ff360205008018250334122c04135a494732303134315a423333303030312d32342405002406002507769824080018317d307b020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d04030204473045022100992be60da945dca9ef5b485bdfdc23e86e5d2ec9b72f606a78a1b6a81d01d09602205636e879c3eaa6d3617d369a2ac2743535f94626bbbe4c66072ad13aff34178f", + "dac_private_key": "961f963cc771cbeac4a2620445ddd89eb73c4fce9ebba28d97a7afb2ff10f0b1", + "dac_public_key": "0435f6684afac32ec892e75e1756ced6a7060a2e43c10ff26a8c615f0c41b27f2ab510af75bca7dacfc79ddefb4014481bbfdffde410d5a224983c5a9485874544" +} diff --git a/credentials/development/commissioner_dut/struct_dac_ext_extended_key_usage_present/cd.der b/credentials/development/commissioner_dut/struct_dac_ext_extended_key_usage_present/cd.der new file mode 100644 index 0000000000000000000000000000000000000000..26ec086a15c6ba1b7d23cb2fb0feec21057453d1 GIT binary patch literal 237 zcmXqLe8tA8)#lOmotKfFX+h&1gT|XojLe3-2Hb3%32h#Xsmv@)j0UaNWbUVKGvsq2oG$l5% TOM#2}ejnJkHs&Ff$n#7)lt3u`!3TF!S*H zCYF?>7Ab_J7MCalIC>h27znX(X|pl1Fg7i!VPfQAadUGsG*A%dH8L_VF*1OFC<%T` zATTsC1|m~SQ_Cm=HymcVI67lD6HSzfhs6S9c%*?a8#~ygOpH(`Gc&R?J29{v=(~D+ z+qdBSWfyO^Jf35+M$O^%rN9+jSs&{bo_}2VmT?}>d0qZZQkRdIU3qi$_zn(hhhP=o zkXx$vK7SN+-mvBD;>Ko!#s&i(pvPr}85#exFc~ly@PT;zARaJa*c%LFL3}(it4dg-6$}GU(YY>^7FMQ=_dHur8Zx3wbD%;AEaZHHE zKmnvc6=a^6fe0H1Fd$i3*_oN(EJoyrV0LFPaA8t#dgxhjOe#U;^ZBIYJ#U2Hb1t7W zw}0j1`=`t91QhK1=*XlH>#+II%H0)T?;kJnn6OGLb5CmXscF@%XSw@$yi0>Rt^xqu C!I=L5 literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_ext_extended_key_usage_present/dac-Cert.pem b/credentials/development/commissioner_dut/struct_dac_ext_extended_key_usage_present/dac-Cert.pem new file mode 100644 index 00000000000000..7c9fbd3669a477 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_extended_key_usage_present/dac-Cert.pem @@ -0,0 +1,13 @@ +-----BEGIN CERTIFICATE----- +MIIB8TCCAZigAwIBAgIIY4D6+Tc+qmwwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +REFDMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAATAjtXHtvZTb6bR24TjnDSsJkDr0lGo +CmrxfqHP43ntAZ4Mzy0PshrTxDbU7NXHuAg7QFMkTVTaJd7z8RFDsLTNo4GDMIGA +MAwGA1UdEwEB/wQCMAAwDgYDVR0PAQH/BAQDAgeAMB0GA1UdDgQWBBQnw5Z+K4VU +dv2r3jfOlUW8X8mYNzAfBgNVHSMEGDAWgBSTbxPUxXd/obPtwLEKdrUEaMYSDDAg +BgNVHSUBAf8EFjAUBggrBgEFBQcDAgYIKwYBBQUHAwEwCgYIKoZIzj0EAwIDRwAw +RAIgQuFJcMYaYCTzz2JjvOwT7wmnkp2PqePfy3bcUHC+8UECIF1As8Kpu3j138dy +SJCqFmm8ZYPKlnuFzQuODEt1UojV +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_extended_key_usage_present/dac-Key.der b/credentials/development/commissioner_dut/struct_dac_ext_extended_key_usage_present/dac-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..4a7e0676cdd8bb1a2f001ee761b09dc36ae659dc GIT binary patch literal 121 zcmV-<0EYiCcLD(c1R!w0sd|&w)RtRrqSDkkb`wRmvHV&;ek8`#x%uEIbh7ty1Y|No7%sl+Q zi6teeMG7IQ#U%;>j*f;R210CH+H8z0j7^Jbm>79j+}zv@4HU$Ajf@OTj0_+kN`l`K z2n>ykfymU-)G`W>nVvYzj5H8tV+Xs5i4p2JW=3{qCkB?BYuQ^8qXVrZFRgee?00SV zode?BE-6b|Uk0_87(K}jdVZRbH)-4Mt6R?7AIe}z?2ytt)i|woUYm2y=G=Aps|yyV z8KeNc!5k_p%*gnkg~NaiNHH-o8t{R{_(5X8U|?i3kOlGiSj1RFCg%%ZIa*%7aP!*( z8@bB1vSb_+;xUj1Nh`Ae1FJzK>#tI|e4zZB{bG*O(*^F_F2>!O7zbVyKDw{C U?ZV;y=*9EyyPaP??~_e405c+rPyhe` literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_ext_extended_key_usage_present/pai-Cert.pem b/credentials/development/commissioner_dut/struct_dac_ext_extended_key_usage_present/pai-Cert.pem new file mode 100644 index 00000000000000..d5fa1613b084f1 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_extended_key_usage_present/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBvTCCAWSgAwIBAgIIfSojSm7W72gwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowMDEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTBZMBMGByqGSM49AgEGCCqGSM49AwEH +A0IABGzWa7RhW1E6GdKo4RNO1rvcwBcLRGSkhelSh3Qy5GtS58sBDWK2u9W0zz/C +aABhiBopyoGWfZ6GQ2yzba5vq3CjZjBkMBIGA1UdEwEB/wQIMAYBAf8CAQEwDgYD +VR0PAQH/BAQDAgEGMB0GA1UdDgQWBBSTbxPUxXd/obPtwLEKdrUEaMYSDDAfBgNV +HSMEGDAWgBRq/SJ3H1Ef7L8WQZdnENzcMaFxfjAKBggqhkjOPQQDAgNHADBEAiBx +/S/zpLWYCIfnXBJ7euUqHNy0soJkUNBMFwTzcjADFAIgWjrxj0Pvy67eoDNR0RPF +vnOG0MOPW6Oe30bPp57yPIM= +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_extended_key_usage_present/pai-Key.der b/credentials/development/commissioner_dut/struct_dac_ext_extended_key_usage_present/pai-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..25239e90ef3535f59ec8a9a3b1d42c7a55a8dde0 GIT binary patch literal 121 zcmV-<0EYiCcLD(c1R(ofHrCLX!dK{IOaj&6cMuONiK+1Hd6PeK`P_a=Qre&j1_&yK zNX|V20SBQ(13~}NVz#^0 bw9h}nXaHe|8Y#+wmVKUvLu|8cu5YVwPh~a! literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_ext_extended_key_usage_present/pai-Key.pem b/credentials/development/commissioner_dut/struct_dac_ext_extended_key_usage_present/pai-Key.pem new file mode 100644 index 00000000000000..b8d13298169471 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_extended_key_usage_present/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIPteNtbQmMJX6GRMAtXhdxAPK4mp8Ox5kz9y+dx+SlLaoAoGCCqGSM49 +AwEHoUQDQgAEbNZrtGFbUToZ0qjhE07Wu9zAFwtEZKSF6VKHdDLka1LnywENYra7 +1bTPP8JoAGGIGinKgZZ9noZDbLNtrm+rcA== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_extended_key_usage_present/test_case_vector.json b/credentials/development/commissioner_dut/struct_dac_ext_extended_key_usage_present/test_case_vector.json new file mode 100644 index 00000000000000..0ee5f9f7cfde21 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_extended_key_usage_present/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "DAC Test Vector: Certificate includes optional Extended Key Usage extension", + "is_success_case": "true", + "dac_cert": "308201f130820198a00302010202086380faf9373eaa6c300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004c08ed5c7b6f6536fa6d1db84e39c34ac2640ebd251a80a6af17ea1cfe379ed019e0ccf2d0fb21ad3c436d4ecd5c7b8083b4053244d54da25def3f11143b0b4cda38183308180300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e0416041427c3967e2b855476fdabde37ce9545bc5fc99837301f0603551d23041830168014936f13d4c5777fa1b3edc0b10a76b50468c6120c30200603551d250101ff0416301406082b0601050507030206082b06010505070301300a06082a8648ce3d0403020347003044022042e14970c61a6024f3cf6263bcec13ef09a7929d8fa9e3dfcb76dc5070bef14102205d40b3c2a9bb78f5dfc7724890aa1669bc6583ca967b85cd0b8e0c4b755288d5", + "pai_cert": "308201bd30820164a00302010202087d2a234a6ed6ef68300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313059301306072a8648ce3d020106082a8648ce3d030107034200046cd66bb4615b513a19d2a8e1134ed6bbdcc0170b4464a485e952877432e46b52e7cb010d62b6bbd5b4cf3fc2680061881a29ca81967d9e86436cb36dae6fab70a366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e04160414936f13d4c5777fa1b3edc0b10a76b50468c6120c301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d0403020347003044022071fd2ff3a4b5980887e75c127b7ae52a1cdcb4b2826450d04c1704f37230031402205a3af18f43efcbaedea03351d113c5be7386d0c38f5ba39edf46cfa79ef23c83", + "certification_declaration": "3081ea06092a864886f70d010702a081dc3081d9020103310d300b0609608648016503040201304506092a864886f70d010701a0380436152400012501f1ff360205008018250334122c04135a494732303134315a423333303030312d32342405002406002507769824080018317e307c020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d04030204483046022100e042680e0971ccf3d7b623cdcdf3a22809357816693fdf0ad937bacb2689855b022100828be304ddfb7146c7adf3367c8a96220616d251a28efbc28f9719380e66de6f", + "dac_private_key": "70c0aab5b8a38efd0bcb269f18ef7cdd6e689867a0a14a2e74cdeffc79ffa97c", + "dac_public_key": "04c08ed5c7b6f6536fa6d1db84e39c34ac2640ebd251a80a6af17ea1cfe379ed019e0ccf2d0fb21ad3c436d4ecd5c7b8083b4053244d54da25def3f11143b0b4cd" +} diff --git a/credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_missing/cd.der b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_missing/cd.der new file mode 100644 index 0000000000000000000000000000000000000000..5528b5bb0f6d5b1de1dd71c29a42ca40571a2e3a GIT binary patch literal 235 zcmXqLe8I-4)#lOmotKfFX+h&HgU0JjjLe3-2Hb3%32h#Xsmv@)j0UaV;cat_(>=L literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_missing/dac-Cert.der b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_missing/dac-Cert.der new file mode 100644 index 0000000000000000000000000000000000000000..78fbc0971d3a9e728fceb510d9838ee47ad83c1e GIT binary patch literal 464 zcmXqLVmxEe#8|k1nTe5!i6fTd%e&K2Sz8Ra*f_M>JkHs&Ff$n#7)lt3u`!3TF!S*H zCYF?>7Ab_J7MCalIC>h27znX(X|pl1Fg7i!VPfQAadUGsG*A%dH8L_VF*1OFC<%T` zATTsC1|m~SQ_Cm=HymcVI67lD6HSzfhs6S9c%*?a8#~ygOpH(`Gc&R?J29~QzB(^# zVgBxj(xA^X7=mXjGKC+w<2Yes^vdjx$tpLtJbxUnIVif4hEZajZeK0T0mIvcimv|5=y}7!0^UJbo5nn6Nh($bvY0EMhDo_jey( zx4&m@?Q4I2Yn6dKNLrZ%7;+6FkDa{^@A%aq9C+^GW09L|A2RJOd_)dm zW={qKHzq}fYd0NFe_gDm)y^qgw3B@U4VrUV_4+-Phq=-0(M-)dfNO3k1O1_&yK zNX|V20SBQ(13~}<`_-OSp>MlbbyD+~08^VG0$0G?L6EUqscVRnB-pg)N*zS^6mBgN--eF54hV&TpclOuPaAY{Y literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_missing/dac-Key.pem b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_missing/dac-Key.pem new file mode 100644 index 00000000000000..df3e17b4986257 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_missing/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIM5yrjTYtYLByDvsL71FpgQdkdxobC3o18U632pebkrNoAoGCCqGSM49 +AwEHoUQDQgAE+9WeVqFvu1h1UvOYAFObIQJXwNxBkLFbqWuIkyTYtOflFkkClPQJ +bb9NknfY7pJWlcSeo95hSyOG9Bj0d/bX0g== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_missing/pai-Cert.der b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_missing/pai-Cert.der new file mode 100644 index 0000000000000000000000000000000000000000..e7572880af3e73cd2e2a1a2eb88bbcd94e1b72ff GIT binary patch literal 449 zcmXqLV%%%c#F(;xnTe5!i9@5WW4}R@kCXuy8;4e#$2nUTW+npzLkR;hHs(+kW*&au z#FCQKB88CD;u3`bM@K^u10gmpZ8k<0#->FzOpH7%Zfj#0Yg9Gb1~*69Y?v|L=##XR+?d7hiWpASQX$ zG%ahV4u*Rw#`_uWW%8}GRXkCYyKtvy!_p0U9lw|DcIwU9^5*a1*oj9s{_w3?%DH@T znn4QC8_c1y!iyQJL*`2|_g-Ib@ z^+9y$D@FN_8jKlM7O6S6d9Rwu%>7f&-^=oO9_N|8ObYdn9x~5Vs6APbkbP;z9iE@Z Uw|q2w^UY{Vwn=5RzDws}01KIk`~Uy| literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_missing/pai-Cert.pem b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_missing/pai-Cert.pem new file mode 100644 index 00000000000000..43a415eb460ce6 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_missing/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBvTCCAWSgAwIBAgIIKI6IvzCCTBowCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowMDEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTBZMBMGByqGSM49AgEGCCqGSM49AwEH +A0IABGBP++HHmgW8bxeu1BBcY6qWKjtCiADeJDO/AN5pDqk9IchybaG5FYClsC6I ++6a7Qo1stOz9w12RxbH4TXylCaejZjBkMBIGA1UdEwEB/wQIMAYBAf8CAQEwDgYD +VR0PAQH/BAQDAgEGMB0GA1UdDgQWBBTjQ0rDuPqAE1HO4eMU2QbwaT7Q8TAfBgNV +HSMEGDAWgBRq/SJ3H1Ef7L8WQZdnENzcMaFxfjAKBggqhkjOPQQDAgNHADBEAiBn +JeBbdeohH/EoAWg6OGVs2w3VNhyd/HcPjQTzngnMvQIgf+LhA5kgfclwYGvSqNwM ++ce08THs9jKUazR5ey9EicM= +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_missing/pai-Key.der b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_missing/pai-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..e1ed68bfafa0d377d50a75ae6fd3f3178c9943d0 GIT binary patch literal 121 zcmV-<0EYiCcLD(c1R$)pj7&WrR+PF2YGORC9Dl@HF?eHJxT?Cq=evmCn=qgX1_&yK zNX|V20SBQ(13~}jcl~+{li_6#j*HJe5DDeYcDk6 literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_missing/pai-Key.pem b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_missing/pai-Key.pem new file mode 100644 index 00000000000000..08beb3ae399792 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_missing/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIKy3jEw9H1aUugdqYjytHH/EWzF4Y1u4qrrA57uI35swoAoGCCqGSM49 +AwEHoUQDQgAEYE/74ceaBbxvF67UEFxjqpYqO0KIAN4kM78A3mkOqT0hyHJtobkV +gKWwLoj7prtCjWy07P3DXZHFsfhNfKUJpw== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_missing/test_case_vector.json b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_missing/test_case_vector.json new file mode 100644 index 00000000000000..123052d1ba83b0 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_missing/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "DAC Test Vector: Certificate Key Usage extension critical field is missing", + "is_success_case": "false", + "dac_cert": "308201cc30820171a00302010202085d08f4eecb5a6ab4300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004fbd59e56a16fbb587552f39800539b210257c0dc4190b15ba96b889324d8b4e7e516490294f4096dbf4d9277d8ee925695c49ea3de614b2386f418f477f6d7d2a35d305b300c0603551d130101ff04023000300b0603551d0f040403020780301d0603551d0e04160414dfbbc7a240765ab7fbc01aedfb99b58e87e7daaa301f0603551d23041830168014e3434ac3b8fa801351cee1e314d906f0693ed0f1300a06082a8648ce3d0403020349003046022100d6d941cbf5a3262a87091372b90bbca2bf8a8b464f299d4dc686966a6f31fafc022100d8a57ebfbe76ba0c5334fad0ea27a58d98b1f182ab5196777389d7448cd01b48", + "pai_cert": "308201bd30820164a0030201020208288e88bf30824c1a300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313059301306072a8648ce3d020106082a8648ce3d03010703420004604ffbe1c79a05bc6f17aed4105c63aa962a3b428800de2433bf00de690ea93d21c8726da1b91580a5b02e88fba6bb428d6cb4ecfdc35d91c5b1f84d7ca509a7a366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e04160414e3434ac3b8fa801351cee1e314d906f0693ed0f1301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d040302034700304402206725e05b75ea211ff12801683a38656cdb0dd5361c9dfc770f8d04f39e09ccbd02207fe2e10399207dc970606bd2a8dc0cf9c7b4f131ecf632946b34797b2f4489c3", + "certification_declaration": "3081e806092a864886f70d010702a081da3081d7020103310d300b0609608648016503040201304506092a864886f70d010701a0380436152400012501f1ff360205008018250334122c04135a494732303134315a423333303030312d32342405002406002507769824080018317c307a020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d04030204463044022038c1d56482bc7fe79458357e2916a1d426cbd96b9a5fc6775e404545d6b931fc022003e6796cb5320ef83437b58893469152edc51f11da6fc99c3878fd643b8908b6", + "dac_private_key": "ce72ae34d8b582c1c83bec2fbd45a6041d91dc686c2de8d7c53adf6a5e6e4acd", + "dac_public_key": "04fbd59e56a16fbb587552f39800539b210257c0dc4190b15ba96b889324d8b4e7e516490294f4096dbf4d9277d8ee925695c49ea3de614b2386f418f477f6d7d2" +} diff --git a/credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_wrong/cd.der b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_wrong/cd.der new file mode 100644 index 0000000000000000000000000000000000000000..a851109ca5aede98ceb54ef5c8d4e48cd1d7150f GIT binary patch literal 236 zcmXqLe96YC)#lOmotKfFX+h&{gT@<7jLe3-2Hb3%32h#Xsmv@)j0UaO@@P8y5yzs63zU@qk44>bwES7pJ={#>&)6*>*cmC|t UywQ`N^*MJ?yDGZv2kd%d7QIlVP-NgFqAM5V`C0wVdmlY zO)M!%Em8Q}nHZr?W@cn(c4A;rtB9S> zwk+`S`CU3EdPVpCOk5QceY&m0pq#6-clLdo4bx`X2->dOFXEbhNac=m;`dYUOO~%K zx|DP%gMG&GC8qZm#~MT%@BqCnE6m9FpM}YQ!GIgY<7WYe344QqEQrI$BE}+8w1d%#7^JP7Ey8*P8XO>lIw^-!cF9hJ-br zSee_`798pgnk^%w6E*d}__1|&qGp%P2)r(mr|xQEJ(GD&aXUv*aFy24(miLzn-mwP z8KeNc!5k_p%*gnkg~NaiNHH-o8t{R{_(5X8U|?i3kOlGiSj1RFe#=}vv-D2cb)UXd z0tG++pVzikJ!K#dl2&E`23CVe)?cM^`9S$M`^6lmrwiP-qL0hxk?J=N#L!n@OQcWYsSR$M_99`k72u?#u9$ VnrX1`jZ{hUorQ5f5T9yA7#;)92n|7E{ b*A#9iMKn8^1FUn02y#<;D#dlY%@=|pV+}EV literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_wrong/pai-Key.pem b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_wrong/pai-Key.pem new file mode 100644 index 00000000000000..e34b4e5baf34f0 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_wrong/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIHDmjilk5Dn5BMzuOdm7/wbcMgs0M7QJVRAAzK0rZcOOoAoGCCqGSM49 +AwEHoUQDQgAEO9aDL9cucNBPuJ/7sGCs8gUDh61wwo1SmxwSLFqV/xfGrtxam3aY +UdcUbidFNDuZA6xzhwhyU3oqxXW8zReCIQ== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_wrong/test_case_vector.json b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_wrong/test_case_vector.json new file mode 100644 index 00000000000000..95bf0a84c95ff5 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_wrong/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "DAC Test Vector: Certificate Key Usage extension critical field is set as 'non-critical'", + "is_success_case": "false", + "dac_cert": "308201cb30820171a003020102020856f040baa9a0df24300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d0301070342000426785d9706a651d3cfba2cc88d15bdf961aa5c5bcb867430770a898d9bdf3cb0969a3c113daebf144567c224dc4361f7caef74a7ad72d262c2680798a7a435dfa35d305b300c0603551d130101ff04023000300b0603551d0f040403020780301d0603551d0e041604147ebc60ac01452ad2f080db0f59b7a87ba868bd05301f0603551d23041830168014fb1cd5cca5dc76d74c8eca1070f9ffcf2b3d25ca300a06082a8648ce3d04030203480030450220745a8c366d849f301c0e15466a053ccbf63778ab9d567720b798412694cfc6dd022100fa1931716f4b07ffd1163164726b451f11a87818132235439bbaa650bdc7ccf1", + "pai_cert": "308201bd30820164a0030201020208015cdb55a001bd13300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313059301306072a8648ce3d020106082a8648ce3d030107034200043bd6832fd72e70d04fb89ffbb060acf2050387ad70c28d529b1c122c5a95ff17c6aedc5a9b769851d7146e2745343b9903ac73870872537a2ac575bccd178221a366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e04160414fb1cd5cca5dc76d74c8eca1070f9ffcf2b3d25ca301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d0403020347003044022037e820a1eadf1a56e4aea7f7654194f6aa7c4d2cbae7b7c4c20f259f6cc6bcbb02207a14aafa40415fb0b88f0235a9be68491a9930a1ec1a7463dca15ef860f0034c", + "certification_declaration": "3081e906092a864886f70d010702a081db3081d8020103310d300b0609608648016503040201304506092a864886f70d010701a0380436152400012501f1ff360205008018250334122c04135a494732303134315a423333303030312d32342405002406002507769824080018317d307b020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d04030204473045022021f858a256c52c1b80ee1aa02b2be2c92a8b8623e62b004fe21d53a1ed1fbeb7022100f3eda9731aed19439eba82e5b4b1b9f98e29d88c6f6ae893e39117d1e4ac0a4f", + "dac_private_key": "19221a3c878fa199998e34d5c38c4f83664e945ea36cdc476f2ea7bb4c7a4491", + "dac_public_key": "0426785d9706a651d3cfba2cc88d15bdf961aa5c5bcb867430770a898d9bdf3cb0969a3c113daebf144567c224dc4361f7caef74a7ad72d262c2680798a7a435df" +} diff --git a/credentials/development/commissioner_dut/struct_dac_ext_key_usage_crl_sign_wrong/cd.der b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_crl_sign_wrong/cd.der new file mode 100644 index 0000000000000000000000000000000000000000..d2652374f4c554996f6cb6eed6cc7e1016e2bfdb GIT binary patch literal 236 zcmXqLe96YC)#lOmotKfFX+h&{gT@<7jLe3-2Hb3%32h#Xsmv@)j0Ua`K_(zjqMD$*f_M>JkHs&Ff$n#7)lt3u`!3TF!S*H zCYF?>7Ab_J7MCalIC>h27znX(X|pl1Fg7i!VPfQAadUGsG*A%dH8L_VF*1OFC<%T` zATTsC1|m~SQ_Cm=HymcVI67lD6HSzfhs6S9c%*?a8#~ygOpH(`Gc&R?J29|46yRbr z5uATR+Gt-=OZ%0~MYpoV7OtP6x%GmS=>6g~Lfil4oylD+tp9my_o_4QSvRMMH5Dp8 zn0X^X>|2zEh2)pT2?lWnJV0;D3NtePXJIm6FyI66_(42iurM|m$b$HMEMhDog1+|_ z_{=$U!}ynQn(U;*Tlg(&O$_8g(#kBrz-tg;>r5)YynKN;&zH!>Uh_-4mYZ!ng&fGt z?hFPlObV>E0$G`EJ7)g*^f{uWEx2vjDz(~p%gtMEeG-a@T)toflR|>WRgS%9{q*Cu cC8o!&@-%<9)BkIx#SuN**q+=)3ldiW09M0_y8r+H literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_ext_key_usage_crl_sign_wrong/dac-Cert.pem b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_crl_sign_wrong/dac-Cert.pem new file mode 100644 index 00000000000000..4e7af76892807c --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_crl_sign_wrong/dac-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBzTCCAXSgAwIBAgIIEBLn2rXPMz4wCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +REFDMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAThEAoGNBGf2BsyvmKEh9RpotpqFqGv +mCm10BoV33OsErf+bsxtoxMv87WLqsxHatmUFoJxIeCZ2GAW9looOBn0o2AwXjAM +BgNVHRMBAf8EAjAAMA4GA1UdDwEB/wQEAwIBgjAdBgNVHQ4EFgQUEU3eoEycwtgz ++hNmHZLDtA85fTQwHwYDVR0jBBgwFoAUBolid9OnoBcM9FmjSp91iqc2scowCgYI +KoZIzj0EAwIDRwAwRAIgBX0QamlGuJn88vNYdIZThqaqJn1fObO02vISWFmnoLAC +IGBI1Qi9zU4vXrZhZ12qSTfuuU/1aTjELj1djG2ioGGq +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_key_usage_crl_sign_wrong/dac-Key.der b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_crl_sign_wrong/dac-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..5f7cff5a7c4402e7283c125ebdd5dd3559013fea GIT binary patch literal 121 zcmV-<0EYiCcLD(c1R(I`3(A1VMq}6$si-O1c2C-&BnOohct@e9mv26%-C3Xt1_&yK zNX|V20SBQ(13~}<;SdT2G!dWJ8#2CPgoo5=qS|T}p|6-Jwa^+B-*c=IxBhO-ZKD$} b^Rf(VU>5dTC^#APl8ZCb literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_ext_key_usage_crl_sign_wrong/dac-Key.pem b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_crl_sign_wrong/dac-Key.pem new file mode 100644 index 00000000000000..50916dbeeddfc1 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_crl_sign_wrong/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIPDlC8qAyEZj2BOpqCnadk/aoSQHlRV4R6Gnl28+pt1ZoAoGCCqGSM49 +AwEHoUQDQgAE4RAKBjQRn9gbMr5ihIfUaaLaahahr5gptdAaFd9zrBK3/m7MbaMT +L/O1i6rMR2rZlBaCcSHgmdhgFvZaKDgZ9A== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_key_usage_crl_sign_wrong/pai-Cert.der b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_crl_sign_wrong/pai-Cert.der new file mode 100644 index 0000000000000000000000000000000000000000..6a0e5a13eea7e27a886dfd134ea488f4b034c4c7 GIT binary patch literal 449 zcmXqLV%%%c#F(;xnTe5!i9_>>*6NSGJqrxD*f_M>JkHs&Ff$n#7)lt3u`!3TF!S*H zCYF?>7Ab_J7MCalI64}N7znX(X|pl1Fg7i!VPfQAadUGsG*A%dH8L_VF*1OFC<%T` zATTsC1|m~SQ_CnkW_scJobofueD6>CcN9B|W@za;r5)co+* z0u}8FC&Apf`)4ffzbtWXf9P?riNCF?H?A{s_SJjwUT^Pm&5in!$9MNdju_9>iKiE* z8KeNc!5k_p%*gnkg~NaiNHH-o8t{R{_(5X8U|?i3kOlGiSj1RF*gBKSFE3vp&hsU5 zvDf_4uH|MMPZ`LAq?K8Kfz=?A^;fA}K2ZM6elf@C=>m7|7%nWVLk?7CcLoC&CIy?j z*SaSx^7z5)XYy*_`D_#Gi)-3vM`mZeni@M>@c)+$ObTqP9Mk8XmAbxc&HV)@Tv}Sz UFqB#L9C*K>f9gehl`CP#0rc&Q*8l(j literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_ext_key_usage_crl_sign_wrong/pai-Cert.pem b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_crl_sign_wrong/pai-Cert.pem new file mode 100644 index 00000000000000..69d907d8336e30 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_crl_sign_wrong/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBvTCCAWSgAwIBAgIIKdQqq/FNjKAwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowMDEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTBZMBMGByqGSM49AgEGCCqGSM49AwEH +A0IABCUhfHS8wEYvH9IZ/FU3w/VwJCt4QhFtXt/MON/pdEOH4UjBgg+Geo1eiVmb +1d5fSu3dCp1a9G4O3ehsFgyVkcujZjBkMBIGA1UdEwEB/wQIMAYBAf8CAQEwDgYD +VR0PAQH/BAQDAgEGMB0GA1UdDgQWBBQGiWJ306egFwz0WaNKn3WKpzaxyjAfBgNV +HSMEGDAWgBRq/SJ3H1Ef7L8WQZdnENzcMaFxfjAKBggqhkjOPQQDAgNHADBEAiA8 +3daLkKJI+A1ONOq+z2s0O9Gsh5tZa2rqlV2bEf/0sAIgBqpBZ53NGtemrN+gyESE +hKwAdjmMwO+wj5XRPyTUVsc= +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_key_usage_crl_sign_wrong/pai-Key.der b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_crl_sign_wrong/pai-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..580a86fd5b4cff005b24252bb235f97ff725c009 GIT binary patch literal 121 zcmV-<0EYiCcLD(c1Ry$IYs+Guq#c#wiAt97pv|IgZD#0X!+a~H5O&`W^U$CQ1_&yK zNX|V20SBQ(13~}2yPf;Yh)P4~BY; bUWr+o)!tu9?cEBUTJ&xX-RNu<43&|~^*c3l literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_ext_key_usage_crl_sign_wrong/pai-Key.pem b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_crl_sign_wrong/pai-Key.pem new file mode 100644 index 00000000000000..79f4f41404d6e4 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_crl_sign_wrong/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIDpea8tinqQdleKJSpbxoM2ibm1m6GTDfCulEHbfD/PQoAoGCCqGSM49 +AwEHoUQDQgAEJSF8dLzARi8f0hn8VTfD9XAkK3hCEW1e38w43+l0Q4fhSMGCD4Z6 +jV6JWZvV3l9K7d0KnVr0bg7d6GwWDJWRyw== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_key_usage_crl_sign_wrong/test_case_vector.json b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_crl_sign_wrong/test_case_vector.json new file mode 100644 index 00000000000000..bc099f8f07a60b --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_crl_sign_wrong/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "DAC Test Vector: Certificate Key Usage extension cRLSign field is wrong (present for DAC and not present for PAI", + "is_success_case": "false", + "dac_cert": "308201cd30820174a00302010202081012e7dab5cf333e300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004e1100a0634119fd81b32be628487d469a2da6a16a1af9829b5d01a15df73ac12b7fe6ecc6da3132ff3b58baacc476ad99416827121e099d86016f65a283819f4a360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020182301d0603551d0e04160414114ddea04c9cc2d833fa13661d92c3b40f397d34301f0603551d2304183016801406896277d3a7a0170cf459a34a9f758aa736b1ca300a06082a8648ce3d04030203470030440220057d106a6946b899fcf2f35874865386a6aa267d5f39b3b4daf2125859a7a0b002206048d508bdcd4e2f5eb661675daa4937eeb94ff56938c42e3d5d8c6da2a061aa", + "pai_cert": "308201bd30820164a003020102020829d42aabf14d8ca0300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313059301306072a8648ce3d020106082a8648ce3d0301070342000425217c74bcc0462f1fd219fc5537c3f570242b7842116d5edfcc38dfe9744387e148c1820f867a8d5e89599bd5de5f4aeddd0a9d5af46e0edde86c160c9591cba366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e0416041406896277d3a7a0170cf459a34a9f758aa736b1ca301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d040302034700304402203cddd68b90a248f80d4e34eabecf6b343bd1ac879b596b6aea955d9b11fff4b0022006aa41679dcd1ad7a6acdfa0c8448484ac0076398cc0efb08f95d13f24d456c7", + "certification_declaration": "3081e906092a864886f70d010702a081db3081d8020103310d300b0609608648016503040201304506092a864886f70d010701a0380436152400012501f1ff360205008018250334122c04135a494732303134315a423333303030312d32342405002406002507769824080018317d307b020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d04030204473045022100937523b1acc3cd829e4b13074b49a9a42ddcfe5f9b3829e4605e5b44e3344e85022023d74801d3bfe19a7824950a2d2e657933ba955636888c9dc112f2a8530f1cc9", + "dac_private_key": "f0e50bca80c84663d813a9a829da764fdaa1240795157847a1a7976f3ea6dd59", + "dac_public_key": "04e1100a0634119fd81b32be628487d469a2da6a16a1af9829b5d01a15df73ac12b7fe6ecc6da3132ff3b58baacc476ad99416827121e099d86016f65a283819f4" +} diff --git a/credentials/development/commissioner_dut/struct_dac_ext_key_usage_dig_sig_wrong/cd.der b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_dig_sig_wrong/cd.der new file mode 100644 index 0000000000000000000000000000000000000000..d7f99324e18d2240265b3c3258e3ce0f76ce0c5e GIT binary patch literal 236 zcmXqLe96YC)#lOmotKfFX+h&{gT@<7jLe3-2Hb3%32h#Xsmv@)j0Uab1+SJkHs&Ff$n#7)lt3u`!3TF!S*H zCYF?>7Ab_J7MCalIC>h27znX(X|pl1Fg7i!VPfQAadUGsG*A%dH8L_VF*1OFC<%T` zATTsC1|m~SQ_Cm=HymcVI67lD6HSzfhs6S9c%*?a8#~ygOpH(`Gc&R?J29|0cs7(x zoAxs@aLrn!Rr<36C8uSu`KsJCe)zXj&%^wI#s{0oS64Lo9BO_yv@ZI7-Ymc8`%kgj zpd~h?C)g%0JukmF!643n2k32CVMfOPEKCLr27DkMKZpkm7FGoVSrDI(MT|wn@s6*~ zF8O0Ef(qBz6oR;)RDHN0XCM!fR%QVPUV{ji$ky!>Qa>1GJbeE+FK9vRoy^WuTp&5x}jt}9vJX!Lbad@1_&yK zNX|V20SBQ(13~}ZsxO*R8J1`UO(fkj;r)p&NH^dp@H|=S)F}=? beEWcfqW8}>Z;bc(7JX8rJaxzhlcmoeSXnjv literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_ext_key_usage_dig_sig_wrong/dac-Key.pem b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_dig_sig_wrong/dac-Key.pem new file mode 100644 index 00000000000000..5e0281d6d46c8f --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_dig_sig_wrong/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIPZjRK3jx2EvkG82y0WAxvPv4epwVf66oWQ9HhjwbEK1oAoGCCqGSM49 +AwEHoUQDQgAEQEmAdpaW+VlRrK0iqi+aURmWaAZNJN0z4f2JLkg34CjwPFnq1CkO +QHz7gIWi9882b4z3+RZ9UqQ8dcgGk6XPHw== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_key_usage_dig_sig_wrong/pai-Cert.der b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_dig_sig_wrong/pai-Cert.der new file mode 100644 index 0000000000000000000000000000000000000000..9e1369e35703debb7e27bec991db319e22475d17 GIT binary patch literal 449 zcmXqLV%%%c#F(;xnTe5!iNoUA;rD4TqBk3Gv2kd%d7QIlVP-NgFqAM5V`C0wVdmlY zO)M!%Em8SE>Db&t8q&8*O5@ zIL#mh=ndvjSz$)T|12B^Y(R>MkI0t~DMk*vQ;epDDSY_^exL8{6!kSz0K8Ly<0RsNAWoC literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_ext_key_usage_dig_sig_wrong/pai-Key.pem b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_dig_sig_wrong/pai-Key.pem new file mode 100644 index 00000000000000..1d8b58390affef --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_dig_sig_wrong/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIOEgvo4uae/RUnOWFuPlK6lJLJLKORr6FPVacfvT1jo5oAoGCCqGSM49 +AwEHoUQDQgAEiTLSaEUeWF4D+30zfb/3PK9XI+/q11icWc+EIkrAC/apqrao1Ncz +rcvLvLT6Vd7K9C3LGvxFGr+9zdVevVs0Pg== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_key_usage_dig_sig_wrong/test_case_vector.json b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_dig_sig_wrong/test_case_vector.json new file mode 100644 index 00000000000000..dae7c1dceeb80b --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_dig_sig_wrong/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "DAC Test Vector: Certificate Key Usage extension diginalSignature field is wrong (not present for DAC and present for PAI", + "is_success_case": "false", + "dac_cert": "308201cd30820174a0030201020208513af27cdcf1c358300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004404980769696f95951acad22aa2f9a51199668064d24dd33e1fd892e4837e028f03c59ead4290e407cfb8085a2f7cf366f8cf7f9167d52a43c75c80693a5cf1fa360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020520301d0603551d0e0416041441dc4d2cba1fc6841120d60620520be47af0d01e301f0603551d230418301680140a14b5b79065f03168e1efe36e52a05ddc698965300a06082a8648ce3d04030203470030440220646dd1b6464247825e86a637bf87ae91fc367d34017dfc0ea00f1ea20ec971a502205c192fe0f0bf72b03ce9e1b4b3a6f40296ced3fa67693d4c5a12cecc985cce36", + "pai_cert": "308201bd30820164a003020102020838e6c3ef66e85bb3300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313059301306072a8648ce3d020106082a8648ce3d030107034200048932d268451e585e03fb7d337dbff73caf5723efead7589c59cf84224ac00bf6a9aab6a8d4d733adcbcbbcb4fa55decaf42dcb1afc451abfbdcdd55ebd5b343ea366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e041604140a14b5b79065f03168e1efe36e52a05ddc698965301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d0403020347003044022046124d18a397a3576b6f9a766d7e87dd2cc4554dffd95dd458cdff32050918d00220330a57ad23e5c13d136e304f0a30d4cc8e39a712c63ecc280846ce4b8bdd9934", + "certification_declaration": "3081e906092a864886f70d010702a081db3081d8020103310d300b0609608648016503040201304506092a864886f70d010701a0380436152400012501f1ff360205008018250334122c04135a494732303134315a423333303030312d32342405002406002507769824080018317d307b020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d04030204473045022100b1d85dfdff236be1dbd390eb8731977dcb0c83abfee9aad4da806ee67cc14d8c022019e4f0621388c03bb0c82b86e98e019b9f348c6743ff8e2e6bb9a1308111d427", + "dac_private_key": "f66344ade3c7612f906f36cb4580c6f3efe1ea7055febaa1643d1e18f06c42b5", + "dac_public_key": "04404980769696f95951acad22aa2f9a51199668064d24dd33e1fd892e4837e028f03c59ead4290e407cfb8085a2f7cf366f8cf7f9167d52a43c75c80693a5cf1f" +} diff --git a/credentials/development/commissioner_dut/struct_dac_ext_key_usage_key_cert_sign_wrong/cd.der b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_key_cert_sign_wrong/cd.der new file mode 100644 index 0000000000000000000000000000000000000000..8e1382796469f3a4c7910ef17f77e65fec055048 GIT binary patch literal 237 zcmXqLe8tA8)#lOmotKfFX+h&1gT|XojLe3-2Hb3%32h#Xsmv@)j0Ua9e2JGvmin|)0%B&UeWc60@fEmB@2#jx)lG_duG#>d-M8}EuS_E TB|P}0ztE*cs@%vq#Q7-zMSn^l literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_ext_key_usage_key_cert_sign_wrong/dac-Cert.der b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_key_cert_sign_wrong/dac-Cert.der new file mode 100644 index 0000000000000000000000000000000000000000..5fbd5c10efa5fdfa12ca0886b9e92461811b0e6c GIT binary patch literal 466 zcmXqLVmxQi#8|R`nTe5!iGxuu%&Gc2ZFzOpH7%ZfS+&~^At;_-pyatgIWp|VIB-r0%NfN5~vbi%P?}D2rav(E% zFc`QpDKf09SsSq8=GUcnr>XeOdAe}TsV{B!jy{>2w)dIz!gt46e({V{W3!Wy(ypy1_&yK zNX|V20SBQ(13~}Z3F?L{`nP bQMAt#r-lH9T5-E!MFC9d)OeBdi>t9wgPSpx literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_ext_key_usage_key_cert_sign_wrong/dac-Key.pem b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_key_cert_sign_wrong/dac-Key.pem new file mode 100644 index 00000000000000..6d4a751d7e3244 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_key_cert_sign_wrong/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIPSORMEWfjBnpST1D5SxCGAXPcAVTzQUKW8d/TJDAr0poAoGCCqGSM49 +AwEHoUQDQgAEIsaL+a2n5H/mWAToXp7R3Jox+ZnFRBcvbwvYJxlkbcLqozQ0RFbN +sFG0zxSnhgCFWnG7YUUBTOnUeJHyi6uxUQ== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_key_usage_key_cert_sign_wrong/pai-Cert.der b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_key_cert_sign_wrong/pai-Cert.der new file mode 100644 index 0000000000000000000000000000000000000000..2f6fd46323a320438c90d09ac8c8f5265f5467e6 GIT binary patch literal 450 zcmXqLV%%rY#F(;xnTe5!iNmDUF8aOZaa98@HV&;ek8`#x%uEIbh7ty1Y|No7%sl+Q zi6teeMG7IQ#U%;>j*f;R210CH+H8z0j7^Jbm>79j+}zv@4HU$Ajf@OTj0_+kN`l`K z2n>ykfymU-)G`W>nVvYzj5H8tV+Xs5i4p2JW=3{qCkB>--Q`*-{JP$4XQo6HSmo65 zo}8Jp<5l&E4~FK}br;_#Ut{_-Q>m()iG#1@&ZCL8*IuU=YS;xFVm`_${ruG1GtP_C z3{rsJU=EcPW@P-&!ePJ$q?i~P4fsG}{2(!4Ffg(i$b$HMEMhDoC(7<7?Mbk|$&w^g z@nv&oNZtiEPXl?7v@#1Yuo^_N{wkHr2g<+MFXlKsUEt0g!-a))$bri2!C>IZq>yJ@ z^K%>fVoR&L*S_q3!p&bN=T}%z{^73ckAxLJIWMs>DKfNVe(nvND>V1E?%}B-+OJ(F U)jxloVl$srY}&Vw2BoK+03M}>+yDRo literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_ext_key_usage_key_cert_sign_wrong/pai-Cert.pem b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_key_cert_sign_wrong/pai-Cert.pem new file mode 100644 index 00000000000000..a3d73ddca2a8f9 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_key_cert_sign_wrong/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBvjCCAWSgAwIBAgIINH0+W+8pxyUwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowMDEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTBZMBMGByqGSM49AgEGCCqGSM49AwEH +A0IABMGLdypkDy1LhsyUWHA6bH4NyZlsuOp7yPAxNzt+0ewj1gLymSJ6dwIIDoTc +4pE91utncSg+UMIDxQUb58rtzEOjZjBkMBIGA1UdEwEB/wQIMAYBAf8CAQEwDgYD +VR0PAQH/BAQDAgEGMB0GA1UdDgQWBBTIdt1ivGA/2QRiEnj0s4lUbtBGSTAfBgNV +HSMEGDAWgBRq/SJ3H1Ef7L8WQZdnENzcMaFxfjAKBggqhkjOPQQDAgNIADBFAiBu +PXz5tgejOTrd1vS/5AsPfh5OcXB38N1F+GCo+QnSBgIhAIRp841RnRKd2y3DlRQr +60WSf+frZDyfBRaW9lSAIuWJ +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_key_usage_key_cert_sign_wrong/pai-Key.der b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_key_cert_sign_wrong/pai-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..50168a6fa1d89b0faf20fddaceb46d279500fff9 GIT binary patch literal 121 zcmV-<0EYiCcLD(c1Ry$a5`*$4au2oxaxbz@G&<#e$nhB)&laGB6@cM b2o8kY;*mYp>t}H&K2X8~#RVJZ%I(ZU>CrLr literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_ext_key_usage_key_cert_sign_wrong/pai-Key.pem b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_key_cert_sign_wrong/pai-Key.pem new file mode 100644 index 00000000000000..fc18452c49e097 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_key_cert_sign_wrong/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEID1/Hl9vwslfio4i3E8mehG2MnBSUZL52e0gqZcHNN0joAoGCCqGSM49 +AwEHoUQDQgAEwYt3KmQPLUuGzJRYcDpsfg3JmWy46nvI8DE3O37R7CPWAvKZInp3 +AggOhNzikT3W62dxKD5QwgPFBRvnyu3MQw== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_key_usage_key_cert_sign_wrong/test_case_vector.json b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_key_cert_sign_wrong/test_case_vector.json new file mode 100644 index 00000000000000..4412d5ec9b68c0 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_key_cert_sign_wrong/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "DAC Test Vector: Certificate Key Usage extension keyCertSign field is wrong (present for DAC and not present for PAI", + "is_success_case": "false", + "dac_cert": "308201ce30820174a0030201020208012e56427bf70d56300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d0301070342000422c68bf9ada7e47fe65804e85e9ed1dc9a31f999c544172f6f0bd82719646dc2eaa334344456cdb051b4cf14a78600855a71bb6145014ce9d47891f28babb151a360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020284301d0603551d0e041604140c5509076a71ef3f2e43dd05902897e625f6c517301f0603551d23041830168014c876dd62bc603fd904621278f4b389546ed04649300a06082a8648ce3d0403020348003045022100ae7cad50a8d9f5a5dd96244e9ce5a1accaf486dec5e49445affe80a0e4858aff0220109c495dfdfb3888028ba7055e832a4d579a240d4f7f2990a2f19be47eb5503b", + "pai_cert": "308201be30820164a0030201020208347d3e5bef29c725300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313059301306072a8648ce3d020106082a8648ce3d03010703420004c18b772a640f2d4b86cc9458703a6c7e0dc9996cb8ea7bc8f031373b7ed1ec23d602f299227a7702080e84dce2913dd6eb6771283e50c203c5051be7caedcc43a366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e04160414c876dd62bc603fd904621278f4b389546ed04649301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d040302034800304502206e3d7cf9b607a3393addd6f4bfe40b0f7e1e4e717077f0dd45f860a8f909d2060221008469f38d519d129ddb2dc395142beb45927fe7eb643c9f051696f6548022e589", + "certification_declaration": "3081ea06092a864886f70d010702a081dc3081d9020103310d300b0609608648016503040201304506092a864886f70d010701a0380436152400012501f1ff360205008018250334122c04135a494732303134315a423333303030312d32342405002406002507769824080018317e307c020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d040302044830460221009bfed41235cb42557a06dd76efc6c743d45ca05817693b06996e72d7787005e8022100a0c5b2d25ff54b9982d4de9e8f6339e5831260e0fa2fa144841a7732435443e5", + "dac_private_key": "f48e44c1167e3067a524f50f94b10860173dc0154f3414296f1dfd324302bd29", + "dac_public_key": "0422c68bf9ada7e47fe65804e85e9ed1dc9a31f999c544172f6f0bd82719646dc2eaa334344456cdb051b4cf14a78600855a71bb6145014ce9d47891f28babb151" +} diff --git a/credentials/development/commissioner_dut/struct_dac_ext_key_usage_missing/cd.der b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_missing/cd.der new file mode 100644 index 0000000000000000000000000000000000000000..1a961872ed43ed800b2778a70c04022d5df034e4 GIT binary patch literal 235 zcmXqLe8I-4)#lOmotKfFX+h&HgU0JjjLe3-2Hb3%32h#Xsmv@)j0UaJkHs&Ff$n#7)lt3u`!3TF!S*H zCYF?>7Ab_J7MCalIC>h27znX(X|pl1Fg7i!VPfQAadUGsG*A%dH8L_VF*1OFC<%T` zATTsC1|m~SQ_Cm=HymcVI67lD6HSzfhs6S9c%*?a8#~ygOpH(`Gc&R?J29|)5_mhY z!sET$$z^tjGcqHX6X#F&kIU>|&nsT>%Go1x&YWw@^|U8W_DVH1Zt;z{v47?&p^t0r zXSB`~yAbfc>Tc%Z00Tb*9-y~ng&7(DvoIMj7|4Qnd@N!tB86wae>-r)uC%D-fP8+) zgXjg1R!%XH2T3cl00XN*$qI+;z}?bdFZVIs4(it0s6zeEmHW)B7fS0;t5;$kUX zO}SN*CgkikF)HE^iQN2AbkDw{A7mcbpLXR?W>RFhmh^k+uUmE9N0;(W{VV%#{)KHD S)St?DJI8Gk>{Lx!RSWzUTKf74HtOoLr7_yoYtoN|O<35!nW_@;tv{HBnHJDc?|R*7={Ypx literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_ext_key_usage_missing/dac-Key.pem b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_missing/dac-Key.pem new file mode 100644 index 00000000000000..30ac1b879ba158 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_missing/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEICKJxV25Dgh9+t9qyyoBi7/jy+645R/B0mYaOZiMXKxnoAoGCCqGSM49 +AwEHoUQDQgAE8hDtkXhI70bJpj7DaGlYA2Gfl09eaY+vDRd46kNIaZyc1qcuK5GT +SmU1M4RNWNi/maoS8a0/mIWZFtBQ73rdaQ== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_key_usage_missing/pai-Cert.der b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_missing/pai-Cert.der new file mode 100644 index 0000000000000000000000000000000000000000..7751df99b85a5c704ea0a2e7e93574d646933d1c GIT binary patch literal 450 zcmXqLV%%rY#F(;xnTe5!i9?yCw)MDhdaMB#8;4e#$2nUTW+npzLkR;hHs(+kW*&au z#FCQKB88CD;u3`bM@K^u10gmpZ8k<0#->FzOpH7%Zfj#0Yg9Gb1~*69db~S@WDi0xK4q9|?)d+5Ow# zUr{`J%^~&RK>p>jr{_lS{Cpk$SGW3wXKcN-yqaUHkH`tVCo=_>J-Ht8EB)BH5C0dZ z8KeNc!5k_p%*gnkg~NaiNHH-o8t{R{_(5X8U|?i3kOlGiSj1RFPKX|^li9@GZtbQS zCNgWQs9v=6O9Oe3v@#1Yuo^_N{wkHr2g<+MFXlKsUEt0g!-a))$bri2!C>IZq#$zT zoL9)ks_lF>cO}0)(P2K4mfjkcSQs{cmhrM6zb%zaiVXLfs{=~iYjmQVmz~O1V!py_( zn^;nkTBHz?T3n(K;OJ>6Vj#rErOn33!q~K^hKZ4f#m&vl&_F?)*T~4g#K-^wq9ph& zfxytn7>GUsOf*p@9u^Cb;gJTyZ0ul{GBHA(%*@En?8LwlWe{Kc zI&KLM_xkl~k1t|f;dSzCSF+{oEM~TDp9xAo>v}m8&uCsb#q}h>%$)C(VBm~3GY@dB zbmZH6uu@?+^S*?|jt2GyJV0;D3NtePXJIm6FyI66_(42iu&_56$bZj(TzjZmFyj+)C^EY<7`QMg_?X6I*;?)nJL{;o<=Jd!_t$O}GlLo# y*Lc0`*j5>swT(%kV#dyyKWlGZjc2{TVB6coz+Id77i*UmU5cof&wjW&z6bzu!-5_F literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_ext_skid_missing/dac-Cert.pem b/credentials/development/commissioner_dut/struct_dac_ext_skid_missing/dac-Cert.pem new file mode 100644 index 00000000000000..1dc2e6c9836d0b --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_skid_missing/dac-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBrjCCAVWgAwIBAgIIeZ66Jfr6yckwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +REFDMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAARaMF99616kDAuvr63HogWoSsnNimM5 +m2oDBotMkCL5fo0JYcwp1MoK5FA2Nw7KEVGYrJnACqlBDr3BeSC7A75go0EwPzAM +BgNVHRMBAf8EAjAAMA4GA1UdDwEB/wQEAwIHgDAfBgNVHSMEGDAWgBT8LwenSXt/ +UaDF7Mpz0NbhJXCY8jAKBggqhkjOPQQDAgNHADBEAiBMNVxqPTm7Vs1BLrTmm0NH +60Z4mVKBAaxK6Yi2eVFqtgIgeJi5mfl92dVfBd+gtu1hUbqzv3MrdXLSWHifB8OL +X3I= +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_skid_missing/dac-Key.der b/credentials/development/commissioner_dut/struct_dac_ext_skid_missing/dac-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..a161af1e8c5d89a1e33bcf0651ea46492a5ca35e GIT binary patch literal 121 zcmV-<0EYiCcLD(c1RyX_r&^*pp#{-7eOcPRYGD01JH*WQBvk3^Oc6Xu9h0C61_&yK zNX|V20SBQ(13~}t3V`3$L%O$D#$OO3BTNV>z2@0|tvskRthhjR|4QDb&ge bz=3aLR3y}@}Py92&p1a~lf literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_ext_skid_missing/dac-Key.pem b/credentials/development/commissioner_dut/struct_dac_ext_skid_missing/dac-Key.pem new file mode 100644 index 00000000000000..983b9d4150b51a --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_skid_missing/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIDBQp1qiOaEF0Tl9Wdq+amD9ODvEzPckVOnrTBE8SR2ToAoGCCqGSM49 +AwEHoUQDQgAEWjBffetepAwLr6+tx6IFqErJzYpjOZtqAwaLTJAi+X6NCWHMKdTK +CuRQNjcOyhFRmKyZwAqpQQ69wXkguwO+YA== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_skid_missing/pai-Cert.der b/credentials/development/commissioner_dut/struct_dac_ext_skid_missing/pai-Cert.der new file mode 100644 index 0000000000000000000000000000000000000000..8215f09fa7b19732e4756194689084d5e6aac84e GIT binary patch literal 449 zcmXqLV%%%c#F(;xnTe5!iG!7S^X1oTQqLK1v2kd%d7QIlVP-NgFqAM5V`C0wVdmlY zO)M!%Em8?V)PHj86vgAZcY5U|=yQJL*`2|_g-N0M z@a7e%BEKD{UHj8(8v#lv8PRmK_hT bO06eU(cAfIm_>bp@`T39;y=4cG}RqO(=Ig% literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_ext_skid_missing/pai-Key.pem b/credentials/development/commissioner_dut/struct_dac_ext_skid_missing/pai-Key.pem new file mode 100644 index 00000000000000..b1d417b4d41f94 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_skid_missing/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEII4wA4W5EbBT5ukkUj/z4g3LrR5h9NTZ0CbtVvU65TDooAoGCCqGSM49 +AwEHoUQDQgAEF7i3rgc/GSQHUnZvW2tfbTfxy/owG/8MGpa5OevPrNaUU2l0lh0P +r0qtJ1TR2/lqmEV9gvKExsriP7tINNUdRg== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_skid_missing/test_case_vector.json b/credentials/development/commissioner_dut/struct_dac_ext_skid_missing/test_case_vector.json new file mode 100644 index 00000000000000..103085cbbd4a11 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_skid_missing/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "DAC Test Vector: Certificate doesn't include Subject Key ID (SKID) extension", + "is_success_case": "false", + "dac_cert": "308201ae30820155a0030201020208799eba25fafac9c9300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d030107034200045a305f7deb5ea40c0bafafadc7a205a84ac9cd8a63399b6a03068b4c9022f97e8d0961cc29d4ca0ae45036370eca115198ac99c00aa9410ebdc17920bb03be60a341303f300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301f0603551d23041830168014fc2f07a7497b7f51a0c5ecca73d0d6e1257098f2300a06082a8648ce3d040302034700304402204c355c6a3d39bb56cd412eb4e69b4347eb467899528101ac4ae988b679516ab602207898b999f97dd9d55f05dfa0b6ed6151bab3bf732b7572d258789f07c38b5f72", + "pai_cert": "308201bd30820164a00302010202080503b3d3ebac65ce300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313059301306072a8648ce3d020106082a8648ce3d0301070342000417b8b7ae073f19240752766f5b6b5f6d37f1cbfa301bff0c1a96b939ebcfacd694536974961d0faf4aad2754d1dbf96a98457d82f284c6cae23fbb4834d51d46a366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e04160414fc2f07a7497b7f51a0c5ecca73d0d6e1257098f2301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d040302034700304402207bc3b3a86514fb4196d6fc88c501eaf31a066732bf02c27a5dc934deee80924302207fafc732c943cdd5cb77c617ccf359565d562f12d8bb5a4d9ace6aa505e2c49e", + "certification_declaration": "3081e906092a864886f70d010702a081db3081d8020103310d300b0609608648016503040201304506092a864886f70d010701a0380436152400012501f1ff360205008018250334122c04135a494732303134315a423333303030312d32342405002406002507769824080018317d307b020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d04030204473045022041f14cbf2ec70d10970853d9017663d79f14f7470cb4d133238032f1cf3dd48102210080f2f24b889f0d9cdcdcf70950ad25fa7339fd5ec436fbb8e16b925723edbf9c", + "dac_private_key": "3050a75aa239a105d1397d59dabe6a60fd383bc4ccf72454e9eb4c113c491d93", + "dac_public_key": "045a305f7deb5ea40c0bafafadc7a205a84ac9cd8a63399b6a03068b4c9022f97e8d0961cc29d4ca0ae45036370eca115198ac99c00aa9410ebdc17920bb03be60" +} diff --git a/credentials/development/commissioner_dut/struct_dac_ext_subject_alt_name_present/cd.der b/credentials/development/commissioner_dut/struct_dac_ext_subject_alt_name_present/cd.der new file mode 100644 index 0000000000000000000000000000000000000000..d9293cb64030e4d06d94173141b0d115edbbc7d0 GIT binary patch literal 236 zcmXqLe96YC)#lOmotKfFX+h&{gT@<7jLe3-2Hb3%32h#Xsmv@)j0Ua z6>Iog{!8y;cgOGUI+HnW TP4^-WKiIY1$}vZ(VQL@%*Um{R literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_ext_subject_alt_name_present/dac-Cert.der b/credentials/development/commissioner_dut/struct_dac_ext_subject_alt_name_present/dac-Cert.der new file mode 100644 index 0000000000000000000000000000000000000000..4c946ca849269c7a51072bff1110d7be4afbb9a4 GIT binary patch literal 487 zcmXqLVtj1S#MrrjnTe5!iNp9!&cecNtLhE7*f_M>JkHs&Ff$n#7)lt3u`!3TF!S*H zCYF?>7Ab_J7MCalIC>h27znX(X|pl1Fg7i!VPfQAadUGsG*A%dH8L_VF*1OFC<%T` zATTsC1|m~SQ_Cm=HymcVI67lD6HSzfhs6S9c%*?a8#~ygOpH(`Gc&R?J29~QU0C{A zh2g=D1y|3fX*28GS6ECpr_a)wUd+VxsBZ+A1P)DVuGxl;KTFhZ|9s z?3+OAU$*c!1uP6=r1o&%$KDV893B@q>84U}0}CkOlGiSj1RFY`wQU zOca|{!vAiu_o?{}zy6if`y0rEq?K8Kf!83iEFxyl+_$dlLl>Tw|65e1vsJo_5$JTF z0znoY1Fj~H5@3kxCFkcNhdi?fgMllPf_1a{ncVtc?TyElY`v*2%@*_ch4{DPo#$Kj v9SNJiz}b;WkzsbKT=kQ#L+-2v{0`69PudoLiYn#Rd$IgQQ>Cl-cLNmwpW&0* literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_ext_subject_alt_name_present/dac-Cert.pem b/credentials/development/commissioner_dut/struct_dac_ext_subject_alt_name_present/dac-Cert.pem new file mode 100644 index 00000000000000..81a67ce9250fed --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_subject_alt_name_present/dac-Cert.pem @@ -0,0 +1,13 @@ +-----BEGIN CERTIFICATE----- +MIIB4zCCAYmgAwIBAgIIM+xsoXG2qn8wCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +REFDMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAT9oXXzJADguKDVz2YrAyzfI6SCuUIt +TODUcZLIiWHWfYTFlDQpR4WFFBTSawazGjHZOUDYWtPdYwr87xrxkrXdo3UwczAM +BgNVHRMBAf8EAjAAMA4GA1UdDwEB/wQEAwIHgDAdBgNVHQ4EFgQUPUu04WEWmnQP +7qNLyp+A+v50f08wHwYDVR0jBBgwFoAUplhcvJ3tRa9Vocsf/XJ2LLUbigEwEwYD +VR0RBAwwCoIIdGVzdC5jb20wCgYIKoZIzj0EAwIDSAAwRQIgO4MnzG1/+oeBxqS1 +2ScbBlzj6Bf2c7nPhL7EVp+gQ0ECIQCbZR575IrCRwVwD0DmB8k9c/JadQ0u6Kfo +gnlFS/cwJA== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_subject_alt_name_present/dac-Key.der b/credentials/development/commissioner_dut/struct_dac_ext_subject_alt_name_present/dac-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..e23808824f9b3228beb50e39ff179de41c49df83 GIT binary patch literal 121 zcmV-<0EYiCcLD(c1R#?N+hXM@9{|XT4T;nb!)zUxE!1d%#7^JP7Ex$5svCFink|}yp+h=E)=_9 z3V*%Wt=sFbPj}Dbh$<2ns8OAA{HO39$<|Zz4zugbJz)4nZT_{@yu#_C?YU15oRnCc zW{?8(26L#aFeBrC77hb8AjQPUXut;&;|GZWgMpFFKo-R3V-aH!Sr!qqXYO0q^`Q$- z%l|DZ)7dKB#b_W8l2&E`23CVe)?cM^`9S$M`^6lmrwiP2LSF^_2ZY&eDwL-LBbpu3Pc{y0cX3{R`u1Oo|L!OMm$vm@Qf9#LL8(rn+DC VI^(LZ*I#@oir_jbox$eI3;=lah7kY& literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_ext_subject_alt_name_present/pai-Cert.pem b/credentials/development/commissioner_dut/struct_dac_ext_subject_alt_name_present/pai-Cert.pem new file mode 100644 index 00000000000000..768032784b9271 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_subject_alt_name_present/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBvjCCAWSgAwIBAgIIAR/N/IEcfv4wCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowMDEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTBZMBMGByqGSM49AgEGCCqGSM49AwEH +A0IABG1YQSfoc7dgdOkYarcSXaCUD38W2tuv15dHbghachcQfCWUx/kTvBmFyp7D +ByydwDH0Jp/Wqw0TZxWHbeTAyRijZjBkMBIGA1UdEwEB/wQIMAYBAf8CAQEwDgYD +VR0PAQH/BAQDAgEGMB0GA1UdDgQWBBSmWFy8ne1Fr1Whyx/9cnYstRuKATAfBgNV +HSMEGDAWgBRq/SJ3H1Ef7L8WQZdnENzcMaFxfjAKBggqhkjOPQQDAgNIADBFAiBc +Sp5CYvSPh03a5QfIbKVog7tFa9zXOg/63KUa7+gzlgIhALV1+k/Amxl5Qg0CAWYl +vyXXAar11+j0clgKxRtoBk0D +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_subject_alt_name_present/pai-Key.der b/credentials/development/commissioner_dut/struct_dac_ext_subject_alt_name_present/pai-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..7dae7039a45c4deaa34d38f12a9656cf0e6b1b60 GIT binary patch literal 121 zcmV-<0EYiCcLD(c1R#b^;8de1zLE$;pR^N78l8cfY)Rls@wv$wuYm=$$D*JL1_&yK zNX|V20SBQ(13~}|Vj7ZvfgYcHzB@D#am_u2ZdH8)3 zOG;9U6hcyqOB4beJq<++gxI*W*%(J*fSMg5>Ov2J#?jWfoxIHHfgx%A2+CG}D(ytlTMASo|v1&0;S?3S(w> z1_Ku+g)G%9>%7o_tf~c0T(~%boVlDyLI2JQN!QMj%e5Dl aa3}okh?IHlTi_X%wJlu!=AR17+iL)5QHQ|* literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha1/dac-Cert.pem b/credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha1/dac-Cert.pem new file mode 100644 index 00000000000000..eb2bd5ef87ae0a --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha1/dac-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIByzCCAXOgAwIBAgIIM5gk1idb9GAwCQYHKoZIzj0EATAwMRgwFgYDVQQDDA9N +YXR0ZXIgVGVzdCBQQUkxFDASBgorBgEEAYKifAIBDARGRkYxMCAXDTIyMDQyMDAw +MDAwMFoYDzk5OTkxMjMxMjM1OTU5WjBGMRgwFgYDVQQDDA9NYXR0ZXIgVGVzdCBE +QUMxFDASBgorBgEEAYKifAIBDARGRkYxMRQwEgYKKwYBBAGConwCAgwEODAwMDBZ +MBMGByqGSM49AgEGCCqGSM49AwEHA0IABJqpN9xIz/t2V0aVOzvjBGlTcEKhKVGN +Ro222SoB91tGOm6fe5Vty1FtcAokUzc9xmF1LYtIGSY+25Rek5irn7WjYDBeMAwG +A1UdEwEB/wQCMAAwDgYDVR0PAQH/BAQDAgeAMB0GA1UdDgQWBBTEG8rXyBGxKw2p +oiD3Uof4IBmb8TAfBgNVHSMEGDAWgBQEmm6avssC9OIFC2TUBE54rpoHcjAJBgcq +hkjOPQQBA0cAMEQCIGolajtuVVBqeqBCCj0Pp6v+pmCmcskonGS4XJzc4ZmnAiAv +3KgZRYl0033QpAtg+4hZHOtNcElWarZXH9n8eDnbrA== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha1/dac-Key.der b/credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha1/dac-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..1db8e9eac5d2fb749d963ad33574cd5588b8351f GIT binary patch literal 121 zcmV-<0EYiCcLD(c1R%%Jg?ewqvWO|*8#X6i{qJ@2HnN!Z|JV+|4Muy%X@;N*1_&yK zNX|V20SBQ(13~}j*f;R210CH+H8z0j7^Jbm>79j+}zv@4HU$Ajf@OTj0_+kN`l`K z2n>ykfymU-)G`W>nVvYzj5H8tV+Xs5i4p2JW=3{qCkB?c)_t5EyEb0`q%9j(e=kns zUaw%sI{B{t@^m_0O9gb>qOFSJo{~ zGe`k?gE>@In33^63x@$4kYZwFG~fe?@q@&G!NAC7APeI2v52vVu*}MvweK|3mq)DJ zDOXthD%Q#tI|e4zZB{bG*O(*^F_FoQN}qKkoUVVK6rOeE5R-!Ms)r_1?``nbd9-McoiP)~ V8_gNr^Y*8`vi`Ajv1ad-4*(+HiI@NY literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha1/pai-Cert.pem b/credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha1/pai-Cert.pem new file mode 100644 index 00000000000000..a5de7f2fe50825 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha1/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBvjCCAWSgAwIBAgIIJKpVuBhNEYUwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowMDEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTBZMBMGByqGSM49AgEGCCqGSM49AwEH +A0IABO07jgmIurHX8isdVn/eXijejRGIrhbY2zWwNSTI3itqZxmxtz4ToFAkT3pJ +bAqymLk40/hR/GX87IwnM1H51K6jZjBkMBIGA1UdEwEB/wQIMAYBAf8CAQEwDgYD +VR0PAQH/BAQDAgEGMB0GA1UdDgQWBBQEmm6avssC9OIFC2TUBE54rpoHcjAfBgNV +HSMEGDAWgBRq/SJ3H1Ef7L8WQZdnENzcMaFxfjAKBggqhkjOPQQDAgNIADBFAiEA +vBOJV9xWVZf6vLD1XXNeY5GbPhR15ohgy3/nYldq1MICIE2q4TSV3rBLLOKivD4z +AgjsKZiLnr9m6jv4paMpjZTw +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha1/pai-Key.der b/credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha1/pai-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..8a313c4aecdfc4bae692d557d9286bdbb6e5affd GIT binary patch literal 121 zcmV-<0EYiCcLD(c1RyoAwald(oz;qfdBK+i*w5^(t$RV~#zBb@k`b#5**2gG1_&yK zNX|V20SBQ(13~}FzOpH7%ZfjA>*xW;jg^srtCm6&T@BqCnE6m9FpM}YQ!GI6M;|KA8!NT5PAPeI2v52vV1fROg z(B3(F>Yv-L5@Byd-%Yj;Z!nMtNh`Ae1Fu1(Eq{f@L_rqLNiVKmRBFzBSJ82b9XXJh z-5CsAm=x4rdD>?Doo;-u?~;X%&j*$s>-9<%zk&o!R<7h0wobpvq>$Xjxag_s76und cp4}&R-JK%8@Z|jLum_uF$nSrAYWnGA0E@egL;wH) literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha256/dac-Cert.pem b/credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha256/dac-Cert.pem new file mode 100644 index 00000000000000..fc5cc45fb3e9eb --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha256/dac-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBzTCCAXSgAwIBAgIIPWAiOWrKUWIwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +REFDMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQFZ+vEXJHU0iQ4vq9InW77s1a6ONcz +9SBF07RLN5aY4RNmGQWT+EXnR6Kuebb+tgbFV12sjoXUyOwWncJhcUHao2AwXjAM +BgNVHRMBAf8EAjAAMA4GA1UdDwEB/wQEAwIHgDAdBgNVHQ4EFgQUU8rdAIeJm5X8 +20UYVuwV7pM/V4AwHwYDVR0jBBgwFoAUhm+oOJERBAmS6NXRIoNt7niIygcwCgYI +KoZIzj0EAwIDRwAwRAIgJupJPWj9lzPejtI4LEzwBIw7ryJ4+lIRNKmpCxM7Z9kC +IGOKAaLlJbQARBkMu8m63ZQfocmfa1bgspgfv+PKl8um +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha256/dac-Key.der b/credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha256/dac-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..dff6da6b07749ee3cc53215daa1dc23dc961a451 GIT binary patch literal 121 zcmV-<0EYiCcLD(c1R#@e%=pO=vEEVR1p)By2Z5 literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha256/dac-Key.pem b/credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha256/dac-Key.pem new file mode 100644 index 00000000000000..df5f005244d266 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha256/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIJNwzPjJD0JDQ6Kq+OzaeBzorQ2u2iJQOWYMuwEMYd/5oAoGCCqGSM49 +AwEHoUQDQgAEBWfrxFyR1NIkOL6vSJ1u+7NWujjXM/UgRdO0SzeWmOETZhkFk/hF +50eirnm2/rYGxVddrI6F1MjsFp3CYXFB2g== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha256/pai-Cert.der b/credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha256/pai-Cert.der new file mode 100644 index 0000000000000000000000000000000000000000..4ac04099c28a7bafafaaea40a37a1021ccbe5ebe GIT binary patch literal 449 zcmXqLV%%%c#F(;xnTe5!i6hHOJlvRf{W$|JHV&;ek8`#x%uEIbh7ty1Y|No7%sl+Q zi6teeMG7IQ#U%;>j*f;R210CH+H8z0j7^Jbm>79j+}zv@4HU$Ajf@OTj0_+kN`l`K z2n>ykfymU-)G`W>nVvYzj5H8tV+Xs5i4p2JW=3{qCk7VnXNh^HHk*?!+`GJ|f5Ya6 zLMOZMWj80ySZQp$XL0kc9k~ZwqgOpLk5M%1Jfg97{+yQJL*`2|_g-M~P z$?nLn#`aVN!OJ&NpT?M86KXlQ|DuuH@|#7zU0%Aom=x-oVq*2fughPsIhmx?vV6xq Up{)_&ORS4Jzf7*|E1mKh0K967R{#J2 literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha256/pai-Cert.pem b/credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha256/pai-Cert.pem new file mode 100644 index 00000000000000..6cb86f62cd72a7 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha256/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBvTCCAWSgAwIBAgIIajoXVzMNr84wCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowMDEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTBZMBMGByqGSM49AgEGCCqGSM49AwEH +A0IABCvmYW41PLNi0N7TvI+ws4BxQj5XptmSmKkzM7yjg7q4bcBFW6riN1whNonE +KK2fvKDY9vg1yPrNZLAHJwt61XqjZjBkMBIGA1UdEwEB/wQIMAYBAf8CAQEwDgYD +VR0PAQH/BAQDAgEGMB0GA1UdDgQWBBSGb6g4kREECZLo1dEig23ueIjKBzAfBgNV +HSMEGDAWgBRq/SJ3H1Ef7L8WQZdnENzcMaFxfjAKBggqhkjOPQQDAgNHADBEAiBy +gj7E+oGHZSAR09hl5Vw11hKEwb/RMh6n2XJNikotugIgfoJcXS9X1x/QPMliIoSn +uN4StVhXpDtyifSTeY51lOs= +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha256/pai-Key.der b/credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha256/pai-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..17451d2168625f94c1697dbcc422b249d9bb24f0 GIT binary patch literal 121 zcmV-<0EYiCcLD(c1R%0W{Hmg|ws3bFK&bZf)NiUExHVwR8BqcT83>JxrpTZQ1_&yK zNX|V20SBQ(13~}{46IeTq4ss#W*dPUj* literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_sig_curve_prime256v1/dac-Cert.der b/credentials/development/commissioner_dut/struct_dac_sig_curve_prime256v1/dac-Cert.der new file mode 100644 index 0000000000000000000000000000000000000000..5deb3a6b8ba09bdefb7a9fc25a532d2bce847d49 GIT binary patch literal 467 zcmXqLVmxoq#8|R`nTe5!iK9M}y+Jp1+7<&YHV&;ek8`#x%uEIbh7ty1Y|No7%sl+Q zi6teeMG7IQ#U%;>j-G}h210CH+H8z0j7^Jbm>79j+}zv@4HU$Ajf@OTj0_+kN`l`K z2n>ykfymU-)H2Gz4TqU7j?UQ4L=$D=VX*)i9%&%V#twEV6C>2g%#7^JP7ExOzXJp! zLYCb3ePW$I=gR{V%a$_JU+t|)=OX`JthgY3?aX067PJ3*)h1kDW%reN+0QhWA8Ji^ z;}p)9eB2?vcCN+Z1cNvO9-y~ng&7(DvoIMj81R93{2(4MSlAm3WI=pB7BLo)wGWn_ zkKeKDWO99;VlIehUN4)&ScR(e-`9jXNi|(wG cVU88gbDOQqJq@Ss69L@51^{;&k0cRDB>i_@% literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_sig_curve_prime256v1/dac-Cert.pem b/credentials/development/commissioner_dut/struct_dac_sig_curve_prime256v1/dac-Cert.pem new file mode 100644 index 00000000000000..5a115999dd5045 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_sig_curve_prime256v1/dac-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBzzCCAXSgAwIBAgIIf1kHgC1llrQwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +REFDMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAARZ+1AQWFSk303kO2+c9OA0OYR2NfqH +hWLOWf3ReNAb1szDTgQ2/70mkNeqPvUDpvlmRPgmgt1eIM908bgXrZ04o2AwXjAM +BgNVHRMBAf8EAjAAMA4GA1UdDwEB/wQEAwIHgDAdBgNVHQ4EFgQUreClz1+4usl3 +bBMEb8+oxb5aRwUwHwYDVR0jBBgwFoAUMfnptlpML8tOY/G26Nt3URYqXFUwCgYI +KoZIzj0EAwIDSQAwRgIhAI9BXqn9YL+Cmh5aw/bm9vDQ9oWZQKYTWQLAK4hfH9Hu +AiEA+w5UzYcVuX4cA10XbkabKEMYWTgCL2krM1sE86v6vqE= +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_dac_sig_curve_prime256v1/dac-Key.der b/credentials/development/commissioner_dut/struct_dac_sig_curve_prime256v1/dac-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..c2114651bdd7f0c0b4938a5760e83f2ba7854a42 GIT binary patch literal 121 zcmV-<0EYiCcLD(c1Rzb>!^-Z6J}$(i!?rtv+j8~$4S1WNarq5|L}gPaiR7RP1_&yK zNX|V20SBQ(13~}ZVg56#q&vfy)7pJkHs&Ff$n#7)lt3u`!3TF!S*H zCYF?>7Ab_J7MCalI64}N7znX(X|pl1Fg7i!VPfQAadUGsG*A%dH8L_VF*1OFC<%T` zATTsC1|m~SQ_CnkW_scJobofue7dA)Y9s+#=G#tI|e4zZB{bG*O(*^F_FRpds^1In UJDhWsL-n{>^xGS66;+hv0YL+X>;M1& literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_sig_curve_prime256v1/pai-Cert.pem b/credentials/development/commissioner_dut/struct_dac_sig_curve_prime256v1/pai-Cert.pem new file mode 100644 index 00000000000000..18415e99ce8b12 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_sig_curve_prime256v1/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBvzCCAWSgAwIBAgIINu3nG2Jn6v0wCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowMDEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTBZMBMGByqGSM49AgEGCCqGSM49AwEH +A0IABMpK60A6epP2SNO7Nn8gPbLKrXgWVpJcTZkHPaj+IlekE+qJKvt001GjeM7U +CQnOToKrud9NfYN2R4IHfd8IoxejZjBkMBIGA1UdEwEB/wQIMAYBAf8CAQEwDgYD +VR0PAQH/BAQDAgEGMB0GA1UdDgQWBBQx+em2Wkwvy05j8bbo23dRFipcVTAfBgNV +HSMEGDAWgBRq/SJ3H1Ef7L8WQZdnENzcMaFxfjAKBggqhkjOPQQDAgNJADBGAiEA +nZncRQVCvzWDgIgVAyx1utqviy8uJtWgFCyH91Gi7Q4CIQDRq28M9VcXfkLGfK+9 +J95QTsNs1QglxzZb7djtISQiHw== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_dac_sig_curve_prime256v1/pai-Key.der b/credentials/development/commissioner_dut/struct_dac_sig_curve_prime256v1/pai-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..302a6b124c01d61c82707ad46ff564de1078f15e GIT binary patch literal 121 zcmV-<0EYiCcLD(c1R#;BbM+UKJFLfOQ}_tZjLFQ;ytY%ZhY$Bza2q|%zYU-Y1_&yK zNX|V20SBQ(13~}<%1Y}%I(n1#NYlGEe;_@w%B^@7R+3yznFl?n{vubT6Y7a7`*hP$ bqj=8L2?@?lf~&dTO?`uQM}h}^-w2}@HSaX# literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_sig_curve_prime256v1/pai-Key.pem b/credentials/development/commissioner_dut/struct_dac_sig_curve_prime256v1/pai-Key.pem new file mode 100644 index 00000000000000..59f544240edabb --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_sig_curve_prime256v1/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIJGqc/UXkzusx2hT+AjOjMnMz7y2U7GHD/dZcBs9zb8NoAoGCCqGSM49 +AwEHoUQDQgAEykrrQDp6k/ZI07s2fyA9ssqteBZWklxNmQc9qP4iV6QT6okq+3TT +UaN4ztQJCc5Ogqu53019g3ZHggd93wijFw== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_dac_sig_curve_prime256v1/test_case_vector.json b/credentials/development/commissioner_dut/struct_dac_sig_curve_prime256v1/test_case_vector.json new file mode 100644 index 00000000000000..98b305cbaddb8d --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_sig_curve_prime256v1/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "DAC Test Vector: Valid certificate public key curve prime256v1", + "is_success_case": "true", + "dac_cert": "308201cf30820174a00302010202087f5907802d6596b4300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d0301070342000459fb50105854a4df4de43b6f9cf4e03439847635fa878562ce59fdd178d01bd6ccc34e0436ffbd2690d7aa3ef503a6f96644f82682dd5e20cf74f1b817ad9d38a360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e04160414ade0a5cf5fb8bac9776c13046fcfa8c5be5a4705301f0603551d2304183016801431f9e9b65a4c2fcb4e63f1b6e8db7751162a5c55300a06082a8648ce3d04030203490030460221008f415ea9fd60bf829a1e5ac3f6e6f6f0d0f6859940a6135902c02b885f1fd1ee022100fb0e54cd8715b97e1c035d176e469b2843185938022f692b335b04f3abfabea1", + "pai_cert": "308201bf30820164a003020102020836ede71b6267eafd300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313059301306072a8648ce3d020106082a8648ce3d03010703420004ca4aeb403a7a93f648d3bb367f203db2caad781656925c4d99073da8fe2257a413ea892afb74d351a378ced40909ce4e82abb9df4d7d83764782077ddf08a317a366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e0416041431f9e9b65a4c2fcb4e63f1b6e8db7751162a5c55301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d04030203490030460221009d99dc450542bf3583808815032c75badaaf8b2f2e26d5a0142c87f751a2ed0e022100d1ab6f0cf557177e42c67cafbd27de504ec36cd50825c7365bedd8ed2124221f", + "certification_declaration": "3081e806092a864886f70d010702a081da3081d7020103310d300b0609608648016503040201304506092a864886f70d010701a0380436152400012501f1ff360205008018250334122c04135a494732303134315a423333303030312d32342405002406002507769824080018317c307a020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d040302044630440220620a83eed8a527c0972862bc9c784a02c114280e4573ec370f9ccf1a56d92dfb02206e8bdb0790366e11ec9f184d5a52c44efb6c575b17a09dc5889012434ab7327d", + "dac_private_key": "4dd9c3caee883e2ec4a5c3b63b83db72f5fb0d789ba071f90d844465532789e4", + "dac_public_key": "0459fb50105854a4df4de43b6f9cf4e03439847635fa878562ce59fdd178d01bd6ccc34e0436ffbd2690d7aa3ef503a6f96644f82682dd5e20cf74f1b817ad9d38" +} diff --git a/credentials/development/commissioner_dut/struct_dac_sig_curve_secp256k1/cd.der b/credentials/development/commissioner_dut/struct_dac_sig_curve_secp256k1/cd.der new file mode 100644 index 0000000000000000000000000000000000000000..d8dd4154cd8c5770167e102875373e6c3de1bec4 GIT binary patch literal 236 zcmXqLe96YC)#lOmotKfFX+h&{gT@<7jLe3-2Hb3%32h#Xsmv@)j0Uay?(6y(IjPJNTKjWlUX`fr{nJ}nMRqeOG93QA<1hKlHV&;ek8`#x%uEIbh7ty1Y|No7%sl+Q zi6teeMG7IQ#U%;>j-G}h210CH+H8z0j7^Jbm>79j+}zv@4HU$Ajf@OTj0_+kN`l`K z2n>ykfymU-)H2Gz4TqU7j?UQ4L=$D=VX*)i9%dlG#twEV6C)d|b|VV|7qb%sOSsZJ zZdR6!z0ZVO%Iq~KBszaiP3T|$#wbA8G~MAj-^<;>QylAzBHp{}eN^rL@w)9-=e1K0 zoqlvgTTbvwI{cGwae_gd0T0m6vcimv|5=y}7!3G8Jbn-l7$)ou2C^VNABz}^h~rb= zr@QLaW-U8)E#TVvgI06DtiEF)50X}90ftP_fVTr;|S&p0MH$5xQeU{+EY+K#Ns?GeX@cZ3`cb;G2NxlqJa$(|JKepwQ fne)FrmFNykS5{Vk_vZPN_qI+IQZ9zZb1wh@v7?SG literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_sig_curve_secp256k1/dac-Cert.pem b/credentials/development/commissioner_dut/struct_dac_sig_curve_secp256k1/dac-Cert.pem new file mode 100644 index 00000000000000..b59b5c1f89ae9e --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_sig_curve_secp256k1/dac-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBzDCCAXGgAwIBAgIII3geiE8t5cswCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +REFDMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +VjAQBgcqhkjOPQIBBgUrgQQACgNCAARXIp4LBQSxjeYThHY/KZBhQ/NlYI+v7DJQ +EzVnQOcO6btTlEF+MljvRy7xJY/464b6idbK4UL4iFs5kEpiw/kOo2AwXjAMBgNV +HRMBAf8EAjAAMA4GA1UdDwEB/wQEAwIHgDAdBgNVHQ4EFgQUQeVN5bp/JpqmytZQ +1q/BOp30q9wwHwYDVR0jBBgwFoAUMq3Sj+eICOBjVatB8oGXmLLyW5AwCgYIKoZI +zj0EAwIDSQAwRgIhAKQg+R0I2c+y5ndt5mBMAz17hgUrA/px992h3OfUDGPTAiEA +0JGdTgankwNv9uUYi1FnIyMn7uzn5O89QngaRDEzndA= +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_dac_sig_curve_secp256k1/dac-Key.der b/credentials/development/commissioner_dut/struct_dac_sig_curve_secp256k1/dac-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..005705cdcafb03c049a2d7dc169343cad23b6724 GIT binary patch literal 118 zcmV-+0Ez!FbOHeZ1R#b?J%m!A0|?uXn2#k&VGm+>@pTg|gi&|7IAO>uL4Gn=??*22 YC6D;)hWd%t%Hcxzh+8?3N@BzL4t^IeP5=M^ literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_sig_curve_secp256k1/dac-Key.pem b/credentials/development/commissioner_dut/struct_dac_sig_curve_secp256k1/dac-Key.pem new file mode 100644 index 00000000000000..060c6d43c38616 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_sig_curve_secp256k1/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHQCAQEEIIZMPYRSoAMI24+YjyVKYQ9iePF1Ey2EUXe5OrE7WxXmoAcGBSuBBAAK +oUQDQgAEVyKeCwUEsY3mE4R2PymQYUPzZWCPr+wyUBM1Z0DnDum7U5RBfjJY70cu +8SWP+OuG+onWyuFC+IhbOZBKYsP5Dg== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_dac_sig_curve_secp256k1/pai-Cert.der b/credentials/development/commissioner_dut/struct_dac_sig_curve_secp256k1/pai-Cert.der new file mode 100644 index 0000000000000000000000000000000000000000..f79a2182e84fa2fdcb3d7b14b802a5abf3b8458a GIT binary patch literal 449 zcmXqLV%%%c#F(;xnTe5!i6dKxUGHgh=>h{THV&;ek8`#x%uEIbh7ty1Y|No7%sl+Q zi6teeMG7IQ#U%;>j*f;R210CH+H8z0j7^Jbm>79j+}zv@4HU$Ajf@OTj0_+kN`l`K z2n>ykfymU-)G`W>nVvYzj5H8tV+Xs5i4p2JW=3{qCk7UMu|;`>&MvZcGHw|kEEpx9 z{XE;Nb^kX1?PKqQ8UwU1Mp$ATz1RM{_*0CEP4MLmCIy|A4Oez#g}mum9m4vo;Yd!; Uxs#`-MjVTE_gw#|U17Qr0I9-@761SM literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_sig_curve_secp256k1/pai-Cert.pem b/credentials/development/commissioner_dut/struct_dac_sig_curve_secp256k1/pai-Cert.pem new file mode 100644 index 00000000000000..03125aff2c1265 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_sig_curve_secp256k1/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBvTCCAWSgAwIBAgIIaxIHLuVbdaAwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowMDEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTBZMBMGByqGSM49AgEGCCqGSM49AwEH +A0IABC8Wom5xQ0QdPhxGaPA4ARnm+c2NKt/bD9vG71KBUCvRWDuJctqOBQDWJkiq +pz7ftO7EVoP+yvuZzyJPXf44cqmjZjBkMBIGA1UdEwEB/wQIMAYBAf8CAQEwDgYD +VR0PAQH/BAQDAgEGMB0GA1UdDgQWBBQyrdKP54gI4GNVq0HygZeYsvJbkDAfBgNV +HSMEGDAWgBRq/SJ3H1Ef7L8WQZdnENzcMaFxfjAKBggqhkjOPQQDAgNHADBEAiAr +NMvv4qqBwZdQGqfDMyt4uIoYjSrvK/Oj8lwkPFPTaAIgLISw1LhqVOyMq1QF5oDE +bIzOycuVWMZdR0mv4ocglzI= +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_dac_sig_curve_secp256k1/pai-Key.der b/credentials/development/commissioner_dut/struct_dac_sig_curve_secp256k1/pai-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..91b21aa1d218b5f01d7885c85702d7a270775221 GIT binary patch literal 121 zcmV-<0EYiCcLD(c1RyE+Ttk;i;AT#(Yl0BpWMIvPe;PeJpGh#*Hb8VaSUZVw+KvSP b)+R`*r#|1b?!;Du{>uBA&mvD<{y1`}qMI^^ literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_sig_curve_secp256k1/pai-Key.pem b/credentials/development/commissioner_dut/struct_dac_sig_curve_secp256k1/pai-Key.pem new file mode 100644 index 00000000000000..776e2c07d4ee34 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_sig_curve_secp256k1/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEICn4XEOXSuBmTq1rghDfZGDNhn8aPTyfSTDWNkB0XjasoAoGCCqGSM49 +AwEHoUQDQgAELxaibnFDRB0+HEZo8DgBGeb5zY0q39sP28bvUoFQK9FYO4ly2o4F +ANYmSKqnPt+07sRWg/7K+5nPIk9d/jhyqQ== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_dac_sig_curve_secp256k1/test_case_vector.json b/credentials/development/commissioner_dut/struct_dac_sig_curve_secp256k1/test_case_vector.json new file mode 100644 index 00000000000000..c458dac01e50f3 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_sig_curve_secp256k1/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "DAC Test Vector: Invalid certificate public key curve secp256k1", + "is_success_case": "false", + "dac_cert": "308201cc30820171a003020102020823781e884f2de5cb300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303056301006072a8648ce3d020106052b8104000a0342000457229e0b0504b18de61384763f29906143f365608fafec325013356740e70ee9bb5394417e3258ef472ef1258ff8eb86fa89d6cae142f8885b39904a62c3f90ea360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e0416041441e54de5ba7f269aa6cad650d6afc13a9df4abdc301f0603551d2304183016801432add28fe78808e06355ab41f2819798b2f25b90300a06082a8648ce3d0403020349003046022100a420f91d08d9cfb2e6776de6604c033d7b86052b03fa71f7dda1dce7d40c63d3022100d0919d4e06a793036ff6e5188b5167232327eeece7e4ef3d42781a4431339dd0", + "pai_cert": "308201bd30820164a00302010202086b12072ee55b75a0300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313059301306072a8648ce3d020106082a8648ce3d030107034200042f16a26e7143441d3e1c4668f0380119e6f9cd8d2adfdb0fdbc6ef5281502bd1583b8972da8e0500d62648aaa73edfb4eec45683fecafb99cf224f5dfe3872a9a366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e0416041432add28fe78808e06355ab41f2819798b2f25b90301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d040302034700304402202b34cbefe2aa81c197501aa7c3332b78b88a188d2aef2bf3a3f25c243c53d36802202c84b0d4b86a54ec8cab5405e680c46c8ccec9cb9558c65d4749afe287209732", + "certification_declaration": "3081e906092a864886f70d010702a081db3081d8020103310d300b0609608648016503040201304506092a864886f70d010701a0380436152400012501f1ff360205008018250334122c04135a494732303134315a423333303030312d32342405002406002507769824080018317d307b020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d0403020447304502207e3b4477a2e4e088d2f8eadf2d4c3242249a12adf9a96e7a153ddfcbb50514bb022100c3f3b4c2f2825e0a45da13a94dac4cdfc882e04eab6866fb7e9b5d5d9c98ecc6", + "dac_private_key": "864c3d8452a00308db8f988f254a610f6278f175132d845177b93ab13b5b15e6", + "dac_public_key": "0457229e0b0504b18de61384763f29906143f365608fafec325013356740e70ee9bb5394417e3258ef472ef1258ff8eb86fa89d6cae142f8885b39904a62c3f90e" +} diff --git a/credentials/development/commissioner_dut/struct_dac_subject_pid_mismatch/cd.der b/credentials/development/commissioner_dut/struct_dac_subject_pid_mismatch/cd.der new file mode 100644 index 0000000000000000000000000000000000000000..d62a4c29240228f1343a6ac85a49bf289593640c GIT binary patch literal 237 zcmXqLe8tA8)#lOmotKfFX+h&1gT|XojLe3-2Hb3%32h#Xsmv@)j0Ua022l-UYT7Po$p$D*5{Nnmmty^peH}@o&Yww&yUP Ud@ODJNZ|Fajf)TN-?{K906~XK=l}o! literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_subject_pid_mismatch/dac-Cert.der b/credentials/development/commissioner_dut/struct_dac_subject_pid_mismatch/dac-Cert.der new file mode 100644 index 0000000000000000000000000000000000000000..778edb359d072fa23a43bf6e839581308263c6b0 GIT binary patch literal 466 zcmXqLVmxQi#8|R`nTe5!i6dDxao2Ynv1tZeY#dr`9_MUXn3)U=3?&T2*qB3En0fep z6H7``ixfgqi%S#&96b$1420OYwAmP07@HQ=FfsD5xVgC*8YqbK8W|aw7#To7lmx#e z5EvR61Cgnvsb!Rb8xAvF9G$V7i6+X#!(st+m_ek0FdIAArA&-aCo?m$GdnS`9QiY= z`mVOdmy?Unh5CCl)oq&oxBHkpUzo+ka~mdI``NE0(ILlrU(LdM>RHWcc3T;lLpDo3 zt6XHbGCpp()}+hfixUju40wRvmKA1X{LjKj2J#~?mcH950X}90R~=!$n4w+L5<&+9X~qh>f7l~2T$*kt-XaD z$jlxL2Chts40F$F-PuFtrB&@*a=? literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_subject_pid_mismatch/dac-Cert.pem b/credentials/development/commissioner_dut/struct_dac_subject_pid_mismatch/dac-Cert.pem new file mode 100644 index 00000000000000..16f7c7c0f8a1f3 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_subject_pid_mismatch/dac-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBzjCCAXSgAwIBAgIIYyVhuvc8FpYwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +REFDMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDEw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAATE/Jp73Sso9MmjzlVPSwJ+spf9i8Yf +DlY40c6wktb5jyoYiB4F3yY4S5XNKZY+tQEDVLMZ5nmiMalfXqcqktNXo2AwXjAM +BgNVHRMBAf8EAjAAMA4GA1UdDwEB/wQEAwIHgDAdBgNVHQ4EFgQUksnOi9WJgFbl +8g/ZS8gyAPIJvc4wHwYDVR0jBBgwFoAUm22QUoH3psfFktXtl0LBy7odfdowCgYI +KoZIzj0EAwIDSAAwRQIhAJ3NKty+dRXX2clrR0ozjfXnkQHBq2blSWRLm4ZeOvl/ +AiASOjPUNJL9QJo8DY0HZK6mUDLtsyF3ReRrI8eX/rCVjA== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_dac_subject_pid_mismatch/dac-Key.der b/credentials/development/commissioner_dut/struct_dac_subject_pid_mismatch/dac-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..f7cec17297de125479f7e676abc2dfb0ff019d8a GIT binary patch literal 121 zcmV-<0EYiCcLD(c1R%|Yt( bOO?$jmOixs15~pa=6Rwqsb5~FDw5MzQe83l literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_subject_pid_mismatch/dac-Key.pem b/credentials/development/commissioner_dut/struct_dac_subject_pid_mismatch/dac-Key.pem new file mode 100644 index 00000000000000..155a704febdc35 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_subject_pid_mismatch/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIM2swOQYQ/2jsNUhg1U0tTdNQ+2BMQclGD7yTEBxPjNooAoGCCqGSM49 +AwEHoUQDQgAExPyae90rKPTJo85VT0sCfrKX/YvGHw5WONHOsJLW+Y8qGIgeBd8m +OEuVzSmWPrUBA1SzGeZ5ojGpX16nKpLTVw== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_dac_subject_pid_mismatch/pai-Cert.der b/credentials/development/commissioner_dut/struct_dac_subject_pid_mismatch/pai-Cert.der new file mode 100644 index 0000000000000000000000000000000000000000..b17c34934ce4a9c124ed8795f7211229d60b3052 GIT binary patch literal 451 zcmXqLV%%@g#F(;xnTe5!iG#J^k-CFzOpH7%Zfj#0Yg9Gb1~*69dbHRr~KrZThpIaMeNa>#q+7 zTlE&*R{j>6^WkRL{~OPK-(`tqKJejX^r6dTZ=Fh?*349>?AvgE%G~w`%TL$+T6)}X zahgF2&>PI5vcimv|5-Q;*nkuhBclNyNQ@sO1`Gy9HUn7@pN~b1MPzpFgrLUn%Z?wN zboK3Yr-P?=$=2R7kOxUCvj79DK_u(1Qn`Gf{G0t^j?>cx?%Xk4SXhS~sLY-W25wA> z3{Af~L~nlk#4ciS#^mUy)Ar5b-8)Mk3UYYdaoRG){G$#~NvEm8F226v?bd9JpMJl1 X%=6^j#D*pE*EP4U3JzcNv9k;SY-5ug literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_subject_pid_mismatch/pai-Cert.pem b/credentials/development/commissioner_dut/struct_dac_subject_pid_mismatch/pai-Cert.pem new file mode 100644 index 00000000000000..041b310ec86919 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_subject_pid_mismatch/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBvzCCAWSgAwIBAgIIBXDiJyo/giAwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowMDEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTBZMBMGByqGSM49AgEGCCqGSM49AwEH +A0IABJCqv94asvygcarBF9frw1M6jXLbI/ZVbPDZVv/Y5vvdBF0DwPDpW8LTdu1C +deV8mSB5jrDflJ2H4KfLfvqlx06jZjBkMBIGA1UdEwEB/wQIMAYBAf8CAQEwDgYD +VR0PAQH/BAQDAgEGMB0GA1UdDgQWBBSbbZBSgfemx8WS1e2XQsHLuh192jAfBgNV +HSMEGDAWgBRq/SJ3H1Ef7L8WQZdnENzcMaFxfjAKBggqhkjOPQQDAgNJADBGAiEA +gvuIFdn28gcUOMw0xfLLP4NXi7l14REISNxCtJQ38SwCIQCJNSC6Do5ztzsGAfL7 +6OMM5M6RgKQf1ym1qlNXovGJdg== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_dac_subject_pid_mismatch/pai-Key.der b/credentials/development/commissioner_dut/struct_dac_subject_pid_mismatch/pai-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..57d1e35108f0aa94abd20b05e58f3da7dc6b164e GIT binary patch literal 121 zcmV-<0EYiCcLD(c1R$U|?;-!yH0Ool&QI_R>GohSE~1~o)1SAbF0k-;|w);HS%e`lZKCn1nu_ literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_subject_pid_mismatch/pai-Key.pem b/credentials/development/commissioner_dut/struct_dac_subject_pid_mismatch/pai-Key.pem new file mode 100644 index 00000000000000..5ee1f9608fe222 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_subject_pid_mismatch/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIKA47yH/1TTnheLOT/AM6fZgMC6in8HlLdm5cmZMFcOloAoGCCqGSM49 +AwEHoUQDQgAEkKq/3hqy/KBxqsEX1+vDUzqNctsj9lVs8NlW/9jm+90EXQPA8Olb +wtN27UJ15XyZIHmOsN+UnYfgp8t++qXHTg== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_dac_subject_pid_mismatch/test_case_vector.json b/credentials/development/commissioner_dut/struct_dac_subject_pid_mismatch/test_case_vector.json new file mode 100644 index 00000000000000..809193398371cf --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_subject_pid_mismatch/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "DAC Test Vector: PID in Subject field doesn't match PID in Issuer field", + "is_success_case": "false", + "dac_cert": "308201ce30820174a0030201020208632561baf73c1696300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030313059301306072a8648ce3d020106082a8648ce3d03010703420004c4fc9a7bdd2b28f4c9a3ce554f4b027eb297fd8bc61f0e5638d1ceb092d6f98f2a18881e05df26384b95cd29963eb5010354b319e679a231a95f5ea72a92d357a360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e0416041492c9ce8bd5898056e5f20fd94bc83200f209bdce301f0603551d230418301680149b6d905281f7a6c7c592d5ed9742c1cbba1d7dda300a06082a8648ce3d04030203480030450221009dcd2adcbe7515d7d9c96b474a338df5e79101c1ab66e549644b9b865e3af97f0220123a33d43492fd409a3c0d8d0764aea65032edb3217745e46b23c797feb0958c", + "pai_cert": "308201bf30820164a00302010202080570e2272a3f8220300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313059301306072a8648ce3d020106082a8648ce3d0301070342000490aabfde1ab2fca071aac117d7ebc3533a8d72db23f6556cf0d956ffd8e6fbdd045d03c0f0e95bc2d376ed4275e57c9920798eb0df949d87e0a7cb7efaa5c74ea366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e041604149b6d905281f7a6c7c592d5ed9742c1cbba1d7dda301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d040302034900304602210082fb8815d9f6f2071438cc34c5f2cb3f83578bb975e1110848dc42b49437f12c022100893520ba0e8e73b73b0601f2fbe8e30ce4ce9180a41fd729b5aa5357a2f18976", + "certification_declaration": "3081ea06092a864886f70d010702a081dc3081d9020103310d300b0609608648016503040201304506092a864886f70d010701a0380436152400012501f1ff360205008018250334122c04135a494732303134315a423333303030312d32342405002406002507769824080018317e307c020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d0403020448304602210091d00b7a0a27f30bdb3b4ff6b6ffbb7c27c5ffce8775ed1c020da03dd1c867ca022100f5fdd61f0c101ba481a05fed174ab76c03c9e31b33e210ebfab1a3c1bfb9a1e5", + "dac_private_key": "cdacc0e41843fda3b0d521835534b5374d43ed81310725183ef24c40713e3368", + "dac_public_key": "04c4fc9a7bdd2b28f4c9a3ce554f4b027eb297fd8bc61f0e5638d1ceb092d6f98f2a18881e05df26384b95cd29963eb5010354b319e679a231a95f5ea72a92d357" +} diff --git a/credentials/development/commissioner_dut/struct_dac_subject_vid_mismatch/cd.der b/credentials/development/commissioner_dut/struct_dac_subject_vid_mismatch/cd.der new file mode 100644 index 0000000000000000000000000000000000000000..98aeace7f48cd35c1c04a712b6dd55b6c21b3c58 GIT binary patch literal 236 zcmXqLe96YC)#lOmotKfFX+h&{gT@<7jLe3-2Hb3%32h#Xsmv@)j0Ua#tMdU%n&LJa_VPv28(`R&`8@3=5|${Zf+^SHM#|FzOpH7%Zfje%!o12;tj+qD_Q#aZ zEb}EN*X{c^hkNqF#R&#+20TD-%L+3x{%2t_U@+hV@%TYJV6d<^7|4S7d@N!tA`$5lOn^jbHdA5gR)hm d%MCvk{5aj9Xtu56n|z4Rd#TO54~vg41_1e_iMId% literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_subject_vid_mismatch/dac-Cert.pem b/credentials/development/commissioner_dut/struct_dac_subject_vid_mismatch/dac-Cert.pem new file mode 100644 index 00000000000000..db23faf1e61a05 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_subject_vid_mismatch/dac-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBzjCCAXSgAwIBAgIIGC0sZXdJdd0wCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +REFDMRQwEgYKKwYBBAGConwCAQwERkZGMjEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAATV4LyDUYxmE+mUrwx8wNvPo32VufUj +6VLXyuvG6aQiJlaogwJN7SRBMng3ekkWhjv6K/Fk8wSfGZN+vv6cC5Pho2AwXjAM +BgNVHRMBAf8EAjAAMA4GA1UdDwEB/wQEAwIHgDAdBgNVHQ4EFgQUWP4y9aAsNCMn +gslWYYHIH2p8UtQwHwYDVR0jBBgwFoAUQwpuurKnWy4kLDtmO7INTT6YKoswCgYI +KoZIzj0EAwIDSAAwRQIgGAup276bZJ2IBUhYui7FOnGO3+BQcHW4i32URKm8jS8C +IQDmzhOmBVJrJBt3MfFw+MuAITa2iPYfVEzvGrMN4XPHow== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_dac_subject_vid_mismatch/dac-Key.der b/credentials/development/commissioner_dut/struct_dac_subject_vid_mismatch/dac-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..459e8c91f14c874f8cba113702f3414d8ca265ab GIT binary patch literal 121 zcmV-<0EYiCcLD(c1RzejQ5dKJ+-M}=KfbIlgjUkt)}e)g6EVwe8Ah!qkWaR^&{z0*UIb0>7*hiR;YslP3 bGI%$7Nfw4X`YZ8d^8}w6lYYMboC}lTl65!e literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_subject_vid_mismatch/dac-Key.pem b/credentials/development/commissioner_dut/struct_dac_subject_vid_mismatch/dac-Key.pem new file mode 100644 index 00000000000000..8702b4b9be0655 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_subject_vid_mismatch/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIE66URioAdxoJOA/vqwvhFbS3tahhYHkfDGU++vlBegIoAoGCCqGSM49 +AwEHoUQDQgAE1eC8g1GMZhPplK8MfMDbz6N9lbn1I+lS18rrxumkIiZWqIMCTe0k +QTJ4N3pJFoY7+ivxZPMEnxmTfr7+nAuT4Q== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_dac_subject_vid_mismatch/pai-Cert.der b/credentials/development/commissioner_dut/struct_dac_subject_vid_mismatch/pai-Cert.der new file mode 100644 index 0000000000000000000000000000000000000000..28b123b7f94b589b5bd960bd3065d94ec34cda62 GIT binary patch literal 450 zcmXqLV%%rY#F(;xnTe5!iNpNN;V}7-2Lc9MY#dr`9_MUXn3)U=3?&T2*qB3En0fep z6H7``ixfgqi%S#&932fs420OYwAmP07@HQ=FfsD5xVgC*8YqbK8W|aw7#To7lmx#e z5EvR61Cgnvsbv%%Gd*#b8EGKQ#twE96C>1d%#7^JP7ExM_$Rj?P$x{XQ%he8I;{>G`5J1&xnqWk{DT zPBTaWdV@JsR+y3TKMRKe8<1jRWHjIdiSdKPfWg4XW*`gV^RbArh&XfQ?b@_FT2DpC zI?Z|$udm$TS%LmH8*)QfeJze0=9m9o%b;yCr?7?8*%A}xP zSe@DVc!$rU^k4}I?zW4CQg0?E3b!^IedsQ+50>j>Qe;?gxMcOZv-|V!E%j)*&8Jjz VBj{<~;iDhZgQlLiQQbXB8~~t{iIV^T literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_subject_vid_mismatch/pai-Cert.pem b/credentials/development/commissioner_dut/struct_dac_subject_vid_mismatch/pai-Cert.pem new file mode 100644 index 00000000000000..0e16d878598610 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_subject_vid_mismatch/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBvjCCAWSgAwIBAgIIN8zDVh9U4BAwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowMDEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTBZMBMGByqGSM49AgEGCCqGSM49AwEH +A0IABOIPk4fAJuHA1+0dKwe68qNt0SLeDHCgod/6M19UV+BSmFjdssS2vYYpVvXo +lxL7wxFT0ExKIuei7HCB45poG3ajZjBkMBIGA1UdEwEB/wQIMAYBAf8CAQEwDgYD +VR0PAQH/BAQDAgEGMB0GA1UdDgQWBBRDCm66sqdbLiQsO2Y7sg1NPpgqizAfBgNV +HSMEGDAWgBRq/SJ3H1Ef7L8WQZdnENzcMaFxfjAKBggqhkjOPQQDAgNIADBFAiAn +cXtpieO4TOJnUxgYC4bRcRrskWEThYEy8It0P1MeiQIhAKDDdKuuzb9v3qVIhNsO +InzYUuVuw8XxZ1KVyNh7i5IX +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_dac_subject_vid_mismatch/pai-Key.der b/credentials/development/commissioner_dut/struct_dac_subject_vid_mismatch/pai-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..209bd28cb525ee4831d7191bacac79e330b09cc1 GIT binary patch literal 121 zcmV-<0EYiCcLD(c1RxXu2YyqWAqHaA?-%H2G~RuvuC~h&z2tJvWGj2I#~+{y1_&yK zNX|V20SBQ(13~}<;t!LDz$W3q*XK-}*COR9E0qm{{Gi#J0VL bDOUC9mlFHK5mV4iN+Rc?>~MkOnrIt#!In1m literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_dac_subject_vid_mismatch/pai-Key.pem b/credentials/development/commissioner_dut/struct_dac_subject_vid_mismatch/pai-Key.pem new file mode 100644 index 00000000000000..90e7351d48c60b --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_subject_vid_mismatch/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIBQAB35TnCEGYtXvF+hnNN59qK62yxG95HLOZCt7sccfoAoGCCqGSM49 +AwEHoUQDQgAE4g+Th8Am4cDX7R0rB7ryo23RIt4McKCh3/ozX1RX4FKYWN2yxLa9 +hilW9eiXEvvDEVPQTEoi56LscIHjmmgbdg== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_dac_subject_vid_mismatch/test_case_vector.json b/credentials/development/commissioner_dut/struct_dac_subject_vid_mismatch/test_case_vector.json new file mode 100644 index 00000000000000..ec920a4e0b5146 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_subject_vid_mismatch/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "DAC Test Vector: VID in Subject field doesn't match VID in Issuer field", + "is_success_case": "false", + "dac_cert": "308201ce30820174a0030201020208182d2c65774975dd300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463231143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004d5e0bc83518c6613e994af0c7cc0dbcfa37d95b9f523e952d7caebc6e9a4222656a883024ded24413278377a4916863bfa2bf164f3049f19937ebefe9c0b93e1a360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e0416041458fe32f5a02c34232782c9566181c81f6a7c52d4301f0603551d23041830168014430a6ebab2a75b2e242c3b663bb20d4d3e982a8b300a06082a8648ce3d04030203480030450220180ba9dbbe9b649d88054858ba2ec53a718edfe0507075b88b7d9444a9bc8d2f022100e6ce13a605526b241b7731f170f8cb802136b688f61f544cef1ab30de173c7a3", + "pai_cert": "308201be30820164a003020102020837ccc3561f54e010300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313059301306072a8648ce3d020106082a8648ce3d03010703420004e20f9387c026e1c0d7ed1d2b07baf2a36dd122de0c70a0a1dffa335f5457e0529858ddb2c4b6bd862956f5e89712fbc31153d04c4a22e7a2ec7081e39a681b76a366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e04160414430a6ebab2a75b2e242c3b663bb20d4d3e982a8b301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d0403020348003045022027717b6989e3b84ce2675318180b86d1711aec916113858132f08b743f531e89022100a0c374abaecdbf6fdea54884db0e227cd852e56ec3c5f1675295c8d87b8b9217", + "certification_declaration": "3081e906092a864886f70d010702a081db3081d8020103310d300b0609608648016503040201304506092a864886f70d010701a0380436152400012501f1ff360205008018250334122c04135a494732303134315a423333303030312d32342405002406002507769824080018317d307b020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d04030204473045022050e897792b88f626d2d23f766eacef2fae220fa7b869376d93a716b652293a7e022100a194a5f47c6a5e700c7398f5df07dbfdcff2aec25e70c488796b6bd4b813763b", + "dac_private_key": "4eba5118a801dc6824e03fbeac2f8456d2ded6a18581e47c3194fbebe505e808", + "dac_public_key": "04d5e0bc83518c6613e994af0c7cc0dbcfa37d95b9f523e952d7caebc6e9a4222656a883024ded24413278377a4916863bfa2bf164f3049f19937ebefe9c0b93e1" +} diff --git a/credentials/development/commissioner_dut/struct_pai_cert_version_v2/cd.der b/credentials/development/commissioner_dut/struct_pai_cert_version_v2/cd.der new file mode 100644 index 0000000000000000000000000000000000000000..d778884e3d30058b743f508db2f093194fb7cce0 GIT binary patch literal 236 zcmXqLe96YC)#lOmotKfFX+h&{gT@<7jLe3-2Hb3%32h#Xsmv@)j0Uaj-G}h210CH+H8z0j7^Jbm>79j+}zv@4HU$Ajf@OTj0_+kN`l`K z2n>ykfymU-)H2Gz4TqU7j?UQ4L=$D=VX*)i9%&%V#twEV6C>2g%#7^JP7EyJ(|>Zf zXJ5S%5T@<4sByuR`bx2zXKyUp68K1uaoIwn${Pt)+IZq>yxIXJ8gjc;qu{m6|&>Y%ibHRyW=;zk71y^etkE{7(d#6dAV1q|S+7SMp-x co!!QZndgcu;HYi%4by*_zu#2*#g5eJ0Mx*XWdHyG literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_cert_version_v2/dac-Cert.pem b/credentials/development/commissioner_dut/struct_pai_cert_version_v2/dac-Cert.pem new file mode 100644 index 00000000000000..d19bbbc85d7586 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_cert_version_v2/dac-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBzjCCAXSgAwIBAgIICAlLtkhCW7AwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +REFDMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAARXl/kIR2vV1FBWK0KigaCUf3kW2c3Y +orRR4i4BpqEyedhgegtOwGy+P+MU14rR+UYsBIShAM5GPWAaQqsw2krwo2AwXjAM +BgNVHRMBAf8EAjAAMA4GA1UdDwEB/wQEAwIHgDAdBgNVHQ4EFgQUg63TjfAbkMiV +dobJKDIpb49cTPAwHwYDVR0jBBgwFoAUKJbJZKBWst3K0Wz0RToQ3eZiQi4wCgYI +KoZIzj0EAwIDSAAwRQIgYsK5UWoMV1nmOyR83HwG6eZ9e4HcN93JsZe0FmEP5BEC +IQC3XGWcX6506LHcuzOjA50UoAh9gU1WL+lvvzUr6Lhllw== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_pai_cert_version_v2/dac-Key.der b/credentials/development/commissioner_dut/struct_pai_cert_version_v2/dac-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..b1d69f662c40329aceb7b27f61fc41af6c9a4695 GIT binary patch literal 121 zcmV-<0EYiCcLD(c1Rz}9A&BeDbf-T#gn?`>1(j@9~w9M>Fgd742qx%1_&yK zNX|V20SBQ(13~}ZWJFxpD+f`Kz3 literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_cert_version_v2/dac-Key.pem b/credentials/development/commissioner_dut/struct_pai_cert_version_v2/dac-Key.pem new file mode 100644 index 00000000000000..5c0db1110e15b2 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_cert_version_v2/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIFzdIcrGZ0c5gSYp0hIPxZO65ulrsPEfGjf66eweEgyKoAoGCCqGSM49 +AwEHoUQDQgAEV5f5CEdr1dRQVitCooGglH95FtnN2KK0UeIuAaahMnnYYHoLTsBs +vj/jFNeK0flGLASEoQDORj1gGkKrMNpK8A== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_pai_cert_version_v2/pai-Cert.der b/credentials/development/commissioner_dut/struct_pai_cert_version_v2/pai-Cert.der new file mode 100644 index 0000000000000000000000000000000000000000..a65a6aa75202dce69ef237f74d345545d546a0a3 GIT binary patch literal 449 zcmXqLV%%%c#F(;xnTe5+i6ddnZ{>NboZ}6+*f_M>JkHs&Ff$n#7)lt3u`!3TF!S*H zCYF?>7Ab_J7MCalI64}N7znX(X|pl1Fg7i!VPfQAadUGsG*A%dH8L_VF*1OFC<%T` zATTsC1|m~SQ_CnkW_scJobofufWZV4USe&>Xc>?5UB-*acO zv^{w@kJBkC`*M-p!dMks);~AdCmBfm{7}8wbDgs17cqH7xi7c;k_v8?TRE@yc(Gw| znn4QC8_c1y!im7|7%nWVLk?7CcLoC&CWRVl z!R0?3pP26Xn>F)LLg?AWzg*vETolwVTR*{#vp>IwNr69O+x_a0XQpCD3+BxF$f@m} T%IIdtJD2yf<>a+uiCY-~nmmT7 literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_cert_version_v2/pai-Cert.pem b/credentials/development/commissioner_dut/struct_pai_cert_version_v2/pai-Cert.pem new file mode 100644 index 00000000000000..972d760ce2045b --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_cert_version_v2/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBvTCCAWSgAwIBAQIIYKz7I56qQ18wCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowMDEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTBZMBMGByqGSM49AgEGCCqGSM49AwEH +A0IABEraEsG33MgSHeIiqvdtmQSG5O6eCUJaa9NyPqFdJD0F/NkHkjAY+fB7s0mu +I0n0Fh8hHvTaTmJw2Xc6Q69I6LCjZjBkMBIGA1UdEwEB/wQIMAYBAf8CAQEwDgYD +VR0PAQH/BAQDAgEGMB0GA1UdDgQWBBQolslkoFay3crRbPRFOhDd5mJCLjAfBgNV +HSMEGDAWgBRq/SJ3H1Ef7L8WQZdnENzcMaFxfjAKBggqhkjOPQQDAgNHADBEAiB8 +GxGn+EHkNbz9apnCYFXNo/pF72jRES92r5BGCY9vjAIgD2i233tU5jUWxXCcmvEJ +K0tlAUY+DZ0N8zmTrRZhtQE= +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_pai_cert_version_v2/pai-Key.der b/credentials/development/commissioner_dut/struct_pai_cert_version_v2/pai-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..fd1cfd8385346d3c64c505871021a60c1613d9b8 GIT binary patch literal 121 zcmV-<0EYiCcLD(c1Rz;b-TQ9-9oL9{*>^fauSn>y&zdvc literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_cert_version_v2/pai-Key.pem b/credentials/development/commissioner_dut/struct_pai_cert_version_v2/pai-Key.pem new file mode 100644 index 00000000000000..492f422a4c5fcf --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_cert_version_v2/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIFlS3ftu/h3XnZV3IdOtaL3vCK1g438DNxART9CDvm45oAoGCCqGSM49 +AwEHoUQDQgAEStoSwbfcyBId4iKq922ZBIbk7p4JQlpr03I+oV0kPQX82QeSMBj5 +8HuzSa4jSfQWHyEe9NpOYnDZdzpDr0josA== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_pai_cert_version_v2/test_case_vector.json b/credentials/development/commissioner_dut/struct_pai_cert_version_v2/test_case_vector.json new file mode 100644 index 00000000000000..4bf9fa0697b35b --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_cert_version_v2/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "PAI Test Vector: Invalid certificate version field set to v2(1)", + "is_success_case": "false", + "dac_cert": "308201ce30820174a003020102020808094bb648425bb0300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d030107034200045797f908476bd5d450562b42a281a0947f7916d9cdd8a2b451e22e01a6a13279d8607a0b4ec06cbe3fe314d78ad1f9462c0484a100ce463d601a42ab30da4af0a360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e0416041483add38df01b90c8957686c92832296f8f5c4cf0301f0603551d230418301680142896c964a056b2ddcad16cf4453a10dde662422e300a06082a8648ce3d0403020348003045022062c2b9516a0c5759e63b247cdc7c06e9e67d7b81dc37ddc9b197b416610fe411022100b75c659c5fae74e8b1dcbb33a3039d14a0087d814d562fe96fbf352be8b86597", + "pai_cert": "308201bd30820164a003020101020860acfb239eaa435f300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313059301306072a8648ce3d020106082a8648ce3d030107034200044ada12c1b7dcc8121de222aaf76d990486e4ee9e09425a6bd3723ea15d243d05fcd907923018f9f07bb349ae2349f4161f211ef4da4e6270d9773a43af48e8b0a366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e041604142896c964a056b2ddcad16cf4453a10dde662422e301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d040302034700304402207c1b11a7f841e435bcfd6a99c26055cda3fa45ef68d1112f76af9046098f6f8c02200f68b6df7b54e63516c5709c9af1092b4b6501463e0d9d0df33993ad1661b501", + "certification_declaration": "3081e906092a864886f70d010702a081db3081d8020103310d300b0609608648016503040201304506092a864886f70d010701a0380436152400012501f1ff360205008018250334122c04135a494732303134315a423333303030312d32342405002406002507769824080018317d307b020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d04030204473045022100c30e031e12d3d890b9619084f2085b6e1d90116536e5f76738d41fa51fb53619022042738ca2e1e4418427417e49b1eb716db6eff97bd2d9a800f5404e33ba365387", + "dac_private_key": "5cdd21cac6674739812629d2120fc593bae6e96bb0f11f1a37fae9ec1e120c8a", + "dac_public_key": "045797f908476bd5d450562b42a281a0947f7916d9cdd8a2b451e22e01a6a13279d8607a0b4ec06cbe3fe314d78ad1f9462c0484a100ce463d601a42ab30da4af0" +} diff --git a/credentials/development/commissioner_dut/struct_pai_cert_version_v3/cd.der b/credentials/development/commissioner_dut/struct_pai_cert_version_v3/cd.der new file mode 100644 index 0000000000000000000000000000000000000000..6510d758d6e1a22183f3380f04c614ba17e7effb GIT binary patch literal 236 zcmXqLe96YC)#lOmotKfFX+h&{gT@<7jLe3-2Hb3%32h#Xsmv@)j0UaJkHs&Ff$n#7)lt3u`!3TF!S*H zCYF?>7Ab_J7MCalIC>h27znX(X|pl1Fg7i!VPfQAadUGsG*A%dH8L_VF*1OFC<%T` zATTsC1|m~SQ_Cm=HymcVI67lD6HSzfhs6S9c%*?a8#~ygOpH(`Gc&R?J29|Cn^n06 z8s3?3T%s>)S8<%_c_Eir&t>B0ivJsIzFy0d+shl_{HWSY?^m}=USDp|4EL=pERyvM zDO$davHE8}*ey;lh%?{;dRtbQk?}tZlL3PPABe{f;sJw&y}>{h#OGrXV-d-H7FZr; zRu~W~eE#CDclz6R-!UyVkOxUCvj79HL4?_x;Y8$K^J4pjZga9FuB+LEW-dbxWM&Tr z16L+RhHuOM?{;2$GXB}xUy=)Tq*788dt&=PM4jDzY`f~*j*HWn6lArwwtW)nJ3VL4 boR=|s^UXzO-fW)x=bwsTLrr&A(X(y<)nAFK literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_cert_version_v3/dac-Cert.pem b/credentials/development/commissioner_dut/struct_pai_cert_version_v3/dac-Cert.pem new file mode 100644 index 00000000000000..ac2b0964ce8867 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_cert_version_v3/dac-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBzjCCAXSgAwIBAgIISFfX5j7PwncwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +REFDMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAARbNnpFUTHckMcYjmq6c141zxJEXUmm +F85z/zCz130MbY0NWEPiezYu+otEbo5tUphHtQQEGX8AZCpNAV0vzfA+o2AwXjAM +BgNVHRMBAf8EAjAAMA4GA1UdDwEB/wQEAwIHgDAdBgNVHQ4EFgQUbeZRd1Y2cVBd +E8/Ruu4vt7vcNXMwHwYDVR0jBBgwFoAUA0sAyFm9N3M/oUacaxjXJjxVaaYwCgYI +KoZIzj0EAwIDSAAwRQIhAPam/7tDrclf5q36GaEsGmRkIYxdj/BazbvGtyWdiNGW +AiAdKrWG8hKOy5ycnOlcvW83FJnZg538/iQRgHyLinLmiw== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_pai_cert_version_v3/dac-Key.der b/credentials/development/commissioner_dut/struct_pai_cert_version_v3/dac-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..0e6ed2251293276932e0132d234d1b16c521e67b GIT binary patch literal 121 zcmV-<0EYiCcLD(c1Ry?VgX|=`lp1+Ra7CveG46J^`jCq@dzw(VsMT2WJ>{SZ1_&yK zNX|V20SBQ(13~}1d%#7^JP7Ewrp+Ek|>R!3w-mehEe5S?J ztT(K@N+hn1VWp+B`kUG*wFUD`ZFRRj>Y6rT-iIT1YFl3Smz-XwHIaMfv7#BfmTg^} zW{?8(26L#aFeBrC77hb8AjQPUXut;&;|GZWgMpFFKo-R3V-aH!VfJP?5xLjA*nXkg zoNS5fYBr&n%M9c}(#kBrz-kc5`m0nfA1ME3znJ6nbb&i}3>OyGAqOh62ZMntlR|uK zH)BYt>6xu%-;FJ1?K5bM?Oak_X<+`-^?K&*@K{48MTYy{o6cqzru_S?z`*u#@87SF UPRmdCdHSQHDq`>AcX@@+0iivL6aWAK literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_cert_version_v3/pai-Cert.pem b/credentials/development/commissioner_dut/struct_pai_cert_version_v3/pai-Cert.pem new file mode 100644 index 00000000000000..d1b515e7cbbade --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_cert_version_v3/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBvjCCAWSgAwIBAgIIW/tsGvPlBoAwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowMDEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTBZMBMGByqGSM49AgEGCCqGSM49AwEH +A0IABGpV+P9dLdTYR48gUgPMhDU2jVZ3ehRefgCpOUMn7H2UfXCeNT0ttuKKlpCe +8MTcfYTrj3TLriqRC5nGcpi6prWjZjBkMBIGA1UdEwEB/wQIMAYBAf8CAQEwDgYD +VR0PAQH/BAQDAgEGMB0GA1UdDgQWBBQDSwDIWb03cz+hRpxrGNcmPFVppjAfBgNV +HSMEGDAWgBRq/SJ3H1Ef7L8WQZdnENzcMaFxfjAKBggqhkjOPQQDAgNIADBFAiBf +XYsBVHU1zLV29zM4mr4wgV2JpHt5MDf5Rddp21ddMQIhAN9Lss1rcWT+8yAABvG9 +/fXiyx+XTOX4iHpYvaPubnHn +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_pai_cert_version_v3/pai-Key.der b/credentials/development/commissioner_dut/struct_pai_cert_version_v3/pai-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..8304a0243bd8b9e1886cbd25ef72594c58847895 GIT binary patch literal 121 zcmV-<0EYiCcLD(c1Ry}mG?tB{*H+NNM%PzX)zm2UvlBX{c3066auNB`@nfJ01_&yK zNX|V20SBQ(13~}-%UX1>Kzv8ZGW&%@(E8zQ%A=*;w)l T?5KF7K6B6ANoSfD+A#nCquEEP literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_ext_akid_missing/dac-Cert.der b/credentials/development/commissioner_dut/struct_pai_ext_akid_missing/dac-Cert.der new file mode 100644 index 0000000000000000000000000000000000000000..651eba7f8f629b089062e5687099437cabbfce0a GIT binary patch literal 467 zcmXqLVmxoq#8|R`nTe5!iKEQNuj-G}h210CH+H8z0j7^Jbm>79j+}zv@4HU$Ajf@OTj0_+kN`l`K z2n>ykfymU-)H2Gz4TqU7j?UQ4L=$D=VX*)i9%&%V#twEV6C>2g%#7^JP7EwFzgMU1 z{IIb4{n`Ud(skH5(yZ8u^%=w%48wP7oH=r!+0SCTn9v;7ZMRI?J6DL8`JBC;yw>&N zF5!07JawV4mnn-A4B`xUfZmoBW@P-&!eqc;zz5>-gLuGTVQ(;y1@ZY<#8^a1xQ-;p zsJ&l4kx}ZwcAfqkA4E#G8OVdAm05s+*B~;5?dh*o1@)e4Yu&!4h$l#{_o~~59LUU` z3l$eD(tXcN&EX literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_ext_akid_missing/dac-Cert.pem b/credentials/development/commissioner_dut/struct_pai_ext_akid_missing/dac-Cert.pem new file mode 100644 index 00000000000000..c5fb322462e6c0 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_akid_missing/dac-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBzzCCAXSgAwIBAgIIdkwxeuEn4yswCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +REFDMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAASZ93tkufChe++twKRnLAcIZjoGcy8A +FgAxV7kozMTAg044txYSnAW22jSHiagXdkzN12OtRdG6E4clbicSVulko2AwXjAM +BgNVHRMBAf8EAjAAMA4GA1UdDwEB/wQEAwIHgDAdBgNVHQ4EFgQUdArEY1wm76eR +ARrgtyyP2PAUdbYwHwYDVR0jBBgwFoAUlAbl+qpwf0kmrUb1ZBdgGa9KfrYwCgYI +KoZIzj0EAwIDSQAwRgIhAMaffE54k6NM/zFfDTPJLzuB1V2xPXatqgQNfyUIIHzI +AiEAmHUzJq6cUo38Kqrke22tBwt2eKk8PE/GTScN0n3Pa+A= +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_akid_missing/dac-Key.der b/credentials/development/commissioner_dut/struct_pai_ext_akid_missing/dac-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..1316331b2a7456d03c585a0578de0482beeba7f0 GIT binary patch literal 121 zcmV-<0EYiCcLD(c1RxFjlE6ra5bSJGh|Y61vBy4CDzkOsr$U0RL;_g-AlIM@1_&yK zNX|V20SBQ(13~}1d%#7^JP7EyP%x)~sZV=;PTergDqJQm! zjJw&71a2&-Q?KEY5y@_Jm0VF%%QTvjEw(TI1Jc;6cZz(0Ut<=A0!4021YgmSrDI(MT|vc3ft3Ps|xBp)z-Rw zO%YF!T<=x44LQu1JsAw#m=qb-2XlS7Dl7MNR$#0r3haSJW?9`!IhF`vXyvnM( qR2itG`$W^~v#%a)lr3FyHfPU&c|X~{nW5KM#Fm}oKf0WK&RPK0&3%&q literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_ext_akid_missing/pai-Cert.pem b/credentials/development/commissioner_dut/struct_pai_ext_akid_missing/pai-Cert.pem new file mode 100644 index 00000000000000..1fd8f39749ef05 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_akid_missing/pai-Cert.pem @@ -0,0 +1,11 @@ +-----BEGIN CERTIFICATE----- +MIIBnjCCAUOgAwIBAgIIAozSuBetLHAwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowMDEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTBZMBMGByqGSM49AgEGCCqGSM49AwEH +A0IABM422KNrgBYMBq6oQNFPfeBo3WviENigfid8ChwUa4FFGah9cB2eZHzn2LT/ +LMJHZW3wXR9GUCUg9ERjhPpZRg2jRTBDMBIGA1UdEwEB/wQIMAYBAf8CAQEwDgYD +VR0PAQH/BAQDAgEGMB0GA1UdDgQWBBSUBuX6qnB/SSatRvVkF2AZr0p+tjAKBggq +hkjOPQQDAgNJADBGAiEAr1MK9NUcnBWlvGt/k+yD01XH1abKwpox9PTx1QUtpSMC +IQCLyIKrzerisR11pM1svP8fTh2OmVXWBBamzg/FpwecrQ== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_akid_missing/pai-Key.der b/credentials/development/commissioner_dut/struct_pai_ext_akid_missing/pai-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..448aa9ef838c801274c6ffb9121a3fb29ded3107 GIT binary patch literal 121 zcmV-<0EYiCcLD(c1Rw%bn@=5)D_}j)+6&RQa|P)06MRyZAKPfTPHuz8Unrmo1_&yK zNX|V20SBQ(13~}<&NkSiYk(FE2Ck?;(NBHgXx(e#5ZIu8CwvMV6l;M+8K`}59iC)- b=h(FWEW$@+ZSY+mMo=Xn^h9HX`dLN|%)u~1 literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_ext_akid_missing/pai-Key.pem b/credentials/development/commissioner_dut/struct_pai_ext_akid_missing/pai-Key.pem new file mode 100644 index 00000000000000..04d143ad195197 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_akid_missing/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIAJUm08dkStgPdDaC9G3cwXo8xN8UpYf22i5Tm6Dx18ooAoGCCqGSM49 +AwEHoUQDQgAEzjbYo2uAFgwGrqhA0U994Gjda+IQ2KB+J3wKHBRrgUUZqH1wHZ5k +fOfYtP8swkdlbfBdH0ZQJSD0RGOE+llGDQ== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_akid_missing/test_case_vector.json b/credentials/development/commissioner_dut/struct_pai_ext_akid_missing/test_case_vector.json new file mode 100644 index 00000000000000..2f8e249136f52b --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_akid_missing/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "PAI Test Vector: Certificate doesn't include Authority Key ID (AKID) extension", + "is_success_case": "false", + "dac_cert": "308201cf30820174a0030201020208764c317ae127e32b300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d0301070342000499f77b64b9f0a17befadc0a4672c0708663a06732f0016003157b928ccc4c0834e38b716129c05b6da348789a817764ccdd763ad45d1ba1387256e271256e964a360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e04160414740ac4635c26efa791011ae0b72c8fd8f01475b6301f0603551d230418301680149406e5faaa707f4926ad46f564176019af4a7eb6300a06082a8648ce3d0403020349003046022100c69f7c4e7893a34cff315f0d33c92f3b81d55db13d76adaa040d7f2508207cc802210098753326ae9c528dfc2aaae47b6dad070b7678a93c3c4fc64d270dd27dcf6be0", + "pai_cert": "3082019e30820143a0030201020208028cd2b817ad2c70300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313059301306072a8648ce3d020106082a8648ce3d03010703420004ce36d8a36b80160c06aea840d14f7de068dd6be210d8a07e277c0a1c146b814519a87d701d9e647ce7d8b4ff2cc247656df05d1f46502520f4446384fa59460da345304330120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e041604149406e5faaa707f4926ad46f564176019af4a7eb6300a06082a8648ce3d0403020349003046022100af530af4d51c9c15a5bc6b7f93ec83d355c7d5a6cac29a31f4f4f1d5052da5230221008bc882abcdeae2b11d75a4cd6cbcff1f4e1d8e9955d60416a6ce0fc5a7079cad", + "certification_declaration": "3081e906092a864886f70d010702a081db3081d8020103310d300b0609608648016503040201304506092a864886f70d010701a0380436152400012501f1ff360205008018250334122c04135a494732303134315a423333303030312d32342405002406002507769824080018317d307b020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d04030204473045022100b57e12767312397c8207dcd64a626ae6568fc3892f6a9a33b1e86aa2bdf5ef5b02202db9402884475683387596f55c087a3c390d10b878ec2799bcdd92cc83a13e00", + "dac_private_key": "0dfb92c0488810ec6c5188ce7336b1c73e542ab375e2a74282ae440258fd20d7", + "dac_public_key": "0499f77b64b9f0a17befadc0a4672c0708663a06732f0016003157b928ccc4c0834e38b716129c05b6da348789a817764ccdd763ad45d1ba1387256e271256e964" +} diff --git a/credentials/development/commissioner_dut/struct_pai_ext_authority_info_access_present/cd.der b/credentials/development/commissioner_dut/struct_pai_ext_authority_info_access_present/cd.der new file mode 100644 index 0000000000000000000000000000000000000000..0480d913456df1bdd3c0e764a1ec575f8abb7210 GIT binary patch literal 237 zcmXqLe8tA8)#lOmotKfFX+h&1gT|XojLe3-2Hb3%32h#Xsmv@)j0UaZnmAq)=o`2(^pvFNaj-G}h210CH+H8z0j7^Jbm>79j+}zv@4HU$Ajf@OTj0_+kN`l`K z2n>ykfymU-)H2Gz4TqU7j?UQ4L=$D=VX*)i9%&%V#twEV6C>2g%#7^JP7Ew^(l$E} zyo-GC=7YyfhI9S1E`15wE*E#}!|g8(<`yc+?CT5?-9I1x&95pr$Gk=D!Wz>#61us3 zdw=eFvi5E9$4=hG2?lWnJV0;D3NtePXJIm6FyI66_(42iu&_56$b$HMEMhDoJTqT$ z+}_~g6=7d-VgAb78~)9(wlR)_@7CkbVE|)b@YBT=$`+$w;mLp2KlN^N*z#2>^|al0yIh literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_ext_authority_info_access_present/dac-Cert.pem b/credentials/development/commissioner_dut/struct_pai_ext_authority_info_access_present/dac-Cert.pem new file mode 100644 index 00000000000000..22f61c4ff8f2de --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_authority_info_access_present/dac-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBzjCCAXSgAwIBAgIIdoiBXJZMeZwwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +REFDMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQeGzy5wO5Z6OzwSJkAzo+a0vRStx5e +2vDb9IA3OCRjB64wYUfzw/sPJRGcN4Qm0Kw1nBgtbQ69+brkre1z8YkNo2AwXjAM +BgNVHRMBAf8EAjAAMA4GA1UdDwEB/wQEAwIHgDAdBgNVHQ4EFgQUDJnqCNuwREpY +P3jQn6nbsP6YOzwwHwYDVR0jBBgwFoAUh6pW/4U+apckvO3m85LRl445w8YwCgYI +KoZIzj0EAwIDSAAwRQIhAKxPXg+v0fFA+rqciPtgmAao1Dc2MsoUWMaQAmR+fPH/ +AiB04ohDxSJt7SdtwY4mv/fTfvCEgjImj95AxzE38XU4YA== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_authority_info_access_present/dac-Key.der b/credentials/development/commissioner_dut/struct_pai_ext_authority_info_access_present/dac-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..97244c4785c141aaff9df417cf9336385a1300b2 GIT binary patch literal 121 zcmV-<0EYiCcLD(c1R#SdWy0f^IsZ>-=a3u+^VKyp2Pl_uG(^Lf7bE^G!~viR1_&yK zNX|V20SBQ(13~}<9veKl!0uV-?C?mL0M3t^()3cd9$wn;+w_1pI3!~St}tOo^TYcO bB@vuAgeK6eHJlhNZ4SNpy5z0xbMc7{SK>4u literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_ext_authority_info_access_present/dac-Key.pem b/credentials/development/commissioner_dut/struct_pai_ext_authority_info_access_present/dac-Key.pem new file mode 100644 index 00000000000000..17e323eb162810 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_authority_info_access_present/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIIMqZcLjlzn/T2nnkBwH89U1NAcol3E0RMOXFyP+LMQBoAoGCCqGSM49 +AwEHoUQDQgAEHhs8ucDuWejs8EiZAM6PmtL0UrceXtrw2/SANzgkYweuMGFH88P7 +DyURnDeEJtCsNZwYLW0Ovfm65K3tc/GJDQ== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_authority_info_access_present/pai-Cert.der b/credentials/development/commissioner_dut/struct_pai_ext_authority_info_access_present/pai-Cert.der new file mode 100644 index 0000000000000000000000000000000000000000..005fae73ac37ea17358050b27548c6567e6257a3 GIT binary patch literal 505 zcmXqLV*F~*#5iXGGZP~d6Nh(}k-)DTO~(zm*f_M>JkHs&Ff$n#7)lt3u`!3TF!S*H zCYF?>7Ab_J7MCalI64}N7znX(X|pl1Fg7i!VPfQAadUGsG*A%dH8L_VF*1OFC<%T` zATTsC1|m~SQ_CnkW_scJobofue>r=B%A=Ct+=P5*4ef7Yd!dl;2}?CA*k?jpo%)$uX-crw6}ydv`~{!I>6| z8|NA{&H{RbIaF4dk?}tZhXEUqVq#=8-~);AgT#OV!N_JH3*z&!h_Q&YuL}F$YL_)# zWzXAZpC?_M-e-CEn1MVwf0fGR1LfcB7jvARE^z0L;ljc?0~0n5U|_Mb zvNJNWXc(v&sKEFJjBOGbB_#z``uh3F#RYn)6^Xe8IjMTd`MLVYk-_ZFVBo@}!1eZ& zS);FoNcP%emfJo&GOQE*@K2#=hpw3HwuhJMv-dG61j+Qzp0};eVf7lN0PeY0FRe(L TKWFEvjDx&7yML+N(zp%)=SrIP literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_ext_authority_info_access_present/pai-Cert.pem b/credentials/development/commissioner_dut/struct_pai_ext_authority_info_access_present/pai-Cert.pem new file mode 100644 index 00000000000000..055063109423c6 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_authority_info_access_present/pai-Cert.pem @@ -0,0 +1,13 @@ +-----BEGIN CERTIFICATE----- +MIIB9TCCAZygAwIBAgIIS2oyEPrYgscwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowMDEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTBZMBMGByqGSM49AgEGCCqGSM49AwEH +A0IABGOVzTTGRrL7cFqpKCcflQ/wgHijtukOrZKvLNc2eMBhIXt7oRLN0m+MMtRr +cwesKdXyY1yqeZdT6O3duHDBmTijgZ0wgZowEgYDVR0TAQH/BAgwBgEB/wIBATAO +BgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYEFIeqVv+FPmqXJLzt5vOS0ZeOOcPGMB8G +A1UdIwQYMBaAFGr9IncfUR/svxZBl2cQ3NwxoXF+MDQGCCsGAQUFBwEBBCgwJjAk +BggrBgEFBQcwAYYYaHR0cDovL29jc3AuZXhhbXBsZS5jb20vMAoGCCqGSM49BAMC +A0cAMEQCIArtyjaBTTgUa63GObbw4jF+FfD+IHK4LRYdtuHSf2u+AiBSHI+bnrZ+ +QKusIlALndXSqGKfnLmqaMENLLv6JNoo1w== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_authority_info_access_present/pai-Key.der b/credentials/development/commissioner_dut/struct_pai_ext_authority_info_access_present/pai-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..d8706df3b27bce191939405ef73ac7b02972ef14 GIT binary patch literal 121 zcmV-<0EYiCcLD(c1R#i3RX=qn1${MKB#Rg81h*&{c0wYLV@eyn8_RZE=_0uHG5Xg<^49V Tk^`6jyJ-2>Ytx>6fgbGu!ADAe literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_ca_missing/dac-Cert.der b/credentials/development/commissioner_dut/struct_pai_ext_basic_ca_missing/dac-Cert.der new file mode 100644 index 0000000000000000000000000000000000000000..51277d4d186a06e983b24d7dc24d9ffaefe0b001 GIT binary patch literal 466 zcmXqLVmxQi#8|R`nTe5!iKFWAkN=)+1Y;UT2{F&PB4fw-~oDDR+y3TKMRuqg8?6i#}DEGgN41pKo-R3V-aH!vGI1h z`@f#?^nAV}ncA#edzv4svKq*Pq?K8Kf!83CZ1n1Z#tN^!=O)QDPCM85ljn2dbmTy0 z_Fyn@Wm07LWwK@iU;3|a+z%SoyB)c|`NvK79C5d;Y&-w`p5)}{p39^l{czRO^#wI+ eKNRG?d%0KQv?|9VozS~GtZNHPehT<+m<9lB@sOSX literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_ca_missing/dac-Cert.pem b/credentials/development/commissioner_dut/struct_pai_ext_basic_ca_missing/dac-Cert.pem new file mode 100644 index 00000000000000..0e3015b7ee40e5 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_basic_ca_missing/dac-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBzjCCAXSgAwIBAgIIeuP4/0mGcIMwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +REFDMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQNMrEtPRNE5KY5/6vzVx7Jvd6wxRHk +HVCUBDvFqc0SfXSdgaCxv6/GnS32U+bqTznE1a8XB136pC8SLqIEhKpGo2AwXjAM +BgNVHRMBAf8EAjAAMA4GA1UdDwEB/wQEAwIHgDAdBgNVHQ4EFgQUPEtG3f9/Acuf +DsRpKwUKvIPjJQUwHwYDVR0jBBgwFoAUYzLq4CioSr3Okh6Bls6B+QzzYZcwCgYI +KoZIzj0EAwIDSAAwRQIhAPo0rLAOZ/r2C+CAr0bE37P42UdsF0a1Brn++5JCQUdt +AiAb4arlr3B8rfBwbe7pvRjLJQjiLFXduDt9cXT5EE+wlg== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_ca_missing/dac-Key.der b/credentials/development/commissioner_dut/struct_pai_ext_basic_ca_missing/dac-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..2c327e265e0f382a8118609709427452958f9fb1 GIT binary patch literal 121 zcmV-<0EYiCcLD(c1R&3k__dg6=DoP^Tf$i)JU#D2JByina@uY@YSQ`0ZH1r;1_&yK zNX|V20SBQ(13~}<4KlGUJrhLaraAws^H(0pz230J5#$|Elmt7)sm&67be(~qvA?gz boh|lL=IT#5#MQ4C2VMH4FA^@I1ca(aust^C literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_ca_missing/dac-Key.pem b/credentials/development/commissioner_dut/struct_pai_ext_basic_ca_missing/dac-Key.pem new file mode 100644 index 00000000000000..de0777015f9cae --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_basic_ca_missing/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIM+P+LWYaea9uPBbwlkiPD3vQzuLmXty2m48atL5yG2FoAoGCCqGSM49 +AwEHoUQDQgAEDTKxLT0TROSmOf+r81ceyb3esMUR5B1QlAQ7xanNEn10nYGgsb+v +xp0t9lPm6k85xNWvFwdd+qQvEi6iBISqRg== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_ca_missing/pai-Cert.der b/credentials/development/commissioner_dut/struct_pai_ext_basic_ca_missing/pai-Cert.der new file mode 100644 index 0000000000000000000000000000000000000000..6f2180832bdc2e5b95a5cfc1bc25b5cabc8f92f3 GIT binary patch literal 446 zcmXqLV%%lW#F)5%nTe5!i9^kF=KNglG64fFHV&;ek8`#x%uEIbh7ty1Y|No7%sl+Q zi6teeMG7IQ#U%;>j*f;R210CH+H8z0j7^Jbm>79j+}zv@4HU$Ajf@OTj0_+kN`l`K z2n>ykfymU-)G`W>nVvYzj5H8tV+Xs5i4p2JW=3{qCkB>Vk6xFR9+_2lL%NUm+JT+7 zms*8;dY4Z=>F8VR{(wO>B)9APH2MCuU$;I`j=vXisKQd2MWUxg%!Jd6eM7-Bq2G&> z4H6CbfgY3}dw%IwZy;KHOJVQpl? zY2YE2J>$^co literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_ca_missing/pai-Cert.pem b/credentials/development/commissioner_dut/struct_pai_ext_basic_ca_missing/pai-Cert.pem new file mode 100644 index 00000000000000..6ea1d58e279ba6 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_basic_ca_missing/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBujCCAWGgAwIBAgIIJjWZn20LdhAwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowMDEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTBZMBMGByqGSM49AgEGCCqGSM49AwEH +A0IABNri63Z1xJp+2BuODdbAudulOldJS3eTyUFNc0fgACVUbYr3lh+PrfW14CNf +3ljCeDkjBBiMhBY0CUoHsHDmEvujYzBhMA8GA1UdEwEB/wQFMAMCAQEwDgYDVR0P +AQH/BAQDAgEGMB0GA1UdDgQWBBRjMurgKKhKvc6SHoGWzoH5DPNhlzAfBgNVHSME +GDAWgBRq/SJ3H1Ef7L8WQZdnENzcMaFxfjAKBggqhkjOPQQDAgNHADBEAiAYOzI8 +CTBIFmuYwr2nbNkULJvpiMOkWnNq43O9TYjbNgIge5n7CtHZ0adwbCjMoqeQ4yAY +kMzjtGW/DysJtd2RUy8= +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_ca_missing/pai-Key.der b/credentials/development/commissioner_dut/struct_pai_ext_basic_ca_missing/pai-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..b069345373d563a67224df4c2286d223cef14283 GIT binary patch literal 121 zcmV-<0EYiCcLD(c1Rzsz!(2MCF^8l622fZkbKVM25U31KQyz`(Oa(|%_BNmj1_&yK zNX|V20SBQ(13~}<+T!bWb;O!}*c*-w*1);jr8-whOLvpWK}~Z<-~c65ZHo7nACIl| bwcsOP-dMtTIU@uZjD!|62}%dBaOM*Gzr!$r literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_ca_missing/pai-Key.pem b/credentials/development/commissioner_dut/struct_pai_ext_basic_ca_missing/pai-Key.pem new file mode 100644 index 00000000000000..4b454d1337c22c --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_basic_ca_missing/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIFNww1w6sTGHo/4GUFgqc94KUBCoDE9THo3uTAVIUvY2oAoGCCqGSM49 +AwEHoUQDQgAE2uLrdnXEmn7YG44N1sC526U6V0lLd5PJQU1zR+AAJVRtiveWH4+t +9bXgI1/eWMJ4OSMEGIyEFjQJSgewcOYS+w== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_ca_missing/test_case_vector.json b/credentials/development/commissioner_dut/struct_pai_ext_basic_ca_missing/test_case_vector.json new file mode 100644 index 00000000000000..23b0f7f6fa56d2 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_basic_ca_missing/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "PAI Test Vector: Certificate Basic Constraint extension CA field is missing", + "is_success_case": "false", + "dac_cert": "308201ce30820174a00302010202087ae3f8ff49867083300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d030107034200040d32b12d3d1344e4a639ffabf3571ec9bddeb0c511e41d5094043bc5a9cd127d749d81a0b1bfafc69d2df653e6ea4f39c4d5af17075dfaa42f122ea20484aa46a360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e041604143c4b46ddff7f01cb9f0ec4692b050abc83e32505301f0603551d230418301680146332eae028a84abdce921e8196ce81f90cf36197300a06082a8648ce3d0403020348003045022100fa34acb00e67faf60be080af46c4dfb3f8d9476c1746b506b9fefb924241476d02201be1aae5af707cadf0706deee9bd18cb2508e22c55ddb83b7d7174f9104fb096", + "pai_cert": "308201ba30820161a00302010202082635999f6d0b7610300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313059301306072a8648ce3d020106082a8648ce3d03010703420004dae2eb7675c49a7ed81b8e0dd6c0b9dba53a57494b7793c9414d7347e00025546d8af7961f8fadf5b5e0235fde58c278392304188c841634094a07b070e612fba3633061300f0603551d130101ff04053003020101300e0603551d0f0101ff040403020106301d0603551d0e041604146332eae028a84abdce921e8196ce81f90cf36197301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d04030203470030440220183b323c093048166b98c2bda76cd9142c9be988c3a45a736ae373bd4d88db3602207b99fb0ad1d9d1a7706c28cca2a790e3201890cce3b465bf0f2b09b5dd91532f", + "certification_declaration": "3081e906092a864886f70d010702a081db3081d8020103310d300b0609608648016503040201304506092a864886f70d010701a0380436152400012501f1ff360205008018250334122c04135a494732303134315a423333303030312d32342405002406002507769824080018317d307b020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d04030204473045022100dd55f47d0c3c1ff2ad4a1c4b4c34af6bcef03655bc53c12b3d1154f32967d56902207045c35c93b08ed29707fa9b9a7cd3bf3cea6351a7fed139fd4ab2bcbe514887", + "dac_private_key": "cf8ff8b59869e6bdb8f05bc259223c3def433b8b997b72da6e3c6ad2f9c86d85", + "dac_public_key": "040d32b12d3d1344e4a639ffabf3571ec9bddeb0c511e41d5094043bc5a9cd127d749d81a0b1bfafc69d2df653e6ea4f39c4d5af17075dfaa42f122ea20484aa46" +} diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_ca_wrong/cd.der b/credentials/development/commissioner_dut/struct_pai_ext_basic_ca_wrong/cd.der new file mode 100644 index 0000000000000000000000000000000000000000..ff16691d1516732f021781fba073525cbbcfafb3 GIT binary patch literal 236 zcmXqLe96YC)#lOmotKfFX+h&{gT@<7jLe3-2Hb3%32h#Xsmv@)j0Ua!P4{l{{&&tb Un>16fcfy`ucb6L*Z#XLs0R4eV8vpQ}nHZr?W@cn(c4A|+2^R8@4Vq5o3&Hl#nH1osm(qf0D_*|8GL~f~kOO0L~_e*YvcFYu&rC(2< z+J5K#pU6)Z!9{J06Aa=Ec!1uP6=r1o&%$KDV893B@q>84U}0}CkOlGiSj1RFq8~@R zJNo-U$(Ly3>*+ezmprTHL`wK31Xzt;f6tnZtz7MHi*CPiq zvpa)<3zLG-p`XgtR|`KqxF5FLJLc?Mr(@@CuAj@faEbV(LkE2>sxm3)uB`t!byIBE dr0BM+!`E1B9&HS^v79+ajLER*T4w(CLjZd(l(+x@ literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_ca_wrong/dac-Cert.pem b/credentials/development/commissioner_dut/struct_pai_ext_basic_ca_wrong/dac-Cert.pem new file mode 100644 index 00000000000000..6859a04d799f40 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_basic_ca_wrong/dac-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBzTCCAXSgAwIBAgIIV9X0y0qgVJUwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +REFDMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAASVbtnqNqXT5P6Zik5LeYJiBq72Jj/Y +p2Y3w0cbFsMaDkUijBTaJPZlW6te+h64K1yUJKX1y8q33O/8WfI4U3KGo2AwXjAM +BgNVHRMBAf8EAjAAMA4GA1UdDwEB/wQEAwIHgDAdBgNVHQ4EFgQUW+NY7sX74HT0 +WzPXZyzXpeSLQgQwHwYDVR0jBBgwFoAUtblO2L9w0YgpvAqSXLnCvvBl9a8wCgYI +KoZIzj0EAwIDRwAwRAIgEsL5I3vVcfLg31a7S1zNnULGztmvnQmhpBfSwsFM0SUC +IC2pf/GVsl1WkluGasPWBDzisVM8OZmcFgIxctZpb7fC +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_ca_wrong/dac-Key.der b/credentials/development/commissioner_dut/struct_pai_ext_basic_ca_wrong/dac-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..171f2e6ae229be32654ed6ed0cc701300ca4cd79 GIT binary patch literal 121 zcmV-<0EYiCcLD(c1R(jNA~2CnudKiH>cH^WC87Q-42MIww8+9dX6 bTdQ9B9=I!9lq99~%gVRh@BCTvI8$1d%#7^JP7EyCb%*zf9}8 z4H6CbfgY3p z=b?QcQopV@kOxUCvj9V?K_u(1Qn`Gf{G0t^j?>cx?%Xk4SXhS~qRj3L1};nr3HqL< z_1yl7s=t=aSb683o|xL5D1-7Ge#QkQPPgnEdYKe>u6}>W=y)PdXS!=k+0Hw5TOu~* R#NR)sqf@Ue_*Ww{7XWLZh5rBm literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_ca_wrong/pai-Cert.pem b/credentials/development/commissioner_dut/struct_pai_ext_basic_ca_wrong/pai-Cert.pem new file mode 100644 index 00000000000000..3d638bdb191982 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_basic_ca_wrong/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBujCCAWGgAwIBAgIIEIYYGqPzqXMwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowMDEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTBZMBMGByqGSM49AgEGCCqGSM49AwEH +A0IABCt+w74XxlaAMCsQz2GOJIUMNyYwM/dHCFzduUpfaaaH1XbGglOt5LzB5evP +sH8qiX+H8zKPdUudV9268FkI2jSjYzBhMA8GA1UdEwEB/wQFMAMCAQEwDgYDVR0P +AQH/BAQDAgEGMB0GA1UdDgQWBBS1uU7Yv3DRiCm8CpJcucK+8GX1rzAfBgNVHSME +GDAWgBRq/SJ3H1Ef7L8WQZdnENzcMaFxfjAKBggqhkjOPQQDAgNHADBEAiBgL0k1 +fwtPISX6ppip3N4uFibcWjB3bA8BoHRC2j+AjQIgDNX34QFByF4sl0WEdrncPrRY +sWxf384sLH8jEf0oaW0= +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_ca_wrong/pai-Key.der b/credentials/development/commissioner_dut/struct_pai_ext_basic_ca_wrong/pai-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..4ec31d810e5e6a96e9d7df6644871954520a2331 GIT binary patch literal 121 zcmV-<0EYiCcLD(c1R(Tp?QFkHPooqdOuT&D&mBD3d><0F)NuLyGcx^l3a_Q%5Gv(WH`G0uaz6O-OJ^RwlF+OaFUML U>l5DeXzTjrceGD(Y)dl)05NJxi2wiq literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_critical_missing/dac-Cert.der b/credentials/development/commissioner_dut/struct_pai_ext_basic_critical_missing/dac-Cert.der new file mode 100644 index 0000000000000000000000000000000000000000..c1fc2223f1f89f5285cc45ffcf0099064024df39 GIT binary patch literal 466 zcmXqLVmxQi#8|R`nTe5!i6g^QXeCei-&_MOHV&;ek8`#x%uEIbh7ty1Y|No7%sl+Q zi6teeMG7IQ#U%;>j-G}h210CH+H8z0j7^Jbm>79j+}zv@4HU$Ajf@OTj0_+kN`l`K z2n>ykfymU-)H2Gz4TqU7j?UQ4L=$D=VX*)i9%&%V#twEV6C>2g%#7^JP7EwYY{vFy zdyVtlUPYX-{oQ=`>LJFJ`q{?sTaL^tzINt)@ZMwXKkJW)`0uq}oVf7kt=*iq(^s-h z+x5Ql9qZw|BfG^GCm6&T@BqCnE6m9FpM}YQ!GI6M;|KA8!NT5PAPeI2v52vVoPES` zr)Oadd-t#J!c!PzJAF^gPd1PTNh`Ae1Fu1(EaPX;@rr%lWrK3pO_|!VuVg|iH*z2| zdoUQdGAS}F6kao@qN&Gil3Wvvwmj5b!VI~DnZ*7LYy7!Mb cGp-R6W?4ReL*)xrU(FKaXJgv6e6*39oyy~c<6f5sF~ by+5O2q50ao2|bso29~<-iS7l%Zp6D53S~7T literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_critical_missing/dac-Key.pem b/credentials/development/commissioner_dut/struct_pai_ext_basic_critical_missing/dac-Key.pem new file mode 100644 index 00000000000000..8b7c572174fa82 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_basic_critical_missing/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIDTVAw1c2BWxq5IuK3NGyefYe2ZZPn9EBheotHpwDF67oAoGCCqGSM49 +AwEHoUQDQgAEMgYzP82NM25G6ljMPfuD3dXCAakvazPvhMSec9bM71O9xof5f8YU +T70/o2Gh+dq7CT2XqQaWuu+J7gXDbsS7Fg== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_critical_missing/pai-Cert.der b/credentials/development/commissioner_dut/struct_pai_ext_basic_critical_missing/pai-Cert.der new file mode 100644 index 0000000000000000000000000000000000000000..9c0ecbda27fd22c315d3e956a66f1fbbbc89be31 GIT binary patch literal 447 zcmXqLV%%-e#F)5%nTe5!i6eJulhB!roFW4*HV&;ek8`#x%uEIbh7ty1Y|No7%sl+Q zi6teeMG7IQ#U%;>j*f;R210CH+H8z0j7^Jbm>79j+}zv@4HU$Ajf@OTj0_+kN`l`K z2n>ykfymU-)G`W>nVvYzj5H8tV+Xs5i4p2JW=3{qCkB>#(+!R|p7MLZD5@8j=ezR7 zzT+7YT4!6GdnH3WKKwdW)f;fygNJEekJ~oMKb%?B?Qv<`krPtaSxeMR(%X38dd%Wv zgG2*1_&yK zNX|V20SBQ(13~}<-j^`MLCQ|x0TnJ$ZcVA^zQ<@-D$RvMjTux(@cPPnjZn)-3<92v bMz$IJ32J+XUScRNBTaL~T^Z!_+&&_R2$`egEknx3gDRT;wf@JO1oBTI7smfTmCq|ske6aDX T)aEV^Iirh}kG~p)ZVdqd<_Spf literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_critical_wrong/dac-Cert.der b/credentials/development/commissioner_dut/struct_pai_ext_basic_critical_wrong/dac-Cert.der new file mode 100644 index 0000000000000000000000000000000000000000..605e7ac8cc8ca4e3d6b631cf8775987cceca5c7a GIT binary patch literal 466 zcmXqLVmxQi#8|R`nTe5!i9_iV&*Hb6?@Tw~V&l+i^EhYA!pvk~U?^cA#>O1V!py_( zn^;nkTBHz?T3n(K;OJ>6Vj#rErOn33!q~K^hKZ4f#m&vl&_F?)*T~4g#K-^wq9ph& zfxytn7>GUsOf*p@9u^Cb;gJTyZ0ul{GBHA(%*@En?8LxwVoBa5 z>q>F=wI7d8mwNa`OKh3Ojo5RdANR!ltaoH?-uO@?=1+R(8>RyrINkV16dHCk420{B+Ba6 z{U5O!K_%54GlS;+?qK*R+iV~Yl2&E`23~{6n#FY|DjmL_|HpP+X`hDiWO;LyY~(;@ z_Fyn@Wm04~@AkZ{zL)p>sty0;77H)a*!t-8;p!N#ll5#ffl~~)*f_M>JkHs&Ff$n#7)lt3u`!3TF!S*H zCYF?>7Ab_J7MCalI64}N7znX(X|pl1Fg7i!VPfQAadUGsG*A%dH8L_VF*1OFC<%T` zATTsC1|m~SQ_CnkW_scJobofufka_--mXViZ*CgxeUhI%ij z@nUX|Q!jJ+4EBYwT@=4x6}i*s#O`>ZJ2S0WmXz~b?Yd)}uyqyJ*R)jOVmBTggsC2NK{1a#(<2z{qAG3*z&!h_Q&QSzLFb(&6j*e{9#4 z_GuVTmN!?)HjoENE3*JYszD^{uTr^up!}QtVvf_(1@7E2Tv%9#9HPwb31_&yK zNX|V20SBQ(13~}(HGx(S-CREyI&IA bnL7lecMm$c+%sUcstWaHWfOBo3@jkJF5@tA literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_critical_wrong/pai-Key.pem b/credentials/development/commissioner_dut/struct_pai_ext_basic_critical_wrong/pai-Key.pem new file mode 100644 index 00000000000000..f1707313b3d9d7 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_basic_critical_wrong/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEILEy5NfchV4cNpY6M9xnIYV/KiJP4Db61L0nHJ+B+kEKoAoGCCqGSM49 +AwEHoUQDQgAEdmzf3J4yj8VcXOaLKCeNCTOjC0jK6WyOML5WBtEX33pZuTLIu18S +3Jk7BKR3Dzq63DNgtaoK9WZlE3NGDCwgug== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_critical_wrong/test_case_vector.json b/credentials/development/commissioner_dut/struct_pai_ext_basic_critical_wrong/test_case_vector.json new file mode 100644 index 00000000000000..36164cd4a77db9 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_basic_critical_wrong/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "PAI Test Vector: Certificate Basic Constraint extension critical field is set as 'non-critical'", + "is_success_case": "false", + "dac_cert": "308201ce30820174a003020102020822f20ca3edb3dc97300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004c8a46ed23b791747adf1c5971ae1f42a16a628d85dce15f1bc5ef97f410383b1e1145cfc6789ec02c0b0882b7551e0cb52968fd187e9b1e63a4a5e11afd39bb6a360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e041604145a3adadff85d2852747b8899529efb8800f11d83301f0603551d23041830168014aca37ec87940f5cffe06d722be2833931f37246b300a06082a8648ce3d0403020348003045022100cf46e7867f8d0dcfaab0ff1ea313a628b5e2ebc37b5c4a64d73c7fd7d342bde7022048a0ea4feef2666f9e6a4546773c03984164193310c6384966bcc266a1aa2466", + "pai_cert": "308201ba30820161a003020102020822a805e44bf15194300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313059301306072a8648ce3d020106082a8648ce3d03010703420004766cdfdc9e328fc55c5ce68b28278d0933a30b48cae96c8e30be5606d117df7a59b932c8bb5f12dc993b04a4770f3abadc3360b5aa0af566651373460c2c20baa3633061300f0603551d13040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e04160414aca37ec87940f5cffe06d722be2833931f37246b301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d040302034700304402206d85561002d9b2c161a8282529cc5ea122f02d0dcdcfa8d6b321a96e4430af0302207f262e4eae2b843e10733294747c25d1268d2259b82d0c61430c079c359c91b0", + "certification_declaration": "3081e906092a864886f70d010702a081db3081d8020103310d300b0609608648016503040201304506092a864886f70d010701a0380436152400012501f1ff360205008018250334122c04135a494732303134315a423333303030312d32342405002406002507769824080018317d307b020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d04030204473045022100c46e78d1ec5865c15f7eda4143e16ffc38679d6d81626e1560c068f40da503640220197db5d90fd9b2251c38476158cb69e0b1cd1ab38a481e32d179e3f53255b554", + "dac_private_key": "ae3d1b6e99d533a37f8f59ae930ee803b19ab61143bf9f3ebb25c6ccebf878ba", + "dac_public_key": "04c8a46ed23b791747adf1c5971ae1f42a16a628d85dce15f1bc5ef97f410383b1e1145cfc6789ec02c0b0882b7551e0cb52968fd187e9b1e63a4a5e11afd39bb6" +} diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_missing/cd.der b/credentials/development/commissioner_dut/struct_pai_ext_basic_missing/cd.der new file mode 100644 index 0000000000000000000000000000000000000000..55013e0ec24f80053ef241706343f538619c5c9e GIT binary patch literal 237 zcmXqLe8tA8)#lOmotKfFX+h&1gT|XojLe3-2Hb3%32h#Xsmv@)j0UaJkHs&Ff$n#7)lt3u`!3TF!S*H zCYF?>7Ab_J7MCalIC>h27znX(X|pl1Fg7i!VPfQAadUGsG*A%dH8L_VF*1OFC<%T` zATTsC1|m~SQ_Cm=HymcVI67lD6HSzfhs6S9c%*?a8#~ygOpH(`Gc&R?J29}hIF={d z%eXLzmghX!_0>s6%dlhK+|LKa!Wf^0T>C%iwOCA3<588@-`1N=YyT9NtQpF}q!&81 zbp5aOJKN6*e|fYx!643n2k32CVMfOPEKCLr27DkMKZpkm7WM`MSrDI(MT|w{+UnkW zE3;T79Ck%V*QVC1<=Kk-HjoENE3*ItuR&y$?u($bD@Q73c_^!iO)xrVDR;ygIgpt> z7z|vQ6d8VfJ7p+i#Ie4@b&K*!uiA-$m1X5^1&dyN>Y3xb?Z+EUCWU;>i`V!Z literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_missing/dac-Cert.pem b/credentials/development/commissioner_dut/struct_pai_ext_basic_missing/dac-Cert.pem new file mode 100644 index 00000000000000..79748652d112d3 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_basic_missing/dac-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBzjCCAXSgAwIBAgIIcqj4HIFV+OQwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +REFDMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAREQXdjPxxEABV3bOC69UIcKjGInp3z +wRZWAeZU1v+S6xZcgoHFJOv2rzaWh/JeYylVBAIuVZV1r/qvuYfOE/Tio2AwXjAM +BgNVHRMBAf8EAjAAMA4GA1UdDwEB/wQEAwIHgDAdBgNVHQ4EFgQU1quN3qlqBRhA +ultbfWV/Jm49FPswHwYDVR0jBBgwFoAUqi3oUmbUxHiaSCMmFpAyzjkexDswCgYI +KoZIzj0EAwIDSAAwRQIhAPr2yjEcMgiveEW0I6lKfZFReXZ3hnCi6vKMnEO2+Owp +AiBvKdELQarCsoQb/n6VTNhjOpPpAjm+iF6bOSDLQkjrUg== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_missing/dac-Key.der b/credentials/development/commissioner_dut/struct_pai_ext_basic_missing/dac-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..8d28d2664fde1f6227bb513f2f4f6c15cdf73a43 GIT binary patch literal 121 zcmV-<0EYiCcLD(c1R(EH(mIQCENST`)J(&!y+w}IvRc>{N`s!%I^~6@sXw3!1_&yK zNX|V20SBQ(13~}dX#U$(Y buQry4@?K*pRRjVqRh4zG`mec%&J*j*f;R210CH+H8z0j7^Jbm>79j+}zv@4HU$Ajf@OTj0_+kN`l`K z2n>ykfymU-)G`W>nVvYzj5H8tV+Xs5i4p2JW=3{qCkB@LOP4n3&CuHyKI!^R*@IHY zg(W{V%9k&mex~baf`eFr^4bN{1g`Td_+G93_@w^yv&vOM`J3HONVzks$VaX_X|20B z$RNOg59mQzen!UsEI=rklBO5z?DfsP`oBM|ww7&i$Inw<`Vb#FdXl-~Mg!pV-V`@a@!k H!rKlE}!Soeq`Iqty>`~?zc7M6zHQu^L7apJr1_&yK zNX|V20SBQ(13~}<-=(F3E|@O9SCZG+9l;vM6B+V>A9tgd%!6@zy9#=D)?}_OQ TyS$?Jc|cP8j78TjH?#l%_liuB literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen0/dac-Cert.der b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen0/dac-Cert.der new file mode 100644 index 0000000000000000000000000000000000000000..bd5405e34f3638a3ddf4bcd49304bbaac6991015 GIT binary patch literal 465 zcmXqLVmxcm#8|R`nTe5!i6dO|-kQ}nHZr?W@cn(c4A;D4gbxd zHsfpR%p<1xl5bgWxmyQUpV#sva^yl?LU8@1TwQb zgMkZ^LS^23X6~-J3;MhF%(J(+xMY|8ylK+CO@Hkd%z9`4B~ph;LE!Ta&!~8TPkBi` a(L7gs{g#RwpB)J>oY1_&yK zNX|V20SBQ(13~}JkHs&Ff$n#7)lt3u`!3TF!S*H zCYF?>7Ab_J7MCalI64}N7znX(X|pl1Fg7i!VPfQAadUGsG*A%dH8L_VF*1OFC<%T` zATTsC1|m~SQ_CnkW_scJobofue78NSeXS+)Ad*W>&Pswx`! z?}}~uIYV+Pd%9Kl(a_Xy$G@`db~NcMPYwSg8Tt1K$DfM@XO^)PzER~;dfavHhu!SO zX$C1kZ!m|-3NtePXW=kl15!+k3icD9C2iV&{+MDQ50X}90R~osNY-Daa``~{H~YmLr>6_txnsDnunsv;nLQW`T$vOZ zS}UiRmH+;}Af-R%>*vH3J?D*AZ`u+*R5CYc}ge8Z-t(_I6P X-eTNcoAuD@ps2&9!xt6?E5-o;=FE^p literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen0/pai-Cert.pem b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen0/pai-Cert.pem new file mode 100644 index 00000000000000..4d22147506ba5b --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen0/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBvjCCAWSgAwIBAgIIKRp9Cuiy3eMwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowMDEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTBZMBMGByqGSM49AgEGCCqGSM49AwEH +A0IABMox6Cjpeqv49ccPoHp4gQ/dFrL5mBmVB2c6V8VVZfbH9QS7QTSJd2VX/BlZ +/eQI/NFwzKYEcewlCiLjis74PpujZjBkMBIGA1UdEwEB/wQIMAYBAf8CAQAwDgYD +VR0PAQH/BAQDAgEGMB0GA1UdDgQWBBRm9+aa8u4rSw+hle+mzRk8h/n4lDAfBgNV +HSMEGDAWgBRq/SJ3H1Ef7L8WQZdnENzcMaFxfjAKBggqhkjOPQQDAgNIADBFAiEA +hXmUNnf796Bkj1z182GojM8zq7SeWfFtAKn9qu2XIbECIDkvn4YZb1rnsLKll0VR +xdoBu31q4TrBFUCyw9ChUyFe +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen0/pai-Key.der b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen0/pai-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..bbfdcdb2dfaaf30e1969c9301efa3a399890b6c3 GIT binary patch literal 121 zcmV-<0EYiCcLD(c1R%$tGNsqrz*YSfOJonTG=UC`4#QulLecIJk2iWZ;>1_&yK zNX|V20SBQ(13~}<$}#9D>3Xa9^~VpOdU$~k-4?R>m>HD^XF6BKRb}?a^#r>?G>La* bSNs`S{p1Mz(QwSB1aa&o3L@i*&iFo?@g6oZ literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen0/pai-Key.pem b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen0/pai-Key.pem new file mode 100644 index 00000000000000..f1397d17baeafc --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen0/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIMegMqXX2sBV/RVLZA+zNIEOjA7DX6hC0e4Qjzq2yooWoAoGCCqGSM49 +AwEHoUQDQgAEyjHoKOl6q/j1xw+geniBD90WsvmYGZUHZzpXxVVl9sf1BLtBNIl3 +ZVf8GVn95Aj80XDMpgRx7CUKIuOKzvg+mw== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen0/test_case_vector.json b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen0/test_case_vector.json new file mode 100644 index 00000000000000..1801e9330904f3 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen0/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "PAI Test Vector: Certificate Basic Constraint extension PathLen field set to 0", + "is_success_case": "false", + "dac_cert": "308201cd30820174a00302010202085729defcb722b794300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d030107034200047557fb082698f56599c4356f19ed05da44d0e02275bef51abb34d871db7b36550a313096c47828177ecfcca147198ab3fcae1c26118919e015425941353098cda360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e04160414729a84a369b958830a1714e130c738165cad20eb301f0603551d2304183016801466f7e69af2ee2b4b0fa195efa6cd193c87f9f894300a06082a8648ce3d04030203470030440220796e9f030b8a9da08f8bbc9e3f38d1a4ba3f9e961b8d82fd3fa09aee3ff4592c022010f3b8495a5f10f26e624c5b0cd58d4ea517306d6ca389ebb753db6a5eb51c9b", + "pai_cert": "308201be30820164a0030201020208291a7d0ae8b2dde3300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313059301306072a8648ce3d020106082a8648ce3d03010703420004ca31e828e97aabf8f5c70fa07a78810fdd16b2f998199507673a57c55565f6c7f504bb413489776557fc1959fde408fcd170cca60471ec250a22e38acef83e9ba366306430120603551d130101ff040830060101ff020100300e0603551d0f0101ff040403020106301d0603551d0e0416041466f7e69af2ee2b4b0fa195efa6cd193c87f9f894301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d04030203480030450221008579943677fbf7a0648f5cf5f361a88ccf33abb49e59f16d00a9fdaaed9721b10220392f9f86196f5ae7b0b2a5974551c5da01bb7d6ae13ac11540b2c3d0a153215e", + "certification_declaration": "3081e806092a864886f70d010702a081da3081d7020103310d300b0609608648016503040201304506092a864886f70d010701a0380436152400012501f1ff360205008018250334122c04135a494732303134315a423333303030312d32342405002406002507769824080018317c307a020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d040302044630440220482ad9a336283c8a0f90bb78e27c930df1e1ff6fdfa0d96dd440d07ac0a8e64f0220527d13c193762175ecd5a0e37b0337bc5c8956d3a88de750628798a2d6d38084", + "dac_private_key": "a36ff75399f319dfee529eecd8c4cf8ab17ca10fa88fc7ead367e36265b4d44d", + "dac_public_key": "047557fb082698f56599c4356f19ed05da44d0e02275bef51abb34d871db7b36550a313096c47828177ecfcca147198ab3fcae1c26118919e015425941353098cd" +} diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen1/cd.der b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen1/cd.der new file mode 100644 index 0000000000000000000000000000000000000000..eaa2200a14548baca42920793d187df4cae901b6 GIT binary patch literal 236 zcmXqLe96YC)#lOmotKfFX+h&{gT@<7jLe3-2Hb3%32h#Xsmv@)j0UagEb+^(=lYPP}!Fx=K48K|fE^JR+e9S64+Aq$T^ZP~_ TFv9Am2NlSV&l+i^EhYA!pvk~U?^cA#>O1V!py_( zn^;nkTBHz?T3n(K;OJ>6Vj#rErOn33!q~K^hKZ4f#m&vl&_F?)*T~4g#K-^wq9ph& zfxytn7>GUsOf*p@9u^Cb;gJTyZ0ul{GBHA(%*@En?8LzGHzLz? zo%+_?rr(|~!eR^i4s!6vUECP?>DPMQxD8U8dA2j}lrQr1R`CIfkpv@#1Y@ESxOt37=r^3j}ctqo6qQ;+RL+52B7BL_0G z2ZMntlY)KzvDv1(7M7{9usern-nP2C*7VN$?JAsizxF!wG1shTQe>DjOO|)V8>=XH c9cjO+up@gS);^HiI91)fi+mU3;mI!Qg2=z#vLP{q25@s|* literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen1/dac-Key.pem b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen1/dac-Key.pem new file mode 100644 index 00000000000000..a72b155b242e8e --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen1/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIHAOr/SVijKkeETRjIECLJXQE6iztcWfGfVo70qioO+MoAoGCCqGSM49 +AwEHoUQDQgAE/VhpNa4ntW2C+0noVl1xjsEID17RsVny+q8tXrAaKW49mdx3oklL +J3zaxEscEZYT25Fky5YIbHQI9UidQkom+Q== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen1/pai-Cert.der b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen1/pai-Cert.der new file mode 100644 index 0000000000000000000000000000000000000000..89c14de17c5c831fb6cd6a4247061b19d7165a47 GIT binary patch literal 450 zcmXqLV%%rY#F(;xnTe5!iNktBLE0ZF_ z+_U%juJ>G7JyAbyUxoIih#OCTDwcGfUm5FR{c~!z@?s_h>qFXYPuNsmU!Tmbx%>Ru WfJX)|i=yNFBIN#;+5fusNge=JbB#&> literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen1/pai-Cert.pem b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen1/pai-Cert.pem new file mode 100644 index 00000000000000..e8417114821ca8 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen1/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBvjCCAWSgAwIBAgIIO6AbDsnA+7owCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowMDEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTBZMBMGByqGSM49AgEGCCqGSM49AwEH +A0IABB2/smboO4ptf7nYCnsDarQ3bUQ8FXP8JLGlM6ra6Ds29KBeasbj4MlmD8iR +qut3WBFomka9ZYii6e6lUzfT012jZjBkMBIGA1UdEwEB/wQIMAYBAf8CAQEwDgYD +VR0PAQH/BAQDAgEGMB0GA1UdDgQWBBTjJuXiFPE3Dq08DI+CjD2RHd/1kzAfBgNV +HSMEGDAWgBRq/SJ3H1Ef7L8WQZdnENzcMaFxfjAKBggqhkjOPQQDAgNIADBFAiEA +nc3fDteM1KuRL16+eCvSWNjl+SF0ic+pXUg7+ZVrI6MCIDvCK4bkBiTr15MHKbvP +rVDiMOlyW15OWB7/dj/61vIf +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen1/pai-Key.der b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen1/pai-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..aa971c0319cde8902887c0134516214383cc8f2b GIT binary patch literal 121 zcmV-<0EYiCcLD(c1Rz_^;^qEUWY8B|GOqHvziSWDDfmQpG4G#h7$&)yh&iAN1_&yK zNX|V20SBQ(13~}<9lx?>=sSvSf4SHSdjo2;H*G{b6?6O~v86Mr+UPqr^q^j9#^d10 bW)H}bs_S=H5onr5y=91^>F%XdH`CKyDrPqy literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen1/pai-Key.pem b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen1/pai-Key.pem new file mode 100644 index 00000000000000..d9c99ad6627a72 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen1/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIFvO4uX+VmTQF1syrvK6v2sP0in4RHcx759qGCa5mYg5oAoGCCqGSM49 +AwEHoUQDQgAEHb+yZug7im1/udgKewNqtDdtRDwVc/wksaUzqtroOzb0oF5qxuPg +yWYPyJGq63dYEWiaRr1liKLp7qVTN9PTXQ== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen1/test_case_vector.json b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen1/test_case_vector.json new file mode 100644 index 00000000000000..1d31c361df1080 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen1/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "PAI Test Vector: Certificate Basic Constraint extension PathLen field set to 1", + "is_success_case": "false", + "dac_cert": "308201ce30820174a0030201020208579dcbb7baba75b7300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004fd586935ae27b56d82fb49e8565d718ec1080f5ed1b159f2faaf2d5eb01a296e3d99dc77a2494b277cdac44b1c119613db9164cb96086c7408f5489d424a26f9a360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e04160414cd6393b1b8866245d7b0e5fb7b6617165c1bb702301f0603551d23041830168014e326e5e214f1370ead3c0c8f828c3d911ddff593300a06082a8648ce3d040302034800304502203f6fc69b35baa176250407435429db3addad35dcafb72409ddf58d430e037caf0221009c9a1d0da8ec3a5a472c1b4e7a56c4bc58ade018f113323d98ae87dd0e0258cf", + "pai_cert": "308201be30820164a00302010202083ba01b0ec9c0fbba300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313059301306072a8648ce3d020106082a8648ce3d030107034200041dbfb266e83b8a6d7fb9d80a7b036ab4376d443c1573fc24b1a533aadae83b36f4a05e6ac6e3e0c9660fc891aaeb775811689a46bd6588a2e9eea55337d3d35da366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e04160414e326e5e214f1370ead3c0c8f828c3d911ddff593301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d04030203480030450221009dcddf0ed78cd4ab912f5ebe782bd258d8e5f9217489cfa95d483bf9956b23a302203bc22b86e40624ebd7930729bbcfad50e230e9725b5e4e581eff763ffad6f21f", + "certification_declaration": "3081e906092a864886f70d010702a081db3081d8020103310d300b0609608648016503040201304506092a864886f70d010701a0380436152400012501f1ff360205008018250334122c04135a494732303134315a423333303030312d32342405002406002507769824080018317d307b020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d0403020447304502206fa26f3807f0d97c57652a38fc299564f543465c9ed9cadd793a290790aa11de022100fa8550d0b761a3c63a6b5b4e5e4309f7b11c23d83deef774a605e23a28d8c5e1", + "dac_private_key": "700eaff4958a32a47844d18c81022c95d013a8b3b5c59f19f568ef4aa2a0ef8c", + "dac_public_key": "04fd586935ae27b56d82fb49e8565d718ec1080f5ed1b159f2faaf2d5eb01a296e3d99dc77a2494b277cdac44b1c119613db9164cb96086c7408f5489d424a26f9" +} diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen2/cd.der b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen2/cd.der new file mode 100644 index 0000000000000000000000000000000000000000..9cd34316368ab87666d5075eb5c035a6d1f3e01e GIT binary patch literal 236 zcmXqLe96YC)#lOmotKfFX+h&{gT@<7jLe3-2Hb3%32h#Xsmv@)j0UaUzT)?z^ryV3A{Ix|FP&`flba>j#hsJCesAW*&mwa? zx6fVAwIg_ShN9Qv1cNvO9-y~ng&7(DvoIMj81R93{2(4MSlAm3WI=pB7BLo)Q`T!W z1AqU&$jGOez337DLdt0rZ{mB!VB)2}h_y|w-{lOn^0z&3Ml4~~j0 d7b>o} bnh}Z%Y;Uii(oJqHxuL`(Rt7sugy3#ZF literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen2/dac-Key.pem b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen2/dac-Key.pem new file mode 100644 index 00000000000000..87309f31bc10b1 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen2/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIBPWuv1HhPAWitV3kRlwVPHYqYYPTh94In5qTq6sP3r2oAoGCCqGSM49 +AwEHoUQDQgAEAZTtvNK5CJUF50RljQ0RNGSN0H20LcenqPviZ+UNZRQ4xGfSyYeO +HpoRigtsb6+9adHzFJxJt52vCrhTq2ghSg== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen2/pai-Cert.der b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen2/pai-Cert.der new file mode 100644 index 0000000000000000000000000000000000000000..bf079b4c3ae3c239f82fd2876c567daad11b56cd GIT binary patch literal 450 zcmXqLV%%rY#F(;xnTe5!iNnZ8VV$CR*Hi;8HV&;ek8`#x%uEIbh7ty1Y|No7%sl+Q zi6teeMG7IQ#U%;>j*f;R210CH+H8z0j7^Jbm>79j+}zv@4HU$Ajf@OTj0_+kN`l`K z2n>ykfymU-)G`W>nVvYzj5H8tV+Xs5i4p2JW=3{qCkB>2)wjRnjpms=c#vmpV;$1T z9>3sh{~t%@?^|ownZ<+FoZDTxc+c}6>n8<&+^i$~dBLHh7ao?kHy+K`_ZHd8;VH8? z%^(Hn4dzf;VMfOPEF1=GKnfTf27DkfevlY27#P_MWI=pB7BLnPg{2!}woRxD_`$wP zr|gu2nc~Db^#<}FX=N5*U^R$j{Z%TL50rniU(9iOy1<<~h6@YpkOP(3gTcU+Ns-~3 zlbu!Phch`J>PsZ;%s-kP=&x(@+$OqW%Lro=Y08eSf%T<&NKzGuNK{ UJBcMbvdcV+@!My;9ZEd80EWbfkN^Mx literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen2/pai-Cert.pem b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen2/pai-Cert.pem new file mode 100644 index 00000000000000..0c0502bd7ac8f6 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen2/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBvjCCAWSgAwIBAgIIMkwgriE3ipUwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowMDEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTBZMBMGByqGSM49AgEGCCqGSM49AwEH +A0IABI4l7ftfMp404OBuOzw7VIkHX6DNj/xBA/e1fAcDF1Kszrt1o7zn+K+SU/Gz +LBPzoMLF0OF3h4HFby9LFLUISRyjZjBkMBIGA1UdEwEB/wQIMAYBAf8CAQIwDgYD +VR0PAQH/BAQDAgEGMB0GA1UdDgQWBBQgpbBctpB+UPgHqix2ykA2IZGcfzAfBgNV +HSMEGDAWgBRq/SJ3H1Ef7L8WQZdnENzcMaFxfjAKBggqhkjOPQQDAgNIADBFAiEA +9kI+OonwzGzwf3QZPjfxNsCPfoZJthWotKgIWktfRJkCIHdCSaSA1vfhvKm4+5Np +rcn9kgRrWYo3agH28y64Igxt +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen2/pai-Key.der b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen2/pai-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..d8b1ef63a1b806d9acfd06348d24ce7a01629dcf GIT binary patch literal 121 zcmV-<0EYiCcLD(c1RzBB2nDSQg?@9`ucD~2)%=vToy0*PjN$z1%NQmCWoMIjNBHj6JhtlJ0PUGoa Srd9%fbKAHlqFzOpH7%Zfp^;>QS zub#xPP2BVBgEtSuwl2HzzUj@wfcaH>6O5-xOc42MGfk$b2S4t2pj=6IU$R zRqn}nhk3!zyCE`*6Aa=Ec!1uP6=r1o&%$KDV893B@q>84U}0}CkOlGiSj1RF?w3C2 zs9JeSD(8r!-?PJum>B*nEisS>Nh`Ae1Fu1Z^U3OiyJVE-oibr&tx@!BwQS#!j2y_! z9t;MqOo|M1D~~?E^W)YkgZqk;ifxrOES7atPP}l!B|dwl)bf78ASQ+46W5JYyWaqY?jM@KLGtPjhp}g literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen_presence_wrong/dac-Cert.pem b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen_presence_wrong/dac-Cert.pem new file mode 100644 index 00000000000000..d30c9c11492931 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen_presence_wrong/dac-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBzjCCAXSgAwIBAgIIUiZjEXYyY+cwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +REFDMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAT2f7TbU6uSALYXSc3g7OFWtabY74Ls +4VCfer1gM5YYkBT1Okh5Qqjop3RZbwIxOl4L7pGopLp3SQHcA6D53VQco2AwXjAM +BgNVHRMBAf8EAjAAMA4GA1UdDwEB/wQEAwIHgDAdBgNVHQ4EFgQU33XnCHqpyhps +xEFO5sOiAgD8pXQwHwYDVR0jBBgwFoAUCeSrwbocI57KNAMFfCFJhTmHuGMwCgYI +KoZIzj0EAwIDSAAwRQIhAJ15xefc+NqqMN8hknM9Iyg4poh5kdDIRF9rqRqnjxFS +AiBzyPcwhfIwk3U9DYbtsra24sgD4MAPRk6H9M0WmkS/Tg== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen_presence_wrong/dac-Key.der b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen_presence_wrong/dac-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..5092408cb41a9f55453537dd61219a6efd5f88f4 GIT binary patch literal 121 zcmV-<0EYiCcLD(c1RxI@ft8|LLHONt-oWD?mjd`F71_&yK zNX|V20SBQ(13~}<_J6e7Q>&5ywiijw;Oya6wWiqbg6!c?pL)GuGnN>T6!khtc|xe@ br*v6w0x>#X3+|Dqq`G%W0o((i`Q20;Z?`lB literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen_presence_wrong/dac-Key.pem b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen_presence_wrong/dac-Key.pem new file mode 100644 index 00000000000000..d6723c139c507f --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen_presence_wrong/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIA8agZWiW0H43XTewOMe5DYvH7FbNV09G7AdnwA5V415oAoGCCqGSM49 +AwEHoUQDQgAE9n+021OrkgC2F0nN4OzhVrWm2O+C7OFQn3q9YDOWGJAU9TpIeUKo +6Kd0WW8CMTpeC+6RqKS6d0kB3AOg+d1UHA== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen_presence_wrong/pai-Cert.der b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen_presence_wrong/pai-Cert.der new file mode 100644 index 0000000000000000000000000000000000000000..91e9c7a1b556e6d077e42da8a99931eb1f34f937 GIT binary patch literal 448 zcmXqLV%%fU#F)5%nTe5!iG$oCN(R zD|7nu)=kx46rEpR9B!YuFQHuKgq;6{;A1MP8ErQ^@5jZ@?VS7S{p9P5t_4hHlYF!| z*&xw?ALv0@VMfOPEUX61K+1p*B)|_60EPi0n}IBd&&MLhBEtD(^}$^-%JWW{FtgSu zdbV1&??^U~2T3cl07I%lB<%$^JeZcK^{(_dOl zThaT`_OQJe`+~_I`Fd?zmbdosFS+oiTS~jpiXW(Ce^T)OvnF@XGVS;*d}|U?w4V-=LJ?1sBMDCpew8nxTW^1JS3hCCV0RqI9#7Cy b#v~B5>s2mIW8KE2V6nF(ao^ppEvBWNNnHNZj=S}6 SW!4r6?XUQJSX;b*+I0YQ`9|3Q literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_ext_extended_key_usage_present/dac-Cert.der b/credentials/development/commissioner_dut/struct_pai_ext_extended_key_usage_present/dac-Cert.der new file mode 100644 index 0000000000000000000000000000000000000000..a454952fea9c884fa39a353620f2fb8951423b3e GIT binary patch literal 466 zcmXqLVmxQi#8|R`nTe5!i6d9~iKa@0>?{K=HV&;ek8`#x%uEIbh7ty1Y|No7%sl+Q zi6teeMG7IQ#U%;>j-G}h210CH+H8z0j7^Jbm>79j+}zv@4HU$Ajf@OTj0_+kN`l`K z2n>ykfymU-)H2Gz4TqU7j?UQ4L=$D=VX*)i9%&%V#twEV6C>2g%#7^JP7Ew_873t5 zT|KCg>HFQuN+vD3^+n1AZF|2P_g_mdTYG+gSIEPKs*%qn+Si$Aohmtd>`*gH=0`t% zOY!BbTd%mE)xNbj!643n2k32CVMfOPEKCLr27DkMKZpkm7WM`MSrDI(MT|vc;}NEN zbMM}L_{}Wi>_UUBPq%ySnQI^ql2&E`23~_m@Z5yIC;ED>%{Z0SabwO=lLm9-?gj3y>GJ2 e4NpUkb2B-PEpC}P;jG!sr2K2@*1b>W&I17He2&ck literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_ext_extended_key_usage_present/dac-Cert.pem b/credentials/development/commissioner_dut/struct_pai_ext_extended_key_usage_present/dac-Cert.pem new file mode 100644 index 00000000000000..35647681415c40 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_extended_key_usage_present/dac-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBzjCCAXSgAwIBAgIIbRvkKSR4HZowCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +REFDMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAASdAJBhjtXBKGlN90I6HGZbhehkkCs/ +Ttjf6xumrc+/ilThoSVZ5xiHrjQqynTNxsKDBGnxTg85F6cFtdRHzSvao2AwXjAM +BgNVHRMBAf8EAjAAMA4GA1UdDwEB/wQEAwIHgDAdBgNVHQ4EFgQUscQC3p3d3eH2 +NmjNoTC15bdJvJ0wHwYDVR0jBBgwFoAUU51g/ciOjNaYymqI2JzFNIAY8DUwCgYI +KoZIzj0EAwIDSAAwRQIgRM3YEgb8BRlLLrbbzT0Sok/a5QNd6zQbd6Oa0jENGcYC +IQD3urqAR46THNhJMQjOmQjGo4SZkM022WJv1ic7jeSdng== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_extended_key_usage_present/dac-Key.der b/credentials/development/commissioner_dut/struct_pai_ext_extended_key_usage_present/dac-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..ebe7f3a9214556e601872f6aadc7880da5fed948 GIT binary patch literal 121 zcmV-<0EYiCcLD(c1R$15y0Ms^pi{CM%Y=NUT+a~RGqkaE8>}3NZ>>Ek27I6j1_&yK zNX|V20SBQ(13~}1d%#7^JP7Ew67sT0$x`L zR9450IY&(zBtDoL$b+PnS%AUSAd>Z0sa!r#{>^?d$LZ+;ckUQ2EUYt704Y!fnI~o- z!o~p%I9676W+pg`5jo(QJs1pJnG}3Z{JD7d?Rn*2!6Mo5WhED^ b$29GPn}4Dx6c(kh=FeGgFE*YLi|bP5Yh*I^ literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_ext_extended_key_usage_present/pai-Key.pem b/credentials/development/commissioner_dut/struct_pai_ext_extended_key_usage_present/pai-Key.pem new file mode 100644 index 00000000000000..419e55b38c70af --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_extended_key_usage_present/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIN2ZM/2MI4zaAAkF+1m4p+f9O1pAkwDR8XIQoHsLsi/woAoGCCqGSM49 +AwEHoUQDQgAEJNAXB2P49al3RgFacwI0oPBi6I5QSFAny10z9R55tcc6excPyeGL +bMc07YSbf6IoFBalsObPWW8vNp4Ri+tS5Q== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_extended_key_usage_present/test_case_vector.json b/credentials/development/commissioner_dut/struct_pai_ext_extended_key_usage_present/test_case_vector.json new file mode 100644 index 00000000000000..1cf21e133a58e1 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_extended_key_usage_present/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "PAI Test Vector: Certificate includes optional Extended Key Usage extension", + "is_success_case": "true", + "dac_cert": "308201ce30820174a00302010202086d1be42924781d9a300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d030107034200049d0090618ed5c128694df7423a1c665b85e864902b3f4ed8dfeb1ba6adcfbf8a54e1a12559e71887ae342aca74cdc6c2830469f14e0f3917a705b5d447cd2bdaa360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e04160414b1c402de9ddddde1f63668cda130b5e5b749bc9d301f0603551d23041830168014539d60fdc88e8cd698ca6a88d89cc5348018f035300a06082a8648ce3d0403020348003045022044cdd81206fc05194b2eb6dbcd3d12a24fdae5035deb341b77a39ad2310d19c6022100f7baba80478e931cd8493108ce9908c6a3849990cd36d9626fd6273b8de49d9e", + "pai_cert": "308201e230820188a003020102020847ce31e24a6ae91c300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313059301306072a8648ce3d020106082a8648ce3d0301070342000424d0170763f8f5a97746015a730234a0f062e88e50485027cb5d33f51e79b5c73a7b170fc9e18b6cc734ed849b7fa2281416a5b0e6cf596f2f369e118beb52e5a3818930818630120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e04160414539d60fdc88e8cd698ca6a88d89cc5348018f035301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e30200603551d250101ff0416301406082b0601050507030206082b06010505070301300a06082a8648ce3d040302034800304502204cc8fcd1ddedcf23fa53146b5f76a9e5e9abbf3b327e8c22dd86c7eaf717e9e1022100c2b60628f28bd08448274cb9cdb0bfe4a110ad1e71d41a9b5cfece8f5398abae", + "certification_declaration": "3081e906092a864886f70d010702a081db3081d8020103310d300b0609608648016503040201304506092a864886f70d010701a0380436152400012501f1ff360205008018250334122c04135a494732303134315a423333303030312d32342405002406002507769824080018317d307b020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d040302044730450221009e517b74b38b852f7a859a0619d04ae6063c4b5bc3957182fd068d23756605b6022038bd7461bedd8ab4357589620a4f96c7468c0a697d7212bf78f3c32b178f96d7", + "dac_private_key": "964abab1989ea053b21acb847ca65ccf10de33b4b1741bac1c886fad3d29067c", + "dac_public_key": "049d0090618ed5c128694df7423a1c665b85e864902b3f4ed8dfeb1ba6adcfbf8a54e1a12559e71887ae342aca74cdc6c2830469f14e0f3917a705b5d447cd2bda" +} diff --git a/credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_missing/cd.der b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_missing/cd.der new file mode 100644 index 0000000000000000000000000000000000000000..773ed44abf832e2fc1c418b081ce06f2f252bd95 GIT binary patch literal 235 zcmXqLe8I-4)#lOmotKfFX+h&HgU0JjjLe3-2Hb3%32h#Xsmv@)j0UapG#WN-KB%|o9t96nm Sdk&pVljmgd+wpTwGamq;MM%W} literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_missing/dac-Cert.der b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_missing/dac-Cert.der new file mode 100644 index 0000000000000000000000000000000000000000..a59b4865e1500a8f1caaabd0c1705a78b86e9c69 GIT binary patch literal 467 zcmXqLVmxoq#8|R`nTe5!i6dA`Shas;(GCMHHV&;ek8`#x%uEIbh7ty1Y|No7%sl+Q zi6teeMG7IQ#U%;>j-G}h210CH+H8z0j7^Jbm>79j+}zv@4HU$Ajf@OTj0_+kN`l`K z2n>ykfymU-)H2Gz4TqU7j?UQ4L=$D=VX*)i9%&%V#twEV6C>2g%#7^JP7Ewum&-SN z|7V=H>k$LrkN0-Fxo_MLH$E1|BwM?SRd0vxY1?0XK7rGM;vO}6h~)*xJ`O(qs_12C zTEGv(c}MlW@}60oU=U}(1N646FeBrC7A6A*13nOsAH)L&3wwisEQrs?BE}+8nBOWJ z_$}A?>{B+zYNvO;NfUa08pwmBm05s+*C3*}l4mYUe)XeEk27W&ow-=;uwq>+av(E% zG8niqDKb1-o>sC(Y@c}kb4?C5)2pj0yL3J;NlxjCwLYTm(Ch2~RMK`WdU{Ffq4Ktg b$CO?kh*S=gxbUODf46$;x{l8#y527U$C!%s literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_missing/dac-Cert.pem b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_missing/dac-Cert.pem new file mode 100644 index 00000000000000..7109505fe34bab --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_missing/dac-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBzzCCAXSgAwIBAgIIUyoTJY+pcrgwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +REFDMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQK03ew9/4zbrriAA747z67C9jfVzPG +VgIdfboFLrgtyz36DkxRllJe4oFIFm5TXeNTx+py6VVmUPgxnsUu9Q3Mo2AwXjAM +BgNVHRMBAf8EAjAAMA4GA1UdDwEB/wQEAwIHgDAdBgNVHQ4EFgQUcW+FHVH2bTPN +5QYBe0LuTWKQjPkwHwYDVR0jBBgwFoAUIakMnQRve+LS42iaMszRe0CoroUwCgYI +KoZIzj0EAwIDSQAwRgIhAOKnZnSsFr4Xb+cpCAY11ap5iizzpGNkil07xCdAjUNA +AiEAhtZbl3RlwneGkcYi6cBZI1EY0PiPj7snha6I8zQtS+g= +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_missing/dac-Key.der b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_missing/dac-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..1ad6b68646477d86ccb486eb1d79fad02b82d3fc GIT binary patch literal 121 zcmV-<0EYiCcLD(c1R$~VH%SPw7|~QPP1}4pvs_&kY^&A%yX~OyNiVkJmJpx{1_&yK zNX|V20SBQ(13~}<3e$J6_x>|(y5ay1`0qZu3)tURGsac|9euh5F1RhrJ^BtzQI=9( b;(_%WWvF7*w}+7~qD literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_missing/dac-Key.pem b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_missing/dac-Key.pem new file mode 100644 index 00000000000000..a0f98ee1892c2d --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_missing/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEILHzN0kIsRjRVDBN23w4s1xdFmyr1f277aDxSS+245YQoAoGCCqGSM49 +AwEHoUQDQgAECtN3sPf+M2664gAO+O8+uwvY31czxlYCHX26BS64Lcs9+g5MUZZS +XuKBSBZuU13jU8fqculVZlD4MZ7FLvUNzA== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_missing/pai-Cert.der b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_missing/pai-Cert.der new file mode 100644 index 0000000000000000000000000000000000000000..20db1e7ea764aca85cbc95e24d7d3aedad9a61a5 GIT binary patch literal 446 zcmXqLV%%lW#F)5%nTe5!i6d>{h9cAb(a#OI*f_M>JkHs&Ff$n#7)lt3u`!3TF!S*H zCYF?>7Ab_J7MCalI64}N7znX(X|pl1Fg7i!VPfQAadUGsG*A%dH8L_VF*1OFC<%T` zATTsC1|m~SQ_CnkW_scJobofudi7A%~sEBkbLckic^%tE72 zUJa{~TJ<_avXjq!*qYUKvZP(fi*??Cf1TwK1uIq@-|@osVP{@TOxBf|vfsPPUQJn? zY>)`_26L#aFeBrC77hb8AjQPUXuu5;<7WYe0VA7%EQrI$BE}-3xRPfsOMdmEOOG>V z8J)RU?XY59tARX7TA2kHQVk+mf0fGR1LfcB7jvARE^z0L;ljc?^@cyA?^!>CfgY%17ZhDSBd7P2lF?D2$i4;1_&yK zNX|V20SBQ(13~}<;c%goEgj{ji;ePRX>l_0N`R_jg)WE`Yh%vvwQ7pVbcZ5J1)jkE biFa6VsHn%d=sn?yZiHNF)R`UkigxOhgPb#w literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_missing/pai-Key.pem b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_missing/pai-Key.pem new file mode 100644 index 00000000000000..ed0fb76b1159cd --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_missing/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIGvoKTqhAuw+VhAh7guFJtsZJgNiB0tXieamB/M3hQiVoAoGCCqGSM49 +AwEHoUQDQgAE4XChky0d5aeLjfJkaXEy8kqAqmKFLogUa2PO8LVqisl0hyJKBZ7A +/ol3WHCoqMe46D3hiW6EXGrUmR33inbqlA== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_missing/test_case_vector.json b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_missing/test_case_vector.json new file mode 100644 index 00000000000000..4d8e1a7c2c6480 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_missing/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "PAI Test Vector: Certificate Key Usage extension critical field is missing", + "is_success_case": "false", + "dac_cert": "308201cf30820174a0030201020208532a13258fa972b8300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d030107034200040ad377b0f7fe336ebae2000ef8ef3ebb0bd8df5733c656021d7dba052eb82dcb3dfa0e4c5196525ee28148166e535de353c7ea72e9556650f8319ec52ef50dcca360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e04160414716f851d51f66d33cde506017b42ee4d62908cf9301f0603551d2304183016801421a90c9d046f7be2d2e3689a32ccd17b40a8ae85300a06082a8648ce3d0403020349003046022100e2a76674ac16be176fe729080635d5aa798a2cf3a463648a5d3bc427408d434002210086d65b977465c2778691c622e9c059235118d0f88f8fbb2785ae88f3342d4be8", + "pai_cert": "308201ba30820161a003020102020866a1b07235bf5be7300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313059301306072a8648ce3d020106082a8648ce3d03010703420004e170a1932d1de5a78b8df264697132f24a80aa62852e88146b63cef0b56a8ac97487224a059ec0fe89775870a8a8c7b8e83de1896e845c6ad4991df78a76ea94a363306130120603551d130101ff040830060101ff020101300b0603551d0f040403020106301d0603551d0e0416041421a90c9d046f7be2d2e3689a32ccd17b40a8ae85301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d040302034700304402204df1248dd346ab1959298df2e1203593afd047b6a9d763b3853ed6d89bb92b3302204c2cc79f7c296c57d5ba41fbfb5507171a26c35574d459604fc9f6feb6833a60", + "certification_declaration": "3081e806092a864886f70d010702a081da3081d7020103310d300b0609608648016503040201304506092a864886f70d010701a0380436152400012501f1ff360205008018250334122c04135a494732303134315a423333303030312d32342405002406002507769824080018317c307a020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d04030204463044022016a10fbb091c9f1dfcea447a6c650472c16ce8b1f9efdfce8a2dd69a87633950022026ed8b4a9435f794496465c90115dad57e19c98cc2cd661f09044eb8f99c830e", + "dac_private_key": "b1f3374908b118d154304ddb7c38b35c5d166cabd5fdbbeda0f1492fb6e39610", + "dac_public_key": "040ad377b0f7fe336ebae2000ef8ef3ebb0bd8df5733c656021d7dba052eb82dcb3dfa0e4c5196525ee28148166e535de353c7ea72e9556650f8319ec52ef50dcc" +} diff --git a/credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_wrong/cd.der b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_wrong/cd.der new file mode 100644 index 0000000000000000000000000000000000000000..8c0dddaa5d19fc5d340bc6b9572bc22704428ccf GIT binary patch literal 235 zcmXqLe8I-4)#lOmotKfFX+h&HgU0JjjLe3-2Hb3%32h#Xsmv@)j0UaRBh<%bzNAr-zv@}J`~@q|s2_8A@vb8O!U-k?BL%kJ_d;5GxU;vGUi^B2mCJB} S`*nkZ0&~kl4H}Q|p9BCVo<;`% literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_wrong/dac-Cert.der b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_wrong/dac-Cert.der new file mode 100644 index 0000000000000000000000000000000000000000..5994db23ee89dc43c681a42b490675350657e332 GIT binary patch literal 466 zcmXqLVmxQi#8|R`nTe5!iNis6r+VCv+a(5EY#dr`9_MUXn3)U=3?&T2*qB3En0fep z6H7``ixfgqi%S#&96b$1420OYwAmP07@HQ=FfsD5xVgC*8YqbK8W|aw7#To7lmx#e z5EvR61Cgnvsb!Rb8xAvF9G$V7i6+X#!(st4JkmgzjUDV#CPt`}nHkxcofug5S@@g| zpK@H@IY`j!yhmAgZ*w^z bM9Ur~bT#y_4mB+h)18t${>Mx1Cia6ct<*5r literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_wrong/dac-Key.pem b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_wrong/dac-Key.pem new file mode 100644 index 00000000000000..af6abfec73d6f1 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_wrong/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIP4QnKbZIkAwC0Km3XAD3lYcB1IZgvUpGHHqjKhI2oyPoAoGCCqGSM49 +AwEHoUQDQgAEvjhMy1eUxx9DUhFKyepHsWRrewaUBTCeXs8xx0RP0Ui7q/UNxQW7 +tkTLHiZ0NfSwDjUtENOdkjz+x0vuJvaDMA== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_wrong/pai-Cert.der b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_wrong/pai-Cert.der new file mode 100644 index 0000000000000000000000000000000000000000..46129ac8016a9b031cafb1afedcc7749b92d5b8a GIT binary patch literal 447 zcmXqLV%%-e#F)5%nTe5!iKDRF>SxuGBQ^$HY#dr`9_MUXn3)U=3?&T2*qB3En0fep z6H7``ixfgqi%S#&932fs420OYwAmP07@HQ=FfsD5xVgC*8YqbK8W|aw7#To7lmx#e z5EvR61Cgnvsbv%%Gd*#b8EGKQ#twE96C>1d%#7^JP7EyHBHCKcG(WoYzu~p9zv8ldvW!} z$p(o)Z!m|-3NtePXW=kl15!+kj0W5wF@6?c7%;LK$bvY0EMhDoB`gYD{SQxa?lCTO zdnHnA#Zvrvwt+lITA2kHQVk+mf0fGR1LfcB7jvARE^z0L;ljc?xY6?MeA%A1*n$?#w+VMTX9wM^9LJ=(aS76PlmEFVVw7Ei-6N8H3`fM+B4Z?4(hBlxI1_&yK zNX|V20SBQ(13~}<_E?65%!A_G|A6Z=Pa*E~H#dK2PqXDl9)B(V1E(-%7-2yDR~F2f b-uA8L&Cnudg T@$k*Hs|}GJX^D9;z5Y7^O-xG` literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_ext_key_usage_crl_sign_wrong/dac-Cert.der b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_crl_sign_wrong/dac-Cert.der new file mode 100644 index 0000000000000000000000000000000000000000..9e3ae97471e915c86e764029ea85cff17a448a73 GIT binary patch literal 467 zcmXqLVmxoq#8|R`nTe5!i9<*0VD8N~?L7uuY#dr`9_MUXn3)U=3?&T2*qB3En0fep z6H7``ixfgqi%S#&96b$1420OYwAmP07@HQ=FfsD5xVgC*8YqbK8W|aw7#To7lmx#e z5EvR61Cgnvsb!Rb8xAvF9G$V7i6+X#!(st4JkmgzjUDV#CPt`}nHkxcofufGYfdZ7 z?3rzH>RQH84!f6pk^Qx|j!aWXXM4LxHZ1G?m6qOXj~u;Bjh~*;I<<3Jm3Wve%O$Pe zZyi%Mv`t7qq!PV2!643n2k32CVMfOPEKCLr27DkMKZpkm7WM`MSrDI(MT|wnao%>> zsS}sB-92Jle*eJFeG1ZF4;#pXq?K8Kf!82%B7*T~yp#^tr1A&zHca&iUD4LtiyX+z zo(u+VOo|Lse_n5@t}J*g@~KefKmkweFvKlE?y! cJGDg{{$F@68=KRY;lb^^=Dye@+pk5}00LT##sB~S literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_ext_key_usage_crl_sign_wrong/dac-Cert.pem b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_crl_sign_wrong/dac-Cert.pem new file mode 100644 index 00000000000000..8509fa14bbd1a7 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_crl_sign_wrong/dac-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBzzCCAXSgAwIBAgIILCrBbdnsh4wwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +REFDMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQ7fMsgmYybNMrWaMUIPukOWY992sSW +IGcG7bwdVmrv1ISN1uJBSjUz5cwqyrmWehdWHQTSKo32iJSwhpBnwiRbo2AwXjAM +BgNVHRMBAf8EAjAAMA4GA1UdDwEB/wQEAwIHgDAdBgNVHQ4EFgQUQZ63HZWRpYbd +xDN338D5viAb9cMwHwYDVR0jBBgwFoAUyFgBxV8aLAqSd+CesJVMVaiGjY0wCgYI +KoZIzj0EAwIDSQAwRgIhAJX514J7eXDjFPJxHMB19jzYTosOOSAY1WYYs38ZS2U7 +AiEAk5qu/idiFKA43H1ysP/Q7x1dbI5oSAtDrN8Wkj31ctY= +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_key_usage_crl_sign_wrong/dac-Key.der b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_crl_sign_wrong/dac-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..53af0454bf5bd5172c3b23e98531e63fc16f66ea GIT binary patch literal 121 zcmV-<0EYiCcLD(c1R!FMY1(A&+Kq)*^pW9uZ?F_yaU-np0*C1U425f@i9(%GPMb2tMf!S&x0%#Fiju2JO5ZR%-9mgpJnXK}t0< b<;*I|xt4ktRviS=DvkDtl(2@7XTl^~@4__P literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_ext_key_usage_crl_sign_wrong/dac-Key.pem b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_crl_sign_wrong/dac-Key.pem new file mode 100644 index 00000000000000..9cfe93724fbc34 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_crl_sign_wrong/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIGKPadpk7tqNhVf0keF6b7AUXXEjrPECh+kADIVrpYlCoAoGCCqGSM49 +AwEHoUQDQgAEO3zLIJmMmzTK1mjFCD7pDlmPfdrEliBnBu28HVZq79SEjdbiQUo1 +M+XMKsq5lnoXVh0E0iqN9oiUsIaQZ8IkWw== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_key_usage_crl_sign_wrong/pai-Cert.der b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_crl_sign_wrong/pai-Cert.der new file mode 100644 index 0000000000000000000000000000000000000000..111744fe59df962dea06ff5896a12dc6a8b22c80 GIT binary patch literal 450 zcmXqLV%%rY#F(;xnTe5!i9_8fw&&Q5-XsGqHV&;ek8`#x%uEIbh7ty1Y|No7%sl+Q zi6teeMG7IQ#U%;>j*f;R210CH+H8z0j7^Jbm>79j+}zv@4HU$Ajf@OTj0_+kN`l`K z2n>ykfymU-)G`W>nVvYzj5H8tV+Xs5i4p2JW=3{qCk7TB1BH5aMb~4iukJ0fIWYgl zY37toW{oC|nS%bBk5yy!SDw&LZ`r3mLqdPvQDt9&oMneLEt;&7<;A$~evMPE>6XQ5 z1}Q*qFo((tGcx{X;V@tWQcR4D27DkfevlY27?@ZLWI=pB7BLo)6A_F@IZq{#4C z`E#z{l5KmYUt;+@Nid@|^UhRsO^M@r VQ##XuTgG}xf}!!o`w!Ju0RZ(tf&c&j literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_ext_key_usage_crl_sign_wrong/pai-Cert.pem b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_crl_sign_wrong/pai-Cert.pem new file mode 100644 index 00000000000000..0905e9c3765eea --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_crl_sign_wrong/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBvjCCAWSgAwIBAgIIJ0JdjMbYjWIwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowMDEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTBZMBMGByqGSM49AgEGCCqGSM49AwEH +A0IABCwwIH8HIUXGq9W9cjzAn+jLA2SyNoE0gWkRTynjJV0vqcgrZ4S+L5gYL57F +I00QbKbCsqKTJGpKAb7ffEJtNbSjZjBkMBIGA1UdEwEB/wQIMAYBAf8CAQEwDgYD +VR0PAQH/BAQDAgIEMB0GA1UdDgQWBBTIWAHFXxosCpJ34J6wlUxVqIaNjTAfBgNV +HSMEGDAWgBRq/SJ3H1Ef7L8WQZdnENzcMaFxfjAKBggqhkjOPQQDAgNIADBFAiEA +4yPzbU6ktryX0gTzkhFodmJc6rnpLgUn6BWSne6a8V4CIAS6rQi9EimrLw2ZIUVk +XgrsdZlACxw7pGAxM7Hf4Seq +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_key_usage_crl_sign_wrong/pai-Key.der b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_crl_sign_wrong/pai-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..7118a2cace263847dbec56680e0fc0ddd4ee78bb GIT binary patch literal 121 zcmV-<0EYiCcLD(c1R&f8fu@Ej-G}h210CH+H8z0j7^Jbm>79j+}zv@4HU$Ajf@OTj0_+kN`l`K z2n>ykfymU-)H2Gz4TqU7j?UQ4L=$D=VX*)i9%&%V#twEV6C>2g%#7^JP7ExX56nzd z-dghgd|gs_|4Q1{ympK2WkQz!RZ<=(GzcnKFOWIR_x)X25}WhMkKJ!2C+p@Je7tZ~ zCQ3t4FRnrJ!q3GC25|;FKyS+mGcx{XVKQJa-~;jaK|Elvus0aUg7|zaVk{z|6Xxdz z230O_lepn`{>I-`{l8+a8pwmBm05s+*C4XIZq)?J8x+}WDh5OcZk1su^nO7LgO}ICA{@oiZ-J5M0`&Rv6Qe-$PoOHx+U#^mj c>zagPKjWsqN+~&+8P~L1E>Jw_lFW-m0MF8m*8l(j literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_ext_key_usage_dig_sig_wrong/dac-Cert.pem b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_dig_sig_wrong/dac-Cert.pem new file mode 100644 index 00000000000000..940220a7b0fe86 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_dig_sig_wrong/dac-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBzjCCAXSgAwIBAgIIC4u07HoxDRkwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +REFDMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQp4DY0JO05DvnrdHHf1Ga1boc4t3YS +Of8kZOAggBEgO6Acww737nZiBkPJ8YvtGZMtbjDx0NUcWigRLl6AKdD5o2AwXjAM +BgNVHRMBAf8EAjAAMA4GA1UdDwEB/wQEAwIHgDAdBgNVHQ4EFgQUVZCfbVFSeaBG +GNhOz9j9qo/6XNUwHwYDVR0jBBgwFoAUuetPx/mKxu/s4mt6++GsPFIMFq4wCgYI +KoZIzj0EAwIDSAAwRQIgdG0VuluARAva10j0jMsDqDMekN6dn93YqUeDPQGOqvgC +IQDFE2LEMb5tIhxFrGDG+V6X6mR0yWlegrseURdi0hzoog== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_key_usage_dig_sig_wrong/dac-Key.der b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_dig_sig_wrong/dac-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..e227ae6300b54d283d8192406cafa747c1f56cc6 GIT binary patch literal 121 zcmV-<0EYiCcLD(c1Rz_p>H){ryx9(Rp-iZ|ckV)cnIdO&e#p3*cCuUCGBThF1_&yK zNX|V20SBQ(13~}JkHs&Ff$n#7)lt3u`!3TF!S*H zCYF?>7Ab_J7MCalI64}N7znX(X|pl1Fg7i!VPfQAadUGsG*A%dH8L_VF*1OFC<%T` zATTsC1|m~SQ_CnkW_scJobofudQI-fY|XsS3fRB(Ab&D;OH zq2k!ayLrZ+7w%Urh{^2zp76!MaQDByf0rIExv=HTdG&M!@3+3TPX(gSTu7Jm)19+8 z%^(Hn4dzf;VMfOPEF1=GK#GZx(SQ#m#t#w$1_NW8fh>s6$0Eievh%h7@tyQJL*`2|_g-OBg zwYt2a)cPY18i9TiZT8o`zTK%br`2hbCg-oRFDn?8nG|$#OAeGMo%b&jTK&lVDvCCyZ(;; b(&41gw9L;ZXCO=MO+DohTg=dB9!@QsgU2+v literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_ext_key_usage_dig_sig_wrong/pai-Key.pem b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_dig_sig_wrong/pai-Key.pem new file mode 100644 index 00000000000000..8e8fc0cf720ac8 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_dig_sig_wrong/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIN3Wg87XP3SZGees/FsjU3pmRknvBAigRGNckms/mmcooAoGCCqGSM49 +AwEHoUQDQgAEMInkQSwpJEMAeApI5W6/54B4xrHdbjPzob8lcFxpjfdg9DAxu/6O +/tLhpNC0zM8nZyBL7U095RBbzNBnHk4tnA== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_key_usage_dig_sig_wrong/test_case_vector.json b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_dig_sig_wrong/test_case_vector.json new file mode 100644 index 00000000000000..ca148003a218cd --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_dig_sig_wrong/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "PAI Test Vector: Certificate Key Usage extension diginalSignature field is wrong (not present for DAC and present for PAI", + "is_success_case": "false", + "dac_cert": "308201ce30820174a00302010202080b8bb4ec7a310d19300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d0301070342000429e0363424ed390ef9eb7471dfd466b56e8738b7761239ff2464e0208011203ba01cc30ef7ee76620643c9f18bed19932d6e30f1d0d51c5a28112e5e8029d0f9a360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e0416041455909f6d515279a04618d84ecfd8fdaa8ffa5cd5301f0603551d23041830168014b9eb4fc7f98ac6efece26b7afbe1ac3c520c16ae300a06082a8648ce3d04030203480030450220746d15ba5b80440bdad748f48ccb03a8331e90de9d9fddd8a947833d018eaaf8022100c51362c431be6d221c45ac60c6f95e97ea6474c9695e82bb1e511762d21ce8a2", + "pai_cert": "308201bd30820164a003020102020856faa89dca603f66300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313059301306072a8648ce3d020106082a8648ce3d030107034200043089e4412c29244300780a48e56ebfe78078c6b1dd6e33f3a1bf25705c698df760f43031bbfe8efed2e1a4d0b4cccf2767204bed4d3de5105bccd0671e4e2d9ca366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020186301d0603551d0e04160414b9eb4fc7f98ac6efece26b7afbe1ac3c520c16ae301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d040302034700304402203eeb271f311aafc44028514e18863fd6f5edb9229c8542b22909fa76f4a8012302202c6d74c07422cf4f7612abf24c6022bd29f8235035dc847edd8f358958a8c198", + "certification_declaration": "3081ea06092a864886f70d010702a081dc3081d9020103310d300b0609608648016503040201304506092a864886f70d010701a0380436152400012501f1ff360205008018250334122c04135a494732303134315a423333303030312d32342405002406002507769824080018317e307c020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d04030204483046022100d8a4e31e6270ba0e9dc5d019eb91dcdf2b7a55a51b78d47941c756c6fb5ea8fb0221008ef9bf84a762e459ed3f1a54861bc1c8a5767afd1d463f4fa3e7d72c280850d3", + "dac_private_key": "5bb3ea01c7d6bcd90e76a14ca8bb77ee427d992267747ec8b89a76b25bdc3232", + "dac_public_key": "0429e0363424ed390ef9eb7471dfd466b56e8738b7761239ff2464e0208011203ba01cc30ef7ee76620643c9f18bed19932d6e30f1d0d51c5a28112e5e8029d0f9" +} diff --git a/credentials/development/commissioner_dut/struct_pai_ext_key_usage_key_cert_sign_wrong/cd.der b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_key_cert_sign_wrong/cd.der new file mode 100644 index 0000000000000000000000000000000000000000..235ec98e227e88cf7e971992ace354e2f4f798a3 GIT binary patch literal 236 zcmXqLe96YC)#lOmotKfFX+h&{gT@<7jLe3-2Hb3%32h#Xsmv@)j0UamYJT95aKxq3mXEa#a+>AB Td#0r}NNsmandwrS)BYC#%U?)F literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_ext_key_usage_key_cert_sign_wrong/dac-Cert.der b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_key_cert_sign_wrong/dac-Cert.der new file mode 100644 index 0000000000000000000000000000000000000000..6a600f9570741876aabf58c58064687ab304f82b GIT binary patch literal 466 zcmXqLVmxQi#8|R`nTe5!iKArBoa-&=8mb0dY#dr`9_MUXn3)U=3?&T2*qB3En0fep z6H7``ixfgqi%S#&96b$1420OYwAmP07@HQ=FfsD5xVgC*8YqbK8W|aw7#To7lmx#e z5EvR61Cgnvsb!Rb8xAvF9G$V7i6+X#!(st4JkmgzjUDV#CPt`}nHkxcofueVK0W_> zp1jerAKn?qPiqx_+n^yLA-bVbl3UhfvrVCOaFl7$Lfa=>3wEm}Mej@Cda?f1#U2sg zMS13hfh{2oYkw|IFo-kY0eV|jn33^63zGqZ0UwCR58?rXg}uQ*7R2Xc5n~Zy_UHV> zGBbKV=S$H_PQ|w;J8LE}8_0vCm05s+*C5hxK04~u&+Baexz!a}lVc3njYKc9oL;vXLc>|P~gfVZ7UBQVp52>apg@->c8Vv d&3DyXjG4EsP(J_M`)&TYn-)J9E^9ER0|0jTjj{j$ literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_ext_key_usage_key_cert_sign_wrong/dac-Cert.pem b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_key_cert_sign_wrong/dac-Cert.pem new file mode 100644 index 00000000000000..dffd80a6f42f1e --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_key_cert_sign_wrong/dac-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBzjCCAXSgAwIBAgIIdJyc14RnKCUwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +REFDMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAASZ5c/rnh8ypvhLaMfLKnP2sCgUGBWw +eRkLHTSzPHE7U1o1cqE95LVwuyViW75gCuiv6tGMFE2ibjdxUYRUgK35o2AwXjAM +BgNVHRMBAf8EAjAAMA4GA1UdDwEB/wQEAwIHgDAdBgNVHQ4EFgQUA08J8gSZW78J +6RV5CSHtyYl8kgMwHwYDVR0jBBgwFoAUgM9bWsr51wb/CychBWKauo6HgP8wCgYI +KoZIzj0EAwIDSAAwRQIhAPXWVfYd+rtzRfm4gqcpSLaexy2YfjbWYcJRqcSGqcLC +AiBY2NTsfGX+x3qD3SeEMwO2qCPP50vtb87ZOPgA0ygBZw== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_key_usage_key_cert_sign_wrong/dac-Key.der b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_key_cert_sign_wrong/dac-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..e7f79054c6674d485b5329e3bf17cdb61c9a0846 GIT binary patch literal 121 zcmV-<0EYiCcLD(c1R&A6siV~#T%PP>1mGl$M3*0jN?5r~h6KNt2^+|>)GMG01_&yK zNX|V20SBQ(13~}<1; byCq^FzOpH7%Zfj#0Yg9Gb1~*69dctN5-=m_vgwRvP&{V)>^A_ zJl}e|P${teZ&z04eyv@d=eF9X*R4$aBmN;EC8}MgICS6VU{|Z1FF3{I?i4uOKd?B> zAO+|R=1^H-M#ldv90qJaiiwfYfDa_b4-x|g10$1xEQrs?BE}-pa6UTf)X(c||GCu_ zS(9e%>T7TKZy*nnR%QVPR)a{^U!`*SK>0WO#T=)n3*5P5xUjGeIZ&BB7z|vQ6#R=E z_kTG4`jgfcNnhuwW*40&XL8>B{qp}weevW)*~g8T6dBH*KQYy(R$&XG=BAnPvgAw<8ap`&;3$heyL&n b7w}MIT8AuiRlf66MLN0Y2^JpQa6sR{%*Hd* literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_ext_key_usage_key_cert_sign_wrong/pai-Key.pem b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_key_cert_sign_wrong/pai-Key.pem new file mode 100644 index 00000000000000..98ea0315cdee34 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_key_cert_sign_wrong/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIG34m0iTZy8L7ZHr0cdnZ0s1zJlmAbO3Iw+e+1vhseO4oAoGCCqGSM49 +AwEHoUQDQgAE/+IzmwG/bR8xBxkAWX07JQjntdtxIlGH/Ypqab8quonOtT9nfqlh +/BfwUGRahyxzVb7zU0U6uegJFh7ccEDfwA== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_key_usage_key_cert_sign_wrong/test_case_vector.json b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_key_cert_sign_wrong/test_case_vector.json new file mode 100644 index 00000000000000..df7bfe36f829af --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_key_cert_sign_wrong/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "PAI Test Vector: Certificate Key Usage extension keyCertSign field is wrong (present for DAC and not present for PAI", + "is_success_case": "false", + "dac_cert": "308201ce30820174a0030201020208749c9cd784672825300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d0301070342000499e5cfeb9e1f32a6f84b68c7cb2a73f6b028141815b079190b1d34b33c713b535a3572a13de4b570bb25625bbe600ae8afead18c144da26e377151845480adf9a360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e04160414034f09f204995bbf09e915790921edc9897c9203301f0603551d2304183016801480cf5b5acaf9d706ff0b272105629aba8e8780ff300a06082a8648ce3d0403020348003045022100f5d655f61dfabb7345f9b882a72948b69ec72d987e36d661c251a9c486a9c2c2022058d8d4ec7c65fec77a83dd27843303b6a823cfe74bed6fced938f800d3280167", + "pai_cert": "308201be30820164a00302010202080354c26a1622254a300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313059301306072a8648ce3d020106082a8648ce3d03010703420004ffe2339b01bf6d1f31071900597d3b2508e7b5db71225187fd8a6a69bf2aba89ceb53f677ea961fc17f050645a872c7355bef353453ab9e809161edc7040dfc0a366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020102301d0603551d0e0416041480cf5b5acaf9d706ff0b272105629aba8e8780ff301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d040302034800304502204f7241bff0c7ebf22ab4194d439536d143936909d9fbe9ffc92f1763a26bc732022100cdcfc895467b1b9556d8a0a074b0a77a556468c5bc876a286d73f517d0dea3fb", + "certification_declaration": "3081e906092a864886f70d010702a081db3081d8020103310d300b0609608648016503040201304506092a864886f70d010701a0380436152400012501f1ff360205008018250334122c04135a494732303134315a423333303030312d32342405002406002507769824080018317d307b020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d040302044730450221008cded09a324293cf55c69c256716640cceae2434bb41bffcb9086270b4f40ce902204aae4537c0c21358d27584f17d401e297713bc9665801ab7416499447d6c87fd", + "dac_private_key": "d1baa9a3d51c5c9eec6304e0248c44971f874a58b94d8604bf97091bc8b3d42b", + "dac_public_key": "0499e5cfeb9e1f32a6f84b68c7cb2a73f6b028141815b079190b1d34b33c713b535a3572a13de4b570bb25625bbe600ae8afead18c144da26e377151845480adf9" +} diff --git a/credentials/development/commissioner_dut/struct_pai_ext_key_usage_missing/cd.der b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_missing/cd.der new file mode 100644 index 0000000000000000000000000000000000000000..52390d3d1341e747a2162eaba1b64f913d8f2f95 GIT binary patch literal 236 zcmXqLe96YC)#lOmotKfFX+h&{gT@<7jLe3-2Hb3%32h#Xsmv@)j0UabZkN_wskmz%zuSIfc8p@>P5Vco;fcmunwZ0nRoL;93lF4!-= Tx=>l#&EtmfOp61u$F2YX1`9(w literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_ext_key_usage_missing/dac-Cert.der b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_missing/dac-Cert.der new file mode 100644 index 0000000000000000000000000000000000000000..c940c7e89a38d45bb22036d3684e440553c388fd GIT binary patch literal 466 zcmXqLVmxQi#8|R`nTe5!i6e63#C;XVySxmz*f_M>JkHs&Ff$n#7)lt3u`!3TF!S*H zCYF?>7Ab_J7MCalIC>h27znX(X|pl1Fg7i!VPfQAadUGsG*A%dH8L_VF*1OFC<%T` zATTsC1|m~SQ_Cm=HymcVI67lD6HSzfhs6S9c%*?a8#~ygOpH(`Gc&R?J29|$mS#^? zEaYNX9K6hw^TE%bhb+`J4u9o8JNLbJ-`w{}^0m+Wa&Av=x#Fd$=5Xi0wZ?TNr=Mw< z*?!}`*&_T}znOn=fxv;_d@UqiPiVSadACR1>By2mS cHIDnB`^tlPGpv_y@UOb~q~^e@Eu5`=hC^kLz3)zGd>o0>3?xQt1 literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_ext_key_usage_missing/dac-Key.pem b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_missing/dac-Key.pem new file mode 100644 index 00000000000000..89856d7711d3f2 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_missing/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEINZvmrSIj2gCExDcCsrrTOIWXNPR9x4/pPmvkJTOFjH7oAoGCCqGSM49 +AwEHoUQDQgAESXVrlSFxCgCjU6Y1CeD5+cI4JyjD9Q/Nne9Ljp3vYh995k5s25eE +1EohJkDcwNaBrnTL5ig2PfYL2YQT6y+DDw== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_key_usage_missing/pai-Cert.der b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_missing/pai-Cert.der new file mode 100644 index 0000000000000000000000000000000000000000..6fab237acd76e770df3fe69c3fcf0700d6ee9904 GIT binary patch literal 433 zcmXqLVq9y`#2B)GnTe5!iKG6T;gU&Tnx`3Xv2kd%d7QIlVP-NgFqAM5V`C0wVdmlY zO)M!%Em8x7660eLV-b0t<9O9qd&z|j-(QA>@}?JXPFkmC zAPW|`8WH;9H*xX+__`8u&@p}5SiT>3|yELG^Z&%ZxPqLc4+_0 z!m!Avd#~L!xZdpRx5at!?N^&^*mp50s6J#}a>24fb2F=s%Kk#$s~XB*I4WAcCR^NX K-ITM=uNVN}=!y>j literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_ext_key_usage_missing/pai-Cert.pem b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_missing/pai-Cert.pem new file mode 100644 index 00000000000000..ec40ed24cbd213 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_missing/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBrTCCAVSgAwIBAgIIf/YxpJL0g5YwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowMDEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTBZMBMGByqGSM49AgEGCCqGSM49AwEH +A0IABJm6Yd1KeN1eMWyELMXfeAdpF9V2OWrMvQme5sacUimWgp3/2aL2xygZP7Vq +WguiLkGi5bbcdznuvPa7UB6qzOKjVjBUMBIGA1UdEwEB/wQIMAYBAf8CAQEwHQYD +VR0OBBYEFOdsQdVNK6TQsPfpVlUNZ3AJkq4mMB8GA1UdIwQYMBaAFGr9IncfUR/s +vxZBl2cQ3NwxoXF+MAoGCCqGSM49BAMCA0cAMEQCICmWIOeEFynWwr/pcVZZ5b3W +3TDXg01OtEOj2+qzPAe6AiAl4QWk0Dl4KbMFLCS/cQ3VKCP0CHiE9WM43YWybK5O +cw== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_key_usage_missing/pai-Key.der b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_missing/pai-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..4641385277723ff5ce985e40469a9f80719b5ad2 GIT binary patch literal 121 zcmV-<0EYiCcLD(c1Rycf&%8P@4fV=8m3n((^MTv52CcgAV+OJrT=)4!MKYiY1_&yK zNX|V20SBQ(13~}Hh^#ou@bX&2RYIcm(k37+Q0oKh*4f}Q`_qV~rq b89%jZS_`5sL89fh+;=(dy!N|L9;(dZ9LG16 literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_ext_key_usage_missing/pai-Key.pem b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_missing/pai-Key.pem new file mode 100644 index 00000000000000..a0bd25606d5950 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_missing/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIDHTz7w6MQ31yjqVenti84HbswatuvBjBrIZXPf5RUUyoAoGCCqGSM49 +AwEHoUQDQgAEmbph3Up43V4xbIQsxd94B2kX1XY5asy9CZ7mxpxSKZaCnf/ZovbH +KBk/tWpaC6IuQaLlttx3Oe689rtQHqrM4g== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_key_usage_missing/test_case_vector.json b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_missing/test_case_vector.json new file mode 100644 index 00000000000000..a03ddb6e10304c --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_missing/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "PAI Test Vector: Certificate doesn't include Key Usage extension", + "is_success_case": "false", + "dac_cert": "308201ce30820174a003020102020859b191be78c78a4a300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d0301070342000449756b9521710a00a353a63509e0f9f9c2382728c3f50fcd9def4b8e9def621f7de64e6cdb9784d44a212640dcc0d681ae74cbe628363df60bd98413eb2f830fa360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e04160414b38e343242c8b0dd81d0ff4abe3e6379d4360aef301f0603551d23041830168014e76c41d54d2ba4d0b0f7e956550d67700992ae26300a06082a8648ce3d0403020348003045022015036ca76354ca749e7fd6256200620ec748de65b43a6043316371803bc3a6cb022100ecbbc0199922133d94855e0bc147a9c16e983ba7b04f7ad1e47cc0ea8a110cc2", + "pai_cert": "308201ad30820154a00302010202087ff631a492f48396300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313059301306072a8648ce3d020106082a8648ce3d0301070342000499ba61dd4a78dd5e316c842cc5df78076917d576396accbd099ee6c69c522996829dffd9a2f6c728193fb56a5a0ba22e41a2e5b6dc7739eebcf6bb501eaacce2a356305430120603551d130101ff040830060101ff020101301d0603551d0e04160414e76c41d54d2ba4d0b0f7e956550d67700992ae26301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d04030203470030440220299620e7841729d6c2bfe9715659e5bdd6dd30d7834d4eb443a3dbeab33c07ba022025e105a4d0397829b3052c24bf710dd52823f4087884f56338dd85b26cae4e73", + "certification_declaration": "3081e906092a864886f70d010702a081db3081d8020103310d300b0609608648016503040201304506092a864886f70d010701a0380436152400012501f1ff360205008018250334122c04135a494732303134315a423333303030312d32342405002406002507769824080018317d307b020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d0403020447304502202423dec1aa29a65d8442a21d87179e23ff184d1949a8171e97bb0d2a40464072022100aee1555f303eb506ae2315548e2244d03fa3d5a1231b4648d8139938c01dc6d4", + "dac_private_key": "d66f9ab4888f68021310dc0acaeb4ce2165cd3d1f71e3fa4f9af9094ce1631fb", + "dac_public_key": "0449756b9521710a00a353a63509e0f9f9c2382728c3f50fcd9def4b8e9def621f7de64e6cdb9784d44a212640dcc0d681ae74cbe628363df60bd98413eb2f830f" +} diff --git a/credentials/development/commissioner_dut/struct_pai_ext_skid_missing/cd.der b/credentials/development/commissioner_dut/struct_pai_ext_skid_missing/cd.der new file mode 100644 index 0000000000000000000000000000000000000000..a921332e0d67d9ebe4aca629ec5c973fd9bdf094 GIT binary patch literal 235 zcmXqLe8I-4)#lOmotKfFX+h&HgU0JjjLe3-2Hb3%32h#Xsmv@)j0UaQ}nHZr?W@cn(c4A=Zki5Q5 zUFh{yrs>L4bW&?M&sx_br1_&yK zNX|V20SBQ(13~}1d%#7^JP7Exr+8dg9q}Ih1eV_KG^J&kT z=MiV-uB^Ooxj(^xFQaDeg(J68-Xsb{WU?xQL(%1_&yK zNX|V20SBQ(13~}vOpa`%?(iRFx}=UB|0sd?WyzhE#9XndW}#M)%+VGvkp b2cvP}jCl^QVc|6pdz1&lcVC;;k=kj)qLDQf literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_ext_skid_missing/pai-Key.pem b/credentials/development/commissioner_dut/struct_pai_ext_skid_missing/pai-Key.pem new file mode 100644 index 00000000000000..63aea807da2ea4 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_skid_missing/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIOop+Er8Q+A/0l48vC5MEzIiiu4ffBKh9lyOcGSHRLiIoAoGCCqGSM49 +AwEHoUQDQgAERSuwggwarl5y95bsieWMrOdYzJ2ped85v2AwDmh8ndDE2mTsYRBY +aQejceGMeQ6wYeE1EHuUB8J3X5vVkdppww== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_skid_missing/test_case_vector.json b/credentials/development/commissioner_dut/struct_pai_ext_skid_missing/test_case_vector.json new file mode 100644 index 00000000000000..8404c0d21be131 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_skid_missing/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "PAI Test Vector: Certificate doesn't include Subject Key ID (SKID) extension", + "is_success_case": "false", + "dac_cert": "308201ac30820153a00302010202087494bae5dd2cc965300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d030107034200048819d7ae2712ebd5236c493cf3523081bf228b36592f93fbd4b38967d4475cf6b9172ef3dc9dd6de1a13cefc103b378d99831489c7494729404f09fb9043d302a33f303d300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e0416041447d0bd0ad13c87ecf1b5c9a9e475bdccd42f2a64300a06082a8648ce3d040302034700304402206cef635bbfc9aba21dfae777f0f469c9f589c5f0eb95189b1f605f9d5b9e7eaa02205600bd9cd890fe117cf20cdd8bc208749b5b1de1ba844c56035d6167d09e3528", + "pai_cert": "3082019e30820145a003020102020800d48d5fcb19a663300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313059301306072a8648ce3d020106082a8648ce3d03010703420004452bb0820c1aae5e72f796ec89e58cace758cc9da979df39bf60300e687c9dd0c4da64ec6110586907a371e18c790eb061e135107b9407c2775f9bd591da69c3a347304530120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d040302034700304402200b51f806741f819087b8f518fc99bde462d633c2dd9bf196c75911277d40589702201b89cc8eff4e5b0eb776a77277ea1c2c1bb241513a62f0723a895cf2b420915e", + "certification_declaration": "3081e806092a864886f70d010702a081da3081d7020103310d300b0609608648016503040201304506092a864886f70d010701a0380436152400012501f1ff360205008018250334122c04135a494732303134315a423333303030312d32342405002406002507769824080018317c307a020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d04030204463044022061ecf1cf3b1b58fe4cfd9d864b08d3b30e44c58a7fde88ffe01afbd04fc956e602203118949266eea3c953167e875c9131a06ef5c21c2526f903aa87017d4571c06e", + "dac_private_key": "b36af657c36b0825c9c81470c34b3204b09ae07cb3ceaac51eeb660377b6aa35", + "dac_public_key": "048819d7ae2712ebd5236c493cf3523081bf228b36592f93fbd4b38967d4475cf6b9172ef3dc9dd6de1a13cefc103b378d99831489c7494729404f09fb9043d302" +} diff --git a/credentials/development/commissioner_dut/struct_pai_ext_subject_alt_name_present/cd.der b/credentials/development/commissioner_dut/struct_pai_ext_subject_alt_name_present/cd.der new file mode 100644 index 0000000000000000000000000000000000000000..cdd2eab340f6593dadf6ba94c85665c7a82c2cc1 GIT binary patch literal 236 zcmXqLe96YC)#lOmotKfFX+h&{gT@<7jLe3-2Hb3%32h#Xsmv@)j0Uaj-G}h210CH+H8z0j7^Jbm>79j+}zv@4HU$Ajf@OTj0_+kN`l`K z2n>ykfymU-)H2Gz4TqU7j?UQ4L=$D=VX*)i9%&%V#twEV6C>2g%#7^JP7EwM@6tDI zvWc8kq`SB;$o^hsM}+Uz!+|KmYJM-TXKPIgpv% z84O&Q6k^k=PV_$cKWoOn{KF^im0bMg>;8_3xs1nr>FTKrtK%jxDR}SxcyyLZjhmD2 bJJUchZVe~HZ$D-!9gj%+_U^#a^9~vS32BRw literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_ext_subject_alt_name_present/dac-Cert.pem b/credentials/development/commissioner_dut/struct_pai_ext_subject_alt_name_present/dac-Cert.pem new file mode 100644 index 00000000000000..34331a23dd8e1c --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_subject_alt_name_present/dac-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBzTCCAXSgAwIBAgIIKR+H/wMSsXgwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +REFDMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQs7meysjxZmnIto45SP955WZf2cTzq +8mu/sgwGYb/onq80LxdRV/tpEbONvnVPDs5LXBMmd608C4pJNFumSWVlo2AwXjAM +BgNVHRMBAf8EAjAAMA4GA1UdDwEB/wQEAwIHgDAdBgNVHQ4EFgQUS+IXzyATlsmU +iSh6hLKYrKO1XrAwHwYDVR0jBBgwFoAUggAnUeP+qqRS9IIBI/P4TsuD41wwCgYI +KoZIzj0EAwIDRwAwRAIgXWZ6yI3k/5qY/m/DyN500fpNR+4CA3YMN6WrlQCrXpAC +IEu78cWaJHxGQk3uNVEWCyhCMfb4miLHWGb27sClz0Ao +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_subject_alt_name_present/dac-Key.der b/credentials/development/commissioner_dut/struct_pai_ext_subject_alt_name_present/dac-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..94089a298f4006d92a614e0b35ff02a9c77aa4be GIT binary patch literal 121 zcmV-<0EYiCcLD(c1R%q~iXv&2GiQ;U?Qc!HyX-v5q7nYm=EhwxC(0(K7R{gv1_&yK zNX|V20SBQ(13~}FzOpH7%Zfj#0Yg9Gb1~*69bFNy%=_!_WEa_c`Bd{yUKxba`hWm1gO8s7alp4U|GBT@d(EJ$?8hI`I#MsLdZy8Vkf?Y_9$ zpc3c}=1^H-M#ldv90qJaiiwfYfDa_b4-x|g10$P(EQrs?BE}-p#GoGd_}{7}L0_5} zl|TRRJKg*^#y}ns5U;T=|=r1NqKPH75 lX}x)Fyk2|Le>}DedGxq*>#`pYpL_BeCh>fHXujOs2LK#%hfx3k literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_ext_subject_alt_name_present/pai-Cert.pem b/credentials/development/commissioner_dut/struct_pai_ext_subject_alt_name_present/pai-Cert.pem new file mode 100644 index 00000000000000..3ac44c52f1642d --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_subject_alt_name_present/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIB0jCCAXmgAwIBAgIIdwEBV4tzNpswCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowMDEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTBZMBMGByqGSM49AgEGCCqGSM49AwEH +A0IABCTeXBUfG5Q5PgRnisIePC1Fw4wPsrFmBhPVLNZXM/05phoBloDu+Mdugn9M +GHf+NlIVpLDeQ0Yy7He9Rv5ay0ejezB5MBIGA1UdEwEB/wQIMAYBAf8CAQEwDgYD +VR0PAQH/BAQDAgEGMB0GA1UdDgQWBBSCACdR4/6qpFL0ggEj8/hOy4PjXDAfBgNV +HSMEGDAWgBRq/SJ3H1Ef7L8WQZdnENzcMaFxfjATBgNVHREEDDAKggh0ZXN0LmNv +bTAKBggqhkjOPQQDAgNHADBEAiAdy2Mt/W1D80nsOL8Lj11JJH1HxjcaVy8n1E8V ++gI5TgIgfBsunkYNSr1n+OM+VOLjibWm+OHnSQ0xYgzx4TenN0w= +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_subject_alt_name_present/pai-Key.der b/credentials/development/commissioner_dut/struct_pai_ext_subject_alt_name_present/pai-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..c967601a552c0f6b86dbde71ce8a796bcd88d008 GIT binary patch literal 121 zcmV-<0EYiCcLD(c1R&Aut1e7vb{Pv3Etkh-0P<*%#v9*x7i{YZOd$q(`L>`61_&yK zNX|V20SBQ(13~}Q}nHZr?W@cn(c4A<0-Nt&t z*EHJW`|@iQA1?6OaGRM=d98DqYx5(Pga7L{_sadQdG@$*uQcnyvuQGK4EJo9Iel~0 zRGqfvt2vIW?(X+ooL~@VzytKQtS}?ve-s6$0Eiel6tIE zmF3toUuHXpAFKPDme-YA8yd)iq?K8Kf!81+(*HjyxpJAM|MG|{w@vm6PD_$`fE>uo z9t;MqOo|MDlphpUWNzVp#AGVg@wdn0&a`ul^GqI2Fx$lb<#~vz1(SlBw!Pq{Mt7U6 dTj##qowj`IOc}wLgT5+%)_2a3&AR>ZGyqAij#&Tz literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha1/dac-Cert.pem b/credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha1/dac-Cert.pem new file mode 100644 index 00000000000000..7c9f73f75fb6c9 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha1/dac-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBzjCCAXSgAwIBAgIIRpWZsmN09+4wCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +REFDMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAARFtgXITTVbSPen1njw0A48CzY3lOss +0wqz4gTB/3+zjR77fObjgb0bBcHNZhzsMbywmZezepUshqerCMSri49Jo2AwXjAM +BgNVHRMBAf8EAjAAMA4GA1UdDwEB/wQEAwIHgDAdBgNVHQ4EFgQUZcZ1JQTG5k0D +PkD4q4+Cp353OzEwHwYDVR0jBBgwFoAUFI//WmN5pjlPp1jU2zS9EZZiHOAwCgYI +KoZIzj0EAwIDSAAwRQIhAPwj4HF4abQL4gI1Foj9jEjcls6BnjThkDayB/TnVCU4 +AiAmKz8RsoFHPGrazvTdlqe1mRwRXMFNJPyviZgdatvxyw== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha1/dac-Key.der b/credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha1/dac-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..8507d351c0fadc3353bef0238b2f233e7cba8836 GIT binary patch literal 121 zcmV-<0EYiCcLD(c1R&ILG!M;nb73onva#|CyrkwBAr6rVzc%bE-f7e)+SH&51_&yK zNX|V20SBQ(13~}nzg>v*HB7|9`WM9{YUe! b1;Nc`9PBZ?u$h;$dX+4Or>h9WtBa3GuDdn0 literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha1/dac-Key.pem b/credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha1/dac-Key.pem new file mode 100644 index 00000000000000..329b2400de9fb6 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha1/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEINRxNA/NdXNhK4aysfIKvKTmGCEOkQm/Nuwr3mnUJ9rUoAoGCCqGSM49 +AwEHoUQDQgAERbYFyE01W0j3p9Z48NAOPAs2N5TrLNMKs+IEwf9/s40e+3zm44G9 +GwXBzWYc7DG8sJmXs3qVLIanqwjEq4uPSQ== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha1/pai-Cert.der b/credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha1/pai-Cert.der new file mode 100644 index 0000000000000000000000000000000000000000..6bfd84ae0f54de967db90f336c7389d5319b254f GIT binary patch literal 447 zcmXqLV%%-e#F)H*nTe5!i6ejS@6A)KD&81yvaxHmd7QIlVKgu>lrRuuV-96u=Hd5E zEGbDXQV2;cE>Q?@bTkw(5MtxfW@BVwY+6*q#K^tC68x4x zU}$6vM5dOemQi@j^u%Fiq=7KhNlc7v9ALLGGqN)~F|aiGy}oY3yXShj!p3<`^IdQ7 z&Gu*$uYCJ2=AUqbQp5jadpg`KDSrDI(MT|v6r2l_Za^*5h|K$-^ zZky~CoR%c>z(5`(t;_-ptOk*+ze?ruf%0$mi#bkD7r1lBaA9E`QkXKkGZ?rqDQK17 zJjIl@EAd%_b48N!)QE|dbvId08ZBl@YOLBZa~&&_0^h%&OJ5m|EGzn#Hn&VKlG#zL T_OHOgl;hcR?$+1ltTX@sxTJ_} literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha1/pai-Cert.pem b/credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha1/pai-Cert.pem new file mode 100644 index 00000000000000..881683cb88d2b3 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha1/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBuzCCAWOgAwIBAgIIb737s5U6eOwwCQYHKoZIzj0EATAwMRgwFgYDVQQDDA9N +YXR0ZXIgVGVzdCBQQUExFDASBgorBgEEAYKifAIBDARGRkYxMCAXDTIyMDQyMDAw +MDAwMFoYDzk5OTkxMjMxMjM1OTU5WjAwMRgwFgYDVQQDDA9NYXR0ZXIgVGVzdCBQ +QUkxFDASBgorBgEEAYKifAIBDARGRkYxMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcD +QgAEgk7r1zQNvNd3ILGegp9F2A6bSIYXee3+XP4TgCKA/8a8iQY+WfBmh3BBc5RB +6wmqJfWRsBnWcxsZkzhz0FqykaNmMGQwEgYDVR0TAQH/BAgwBgEB/wIBATAOBgNV +HQ8BAf8EBAMCAQYwHQYDVR0OBBYEFBSP/1pjeaY5T6dY1Ns0vRGWYhzgMB8GA1Ud +IwQYMBaAFGr9IncfUR/svxZBl2cQ3NwxoXF+MAkGByqGSM49BAEDRwAwRAIgKnfZ +ygJmumHmgEN4YiOVWJF5ftkFyTKjAmKBeriZrgUCIA7+UtL1AMSmcv5mnXYuWQNB +Fn39EKFkx2uc3X99bKkw +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha1/pai-Key.der b/credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha1/pai-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..e04c8442d902c19ae057e88bd34e622df826abad GIT binary patch literal 121 zcmV-<0EYiCcLD(c1R(aCzOs6Dd!=;9P1E>ok(<>K$8m{tU|R=>y=@cY)B7pzKyom-rS@33u ba6xmFLF);sCH0Z88P;j-G}h210CH+H8z0j7^Jbm>79j+}zv@4HU$Ajf@OTj0_+kN`l`K z2n>ykfymU-)H2Gz4TqU7j?UQ4L=$D=VX*)i9%&%V#twEV6C>2g%#7^JP7Evw!9u$n zrSJKj>l8Ck7l}RO>#Y-gLuGTVQ(;y1@ZY<#8^a3O;p6U zZaq^mW3I@dG~PhPz<|!f2J#?jWfoxIHHgGUH1RQfdUNyLno=fqcK;5|sz>d}fz0gA zVBo@};CX%5>6INZ#@?)=4P>!I1!X1z4JM5j*f;R210CH+H8z0j7^Jbm>79j+}zv@4HU$Ajf@OTj0_+kN`l`K z2n>ykfymU-)G`W>nVvYzj5H8tV+Xs5i4p2JW=3{qCkB?tk2b4hMIB>rhDZE6aqIG4 z1}j6u#gX1MR?d4$#rcC%B?`YBd%i7g`H|a;>sC4!ujfjzSIZq)=LM zel17mCXdyoCVon5)Y#Pw7D#*LH(YSEp0oG&RJQ^qMTU($Ya6|;mR)C0_t(ATCn2%; U=IN^eyK9%&&Y8gc;ryC#0N;0my#N3J literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha256/pai-Cert.pem b/credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha256/pai-Cert.pem new file mode 100644 index 00000000000000..7140ad7bbbc639 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha256/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBvjCCAWSgAwIBAgIIOzNnLbPqbVwwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowMDEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTBZMBMGByqGSM49AgEGCCqGSM49AwEH +A0IABFnxPKodFUFd2VdY/sja070AOjExo1lLfDpDvHUXD1NlGHH0xue2ZqfE26N+ +qUNzrwpgPKMMHoY1pL5ckFXNgNyjZjBkMBIGA1UdEwEB/wQIMAYBAf8CAQEwDgYD +VR0PAQH/BAQDAgEGMB0GA1UdDgQWBBRdWIIOAPLs2e6sdQIHB0+IKXrihzAfBgNV +HSMEGDAWgBRq/SJ3H1Ef7L8WQZdnENzcMaFxfjAKBggqhkjOPQQDAgNIADBFAiB1 +eM+tCImySKs1NE4irCYHJjCgG0pvgNBBO5y9+5VGcAIhALEMrYFK1XbXB2dPLdJO +GBij2cvVULt9pD2ckAPwz6xX +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha256/pai-Key.der b/credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha256/pai-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..7e801f752cc5524a7c63486a36c7b946ed35d549 GIT binary patch literal 121 zcmV-<0EYiCcLD(c1R!kH9nFlIFd=9P8|!pVxRMz4lY}*Use1Ib?bZyy3(24g1_&yK zNX|V20SBQ(13~}I>u;a@5f1=OSVx=y literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_sig_curve_prime256v1/dac-Cert.der b/credentials/development/commissioner_dut/struct_pai_sig_curve_prime256v1/dac-Cert.der new file mode 100644 index 0000000000000000000000000000000000000000..ac6d07ba6c3fbcb5b21b88ab567b641e04e46d67 GIT binary patch literal 466 zcmXqLVmxQi#8|R`nTe5!iNo@*1#8~=@IwY%Y#dr`9_MUXn3)U=3?&T2*qB3En0fep z6H7``ixfgqi%S#&96b$1420OYwAmP07@HQ=FfsD5xVgC*8YqbK8W|aw7#To7lmx#e z5EvR61Cgnvsb!Rb8xAvF9G$V7i6+X#!(st4JkmgzjUDV#CPt`}nHkxcofuelEUzuO zzh&{Z1@hmE6bjpBJkq$b_xqJj^&bk&?dQHYtY^6_zc|@&bM>U9;nhzbnq1ne|9rzf z%}+u~hOSoDn~(7>PB4fw-~oDDR+y3TKMRuqg8?6i#}DEGgN41pKo-R3V-aH!k+yK~ zKAY%Y&*oLo^kqg^-9_0&Z3glnX=N5*;5CRe6gkbk5$!K|=W($9`{LeT(-tnii5$qx z9t;MqObXiidw!-JR(@AsCMpT}wPXA1LPBkH`ibsz&=~E>55d1_&yK zNX|V20SBQ(13~}ChkFgU*f_M>JkHs&Ff$n#7)lt3u`!3TF!S*H zCYF?>7Ab_J7MCalI64}N7znX(X|pl1Fg7i!VPfQAadUGsG*A%dH8L_VF*1OFC<%T` zATTsC1|m~SQ_CnkW_scJobofuet-2XG<{*L=5H^mmsQaQik zP)qtN1@5!6>)s1}`M@+W>vl_%nd0kPc8m%lix)4bo^7?je7>>7ull^BH%$GzETdf) zrx~OGy}=wRE6m9FpM}GK4M;IDG8*uK#P~sCz+hlxGmr)G`B=nQL>h{m=H7_*m%Q^h zSpR)-@2_bK7vD6H2T3cl00XN*B_%ZE=&r^ zS1j&d>|8hD{PS!1Uq34@us^!7#D8J>`6JUcIWw7lF)%3@Fde#Tv}_Ak&~xDVxo WZeBCI_y5n%i10=CW9lZ}-wXiBm5@IG literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_sig_curve_prime256v1/pai-Cert.pem b/credentials/development/commissioner_dut/struct_pai_sig_curve_prime256v1/pai-Cert.pem new file mode 100644 index 00000000000000..caf52f3512a4d6 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_sig_curve_prime256v1/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBvTCCAWSgAwIBAgIISNrAqnBxw40wCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowMDEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTBZMBMGByqGSM49AgEGCCqGSM49AwEH +A0IABPjf/JjfuN802RaimiTPqMKEZ+ogC82bfu8S9PACkWrbhII2IevaPgEgFKOj +oHubOqA3nzMY+n9uxdg1T4o5W0WjZjBkMBIGA1UdEwEB/wQIMAYBAf8CAQEwDgYD +VR0PAQH/BAQDAgEGMB0GA1UdDgQWBBSAckKd2FtPGdzjUy/vc436lqGj2TAfBgNV +HSMEGDAWgBRq/SJ3H1Ef7L8WQZdnENzcMaFxfjAKBggqhkjOPQQDAgNHADBEAiBj +1Djf0YmukM/n1m/18yGgP8WxdE+hZ8/ElykJaQL6AAIgMALC1TKmtApS5xPEfle8 +KtnWMd7//LlYV6LfXH6R37M= +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_pai_sig_curve_prime256v1/pai-Key.der b/credentials/development/commissioner_dut/struct_pai_sig_curve_prime256v1/pai-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..3597daf2bc418dba43e04785192b1bd0e71bbcbb GIT binary patch literal 121 zcmV-<0EYiCcLD(c1RyM?)QhS6>~(KIf}D*EYc)=wRO)Jj6 bAQYpcpnID-pf{g082W#1#n?4ZiaA?Fmnk-p literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_sig_curve_prime256v1/pai-Key.pem b/credentials/development/commissioner_dut/struct_pai_sig_curve_prime256v1/pai-Key.pem new file mode 100644 index 00000000000000..6b6b7a5bc42c4a --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_sig_curve_prime256v1/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEICym1Iup++x1b0CCnI0MazVOoFTq9c9jTlqNsJmGeWgioAoGCCqGSM49 +AwEHoUQDQgAE+N/8mN+43zTZFqKaJM+owoRn6iALzZt+7xL08AKRatuEgjYh69o+ +ASAUo6Oge5s6oDefMxj6f27F2DVPijlbRQ== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_pai_sig_curve_prime256v1/test_case_vector.json b/credentials/development/commissioner_dut/struct_pai_sig_curve_prime256v1/test_case_vector.json new file mode 100644 index 00000000000000..2000ce4259092b --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_sig_curve_prime256v1/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "PAI Test Vector: Valid certificate public key curve prime256v1", + "is_success_case": "true", + "dac_cert": "308201ce30820174a003020102020839fd38056eaf57c2300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004b8a77d74dfb4a3b6a01ff77220718698e228d4bdf7d48927f8208387cef440af04d31fa36331b37b92a5577be4e134d2bd2fe7b0be29f2122231453a3bb3c60da360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e041604141b38404bcd614f7f064a7082f498567ed11da286301f0603551d230418301680148072429dd85b4f19dce3532fef738dfa96a1a3d9300a06082a8648ce3d040302034800304502202b2fbcf966c323e3381051e333dfe48ae57e0015b1917ce40a29ae227bb39e85022100ade9a04cb7f28434f26b4516ae04acb931d0e1dc53363ac6163bf4546a6aa245", + "pai_cert": "308201bd30820164a003020102020848dac0aa7071c38d300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313059301306072a8648ce3d020106082a8648ce3d03010703420004f8dffc98dfb8df34d916a29a24cfa8c28467ea200bcd9b7eef12f4f002916adb84823621ebda3e012014a3a3a07b9b3aa0379f3318fa7f6ec5d8354f8a395b45a366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e041604148072429dd85b4f19dce3532fef738dfa96a1a3d9301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d0403020347003044022063d438dfd189ae90cfe7d66ff5f321a03fc5b1744fa167cfc49729096902fa0002203002c2d532a6b40a52e713c47e57bc2ad9d631defffcb95857a2df5c7e91dfb3", + "certification_declaration": "3081e806092a864886f70d010702a081da3081d7020103310d300b0609608648016503040201304506092a864886f70d010701a0380436152400012501f1ff360205008018250334122c04135a494732303134315a423333303030312d32342405002406002507769824080018317c307a020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d0403020446304402207776d33f3372fb13042d87bbe4f79c205f74a7835af133164a625834afeefd3f02203e0f8104061262e51e690afd67a0029e74b5b4ba05b661ee907d12afdbc9f85f", + "dac_private_key": "54b02c7c8af9259fb87821188f155d4b3c3c1f28e6dc8fc8061caa46fb672e4e", + "dac_public_key": "04b8a77d74dfb4a3b6a01ff77220718698e228d4bdf7d48927f8208387cef440af04d31fa36331b37b92a5577be4e134d2bd2fe7b0be29f2122231453a3bb3c60d" +} diff --git a/credentials/development/commissioner_dut/struct_pai_sig_curve_secp256k1/cd.der b/credentials/development/commissioner_dut/struct_pai_sig_curve_secp256k1/cd.der new file mode 100644 index 0000000000000000000000000000000000000000..1a2a029375eb2f78abf029024b4f1e814feeeab2 GIT binary patch literal 236 zcmXqLe96YC)#lOmotKfFX+h&{gT@<7jLe3-2Hb3%32h#Xsmv@)j0UaswHuo9{U(@v2kd%d7QIlVP-NgFqAM5V`C0wVdmlY zO)M!%Em8Q}nHZr?W@cn(c4A=Jrg4>R z&zwX1Y>Fl{$5i_J>VHp`VEXlzOUdPz#GO4RYHSyll@{jIHB_(mm7Q4kQXoR*yrh}v zP38LscP~ESmaVfm!643n2k32CVMfOPEKCLr27DkMKZpkm7WM`MSrDI(MT|wn?e5*I z?7}yb8d)n2UOv~b@y{N`ZUcFcv@#1Y@ESyRp1QVFdG0sG!+~rC2eU+(i^4SRkOP_7 zgTcU+Nr8XEe}4%RSGCEZ9+wNbb*D*gRybE#E*ZFF#`;f7e*W6bq{z@NFO}(HlBNGd c%Xs;`qX$i==ENN;V&h(!y!Y{h!ZHm901x|!WdHyG literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_sig_curve_secp256k1/dac-Cert.pem b/credentials/development/commissioner_dut/struct_pai_sig_curve_secp256k1/dac-Cert.pem new file mode 100644 index 00000000000000..79dad1dc151d7a --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_sig_curve_secp256k1/dac-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBzjCCAXSgAwIBAgIIMJOqpF6y40wwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +REFDMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAS2KNUGvJzCvjxykINceU9NL/djGAL6 +7QoiRPoY3Lw0JgbQpnVxbH6Ae6tNHZF+6RBYJM8ZNhXZI9/Bu6PIRmsso2AwXjAM +BgNVHRMBAf8EAjAAMA4GA1UdDwEB/wQEAwIHgDAdBgNVHQ4EFgQURt3damtx7JKB +BXjB086Asfy8IYswHwYDVR0jBBgwFoAUucrWpSOd9iHDUQZwwWoVA3JWKT4wCgYI +KoZIzj0EAwIDSAAwRQIgD7D/Txg0RSaTVUjTcQstlhmzIM55dxlRpJiv8qT5+rMC +IQCHHxppRDRqL+QqM6eexcE1lWxewnIGC6ljveOQcXYoQA== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_pai_sig_curve_secp256k1/dac-Key.der b/credentials/development/commissioner_dut/struct_pai_sig_curve_secp256k1/dac-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..1193c098aaadb042e922d96edac132dbf769a5fd GIT binary patch literal 121 zcmV-<0EYiCcLD(c1Ry78Bn&-9pJ_J_MwaozL7DF+LoVv0G}~J;ppT7WFdd)@1_&yK zNX|V20SBQ(13~}JkHs&Ff$n#7)lt3u`!3TF!S*H zCYF?>7Ab_J7MCalI64}N7znX(X|pl1Fg7i!VPfQAadUGsG*A%dH8L_VF*1OFC<%T` zATTsC1|m~SQ_CnkW_sceuAWI=pB7BLo)ou{rXRi67z z@o*qp!NDw1=Atl7I|F%;v@#1Yq#8uB{wkHr2g<+MFXlKsUEt0g!-a))$RWz?&S2oe zq)=ZzO=rKoNyFMd_xC+anZWSpzj!Y5^~C#C4-E0 literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_sig_curve_secp256k1/pai-Cert.pem b/credentials/development/commissioner_dut/struct_pai_sig_curve_secp256k1/pai-Cert.pem new file mode 100644 index 00000000000000..b404977eebf7d7 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_sig_curve_secp256k1/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBujCCAWGgAwIBAgIIQw/MBT645L8wCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowMDEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTBWMBAGByqGSM49AgEGBSuBBAAKA0IA +BEnQeNyjKLu5quBZ7GGJ5q/XPxjj7jXlGJmsISKhKPvScOrtv3zRyj9wZ3/Wq3LB +o6Sti1TlILO0g+Wi18Lhn/mjZjBkMBIGA1UdEwEB/wQIMAYBAf8CAQEwDgYDVR0P +AQH/BAQDAgEGMB0GA1UdDgQWBBS5ytalI532IcNRBnDBahUDclYpPjAfBgNVHSME +GDAWgBRq/SJ3H1Ef7L8WQZdnENzcMaFxfjAKBggqhkjOPQQDAgNHADBEAiB/d5Ys +vz80gK38377hZJAA/P8XbQOT/vuEO6l9/+gIAQIgGaJzTjdG7KBtEUxX0IwsthL2 +WiItYGNudMAmdjqzT5k= +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_pai_sig_curve_secp256k1/pai-Key.der b/credentials/development/commissioner_dut/struct_pai_sig_curve_secp256k1/pai-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..be539e7decddaf08f036a06e0458e628ff584416 GIT binary patch literal 118 zcmV-+0Ez!FbOHeZ1R$#=eA$PpQp};S8rX~`h$+I~*Ta?cT2Lv0v%=x9gMpw21_djD z1ON)5L<2$q1WC|%+@mPFxvJn<>|u%Kuh%~q+p&vNQ)m2F=l%6w&_9-??^e^@{6G7aN=KOjl{Bd3_y+!ab-=jybGqb1=g&4L TvnS4!nR_C4E$^n#j$~#4S;9&@ literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_subject_pid_mismatch/dac-Cert.der b/credentials/development/commissioner_dut/struct_pai_subject_pid_mismatch/dac-Cert.der new file mode 100644 index 0000000000000000000000000000000000000000..016ebe730c2aaee7945e018e4fd9024261f91665 GIT binary patch literal 466 zcmXqLVmxQi#8|R`nTe5!iGy)v*L&F*-%AEuY#dr`9_MUXn3)U=3?&T2*qB3En0fep z6H7``ixfgqi%S#&96b$1420OYwAmP07@HQ=FfsD5xVgC*8YqbK8W|aw7#To7lmx#e z5EvR61Cgnvsb!Rb8xAvF9G$V7i6+X#!(st+m_ek0FdIAArA&-aCo?m$GdnS`tjU`e z&3!-T;?ab+Svg(Dwxn7-Sh0WIm2%DG`sFLx7BpQu_~qY*j@U_>lP?8rH{`fFO)5nzkZ!e8JAz$^367o2T3cl00XZ<LLTWjNrdzpm7GDPw=9sRp2e*1`1tu!vof bDU;Gtw=oFSmLXesjzDvZvp&_JK{%C!=EOMG literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_subject_pid_mismatch/dac-Key.pem b/credentials/development/commissioner_dut/struct_pai_subject_pid_mismatch/dac-Key.pem new file mode 100644 index 00000000000000..a35cf8ef8a2290 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_subject_pid_mismatch/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIJuS1bh4olkrp3dOFmmK2NJ9ZRvusqujTpXbw/F+bY2loAoGCCqGSM49 +AwEHoUQDQgAErG6WWwvfbNHFYO1qbIrGtGU44Ki/rtR3KWN/p6kGoILWwfT+sIhd +kimT0lK3MQjVliFbeI5Ac4uzPtWgQTiVhA== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_pai_subject_pid_mismatch/pai-Cert.der b/credentials/development/commissioner_dut/struct_pai_subject_pid_mismatch/pai-Cert.der new file mode 100644 index 0000000000000000000000000000000000000000..95e60363a7ea3b3179e540edfea7f6924f4f4141 GIT binary patch literal 451 zcmXqLV%%@g#F(;xnTe5!i9>0#PxqDwtECLM*f_M>JkHs&Ff$n#7)lt3u`!3TF!S*H zCYF?>7Ab_J7MCalI64}N7znX(X|pl1Fg7i!VPfQAadUGsG*A%dH8L_VF*1OFC<%T` zATTsC1|m~SQ_CnkW_scJobofue_)=f$0577)Snpau9UugcK zDh6v_iI@|Y%QeoMT70{->axu*b>^bp1raYL&mLQx zW{?8(26L#aFeBrC77hb8AjQPUXut;&;|GZWgMpFFKo-R3V-aH!`S?!z&?=S#KeN|3 zO-)yvoV=_-#M3|?B(2N>46Fu`tiMX-@`3Vi_KP`APZzjz$8cd`9de*DdomcfF)1?q zkF~og^+$Q-A)dsV?2Y{oo7ZgfFFL)?MEub1a~!AC*nmndHQV_7ZTZxru$?u=PW!<1 VujMP}$e!60m$c)Q$cs$}0s$f0ibVhb literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_subject_pid_mismatch/pai-Cert.pem b/credentials/development/commissioner_dut/struct_pai_subject_pid_mismatch/pai-Cert.pem new file mode 100644 index 00000000000000..74a7442e0245df --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_subject_pid_mismatch/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBvzCCAWSgAwIBAgIIIrNMi7TgqxowCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowMDEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTBZMBMGByqGSM49AgEGCCqGSM49AwEH +A0IABKV+lGcPVClXcp55e78Sn6LUFB1VwRKtG+NM+BdxZ3yLz6cSq4uIbhhcyNN3 +KM81OPbSqtM8+icDco2gWOkZzcajZjBkMBIGA1UdEwEB/wQIMAYBAf8CAQEwDgYD +VR0PAQH/BAQDAgEGMB0GA1UdDgQWBBTx7ivCqgTA+WusQpVnIZNjpoAUSTAfBgNV +HSMEGDAWgBRq/SJ3H1Ef7L8WQZdnENzcMaFxfjAKBggqhkjOPQQDAgNJADBGAiEA +/10+2Rr8I6nCDGF8a7GP4YOstk9yy740F8K7zgjKJgYCIQDSgzxM/YTyjCC3BVw+ +K8DX9XepnB3Msl5iuMoU6LLAUQ== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_pai_subject_pid_mismatch/pai-Key.der b/credentials/development/commissioner_dut/struct_pai_subject_pid_mismatch/pai-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..2e7c073427b3f86fdc68fc1b0005aa7885743d8f GIT binary patch literal 121 zcmV-<0EYiCcLD(c1Ry#r*D4h=uVM+2^>Q~;{qAyDVKwPNIVGl7lIuBhWF?>q1_&yK zNX|V20SBQ(13~}L* bT*%XRD9<%G_R^};Jo+aCa*d!^=^4$&j=(XA literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_subject_pid_mismatch/pai-Key.pem b/credentials/development/commissioner_dut/struct_pai_subject_pid_mismatch/pai-Key.pem new file mode 100644 index 00000000000000..e32128c0000ae8 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_subject_pid_mismatch/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIDos1yoVM69iCZH1cjdT/e5yWGE16UE5JaZXkus5c2QloAoGCCqGSM49 +AwEHoUQDQgAEpX6UZw9UKVdynnl7vxKfotQUHVXBEq0b40z4F3FnfIvPpxKri4hu +GFzI03cozzU49tKq0zz6JwNyjaBY6RnNxg== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_pai_subject_pid_mismatch/test_case_vector.json b/credentials/development/commissioner_dut/struct_pai_subject_pid_mismatch/test_case_vector.json new file mode 100644 index 00000000000000..409a99f9980ff1 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_subject_pid_mismatch/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "PAI Test Vector: PID in Subject field doesn't match PID in Issuer field", + "is_success_case": "false", + "dac_cert": "308201ce30820174a003020102020801a98aef1d5c4dd2300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030313059301306072a8648ce3d020106082a8648ce3d03010703420004ac6e965b0bdf6cd1c560ed6a6c8ac6b46538e0a8bfaed47729637fa7a906a082d6c1f4feb0885d922993d252b73108d596215b788e40738bb33ed5a041389584a360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e04160414f2e137882de173fb8595fd4e890268d3e93d0e9b301f0603551d23041830168014f1ee2bc2aa04c0f96bac429567219363a6801449300a06082a8648ce3d040302034800304502210088a8de72ea5f15549c9269a311656b7103de2bc27b4f62248e52b0eb802d85c002203c9b0fef0fb2037bfdfcbe6c30cf0105032b2ffbcfe8c9721547cc5f815d9003", + "pai_cert": "308201bf30820164a003020102020822b34c8bb4e0ab1a300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313059301306072a8648ce3d020106082a8648ce3d03010703420004a57e94670f542957729e797bbf129fa2d4141d55c112ad1be34cf81771677c8bcfa712ab8b886e185cc8d37728cf3538f6d2aad33cfa2703728da058e919cdc6a366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e04160414f1ee2bc2aa04c0f96bac429567219363a6801449301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d0403020349003046022100ff5d3ed91afc23a9c20c617c6bb18fe183acb64f72cbbe3417c2bbce08ca2606022100d2833c4cfd84f28c20b7055c3e2bc0d7f577a99c1dccb25e62b8ca14e8b2c051", + "certification_declaration": "3081ea06092a864886f70d010702a081dc3081d9020103310d300b0609608648016503040201304506092a864886f70d010701a0380436152400012501f1ff360205018018250334122c04135a494732303134315a423333303030312d32342405002406002507769824080018317e307c020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d04030204483046022100889a248339a7f6c6d1956598ff270dfaef114f5d048eda82dd6ffcbea51b5a3502210080266c4d51feeac0338df36719e143f33cc96b91991c9dc86dad0db255886303", + "dac_private_key": "9b92d5b878a2592ba7774e16698ad8d27d651beeb2aba34e95dbc3f17e6d8da5", + "dac_public_key": "04ac6e965b0bdf6cd1c560ed6a6c8ac6b46538e0a8bfaed47729637fa7a906a082d6c1f4feb0885d922993d252b73108d596215b788e40738bb33ed5a041389584" +} diff --git a/credentials/development/commissioner_dut/struct_pai_subject_vid_mismatch/cd.der b/credentials/development/commissioner_dut/struct_pai_subject_vid_mismatch/cd.der new file mode 100644 index 0000000000000000000000000000000000000000..955eaaa4411922ac30e6cb2c8728ccdbca2fb883 GIT binary patch literal 235 zcmXqLe8I-4)#lOmotKfFX+h&HgU0JjjLe3-2Hb3%32h#Xsmv@)j0UaZ*LiJv2kd%d7QIlVP-NgFqAM5V`C0wVdmlY zO)M!%Em8Q}nHZr?W@cn(c4A2IJ=>A1H$bro4 z&S2oeq#*CQ|5d;##g4TP8j6|grXKpE_P9{-nEEp1kJIuN-bkn*8K*6BCjM`gPG| b*PlaBg!Rskjm$VGH*f_M>JkHs&Ff$n#7)lt3u`!3TF!S*H zCYF?>7Ab_J7MCalI64}N7znX(X|pl1Fg7i!VPfQAadUGsG*A%dH8L_VF*1OFC<%T` zATTsC1|m~SQ_CnkW_n^Z)5svwK$wjk>?S5gsN#&t?%u>r4 zPAU8C^(Tqc?6-1eFmW%I*_fiGZpXkaao+3PvHYd8(y#q}AGW!)R=cuTsk)@Ie$`9A z#c2j9KyNUI$_g_w{%7GZU;|Q2jEn|+ATfTB7%&(Z*$iYsd_ER277s$}?JmLoc!Q+N7 literal 0 HcmV?d00001 diff --git a/credentials/development/commissioner_dut/struct_pai_subject_vid_mismatch/pai-Cert.pem b/credentials/development/commissioner_dut/struct_pai_subject_vid_mismatch/pai-Cert.pem new file mode 100644 index 00000000000000..b4035dd99d5923 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_subject_vid_mismatch/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBvzCCAWSgAwIBAgIIJqhw65Q60iowCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowMDEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMjBZMBMGByqGSM49AgEGCCqGSM49AwEH +A0IABFrYCZiYQ/rDOk1cpTmYQmS/Py+SFHy/OkMANEdzHLFkKic+AAsYz0rOxm+l +mmfW/e9Ws3V9K3lzInt0iX+q6U6jZjBkMBIGA1UdEwEB/wQIMAYBAf8CAQEwDgYD +VR0PAQH/BAQDAgEGMB0GA1UdDgQWBBQFTrnsCsagbydqAQNGKp9oFb+ibDAfBgNV +HSMEGDAWgBRq/SJ3H1Ef7L8WQZdnENzcMaFxfjAKBggqhkjOPQQDAgNJADBGAiEA +hZhZzVaF7sn2kePWeY12JDF1YhyHJY62SZfQHNrStO0CIQDIBPokVZnKqqjCFjI8 +7XtS8OsfrGQ6mN5Cqa5FwIziDw== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_pai_subject_vid_mismatch/pai-Key.der b/credentials/development/commissioner_dut/struct_pai_subject_vid_mismatch/pai-Key.der new file mode 100644 index 0000000000000000000000000000000000000000..0b61acbcaee36f34fc22dddff7f6ba34c09232df GIT binary patch literal 121 zcmV-<0EYiCcLD(c1R%@L*J#)k%!YvV5_NB>XXOL)5yu^L6~r$&wBnKhEcKuY1_&yK zNX|V20SBQ(13~}(subjectVID + 1) : subjectVID; + uint16_t pid = certConfig.IsSubjectPIDMismatch() ? static_cast(subjectPID + 1) : subjectPID; VerifyOrReturnError(subjectCN != nullptr, false); VerifyOrReturnError(caCert != nullptr, false); @@ -759,8 +761,7 @@ bool MakeAttCert(AttCertType attCertType, const char * subjectCN, uint16_t subje VerifyOrReturnError(newCert != nullptr, false); VerifyOrReturnError(newKey != nullptr, false); - // Set the certificate version (must be 2, a.k.a. v3). - if (!X509_set_version(newCert, 2)) + if (!X509_set_version(newCert, certConfig.GetCertVersion())) { ReportOpenSSLErrorAndExit("X509_set_version", res = false); } @@ -810,7 +811,7 @@ bool MakeAttCert(AttCertType attCertType, const char * subjectCN, uint16_t subje strlen(chip::Crypto::kVIDPrefixForCNEncoding)); cnAttrStrLen += strlen(chip::Crypto::kVIDPrefixForCNEncoding); - VerifyOrReturnError(Encoding::Uint16ToHex(subjectVID, &cnAttrStr[cnAttrStrLen], chip::Crypto::kVIDandPIDHexLength, + VerifyOrReturnError(Encoding::Uint16ToHex(vid, &cnAttrStr[cnAttrStrLen], chip::Crypto::kVIDandPIDHexLength, Encoding::HexFlags::kUppercase) == CHIP_NO_ERROR, false); cnAttrStrLen += chip::Crypto::kVIDandPIDHexLength; @@ -833,7 +834,7 @@ bool MakeAttCert(AttCertType attCertType, const char * subjectCN, uint16_t subje strlen(chip::Crypto::kPIDPrefixForCNEncoding)); cnAttrStrLen += strlen(chip::Crypto::kPIDPrefixForCNEncoding); - VerifyOrReturnError(Encoding::Uint16ToHex(subjectPID, &cnAttrStr[cnAttrStrLen], chip::Crypto::kVIDandPIDHexLength, + VerifyOrReturnError(Encoding::Uint16ToHex(pid, &cnAttrStr[cnAttrStrLen], chip::Crypto::kVIDandPIDHexLength, Encoding::HexFlags::kUppercase) == CHIP_NO_ERROR, false); cnAttrStrLen += chip::Crypto::kVIDandPIDHexLength; @@ -854,7 +855,7 @@ bool MakeAttCert(AttCertType attCertType, const char * subjectCN, uint16_t subje if (subjectVID != VendorId::NotSpecified) { char chipAttrStr[chip::Crypto::kVIDandPIDHexLength]; - VerifyOrReturnError(Encoding::Uint16ToHex(subjectVID, chipAttrStr, chip::Crypto::kVIDandPIDHexLength, + VerifyOrReturnError(Encoding::Uint16ToHex(vid, chipAttrStr, chip::Crypto::kVIDandPIDHexLength, Encoding::HexFlags::kUppercase) == CHIP_NO_ERROR, false); @@ -869,7 +870,7 @@ bool MakeAttCert(AttCertType attCertType, const char * subjectCN, uint16_t subje if (subjectPID != 0) { char chipAttrStr[chip::Crypto::kVIDandPIDHexLength]; - VerifyOrReturnError(Encoding::Uint16ToHex(subjectPID, chipAttrStr, chip::Crypto::kVIDandPIDHexLength, + VerifyOrReturnError(Encoding::Uint16ToHex(pid, chipAttrStr, chip::Crypto::kVIDandPIDHexLength, Encoding::HexFlags::kUppercase) == CHIP_NO_ERROR, false); @@ -888,35 +889,141 @@ bool MakeAttCert(AttCertType attCertType, const char * subjectCN, uint16_t subje ReportOpenSSLErrorAndExit("X509_set_issuer_name", res = false); } - // Add the appropriate certificate extensions. - if (attCertType == kAttCertType_DAC) + if (certConfig.IsExtensionBasicPresent()) { - res = AddExtension(newCert, NID_basic_constraints, "critical,CA:FALSE") && - AddExtension(newCert, NID_key_usage, "critical,digitalSignature"); + std::string basicConstraintsExt; + + if (certConfig.IsExtensionBasicCriticalPresent()) + { + if (certConfig.IsExtensionBasicCritical()) + { + basicConstraintsExt += "critical"; + } + } + + if (certConfig.IsExtensionBasicCAPresent()) + { + if (!basicConstraintsExt.empty()) + { + basicConstraintsExt += ","; + } + if ((certConfig.IsExtensionBasicCACorrect() && attCertType == kAttCertType_DAC) || + (!certConfig.IsExtensionBasicCACorrect() && attCertType != kAttCertType_DAC)) + { + basicConstraintsExt += "CA:FALSE"; + } + else + { + basicConstraintsExt += "CA:TRUE"; + } + } + + if (certConfig.IsExtensionBasicPathLenPresent(attCertType) || !certConfig.IsExtensionBasicCAPresent()) + { + if (!basicConstraintsExt.empty()) + { + basicConstraintsExt += ","; + } + basicConstraintsExt.append("pathlen:" + std::to_string(certConfig.GetExtensionBasicPathLenValue(attCertType))); + } + + res = AddExtension(newCert, NID_basic_constraints, basicConstraintsExt.c_str()); + VerifyTrueOrExit(res); } - else if (attCertType == kAttCertType_PAI) + + if (certConfig.IsExtensionKeyUsagePresent()) { - res = AddExtension(newCert, NID_basic_constraints, "critical,CA:TRUE,pathlen:0") && - AddExtension(newCert, NID_key_usage, "critical,keyCertSign,cRLSign"); + std::string keyUsageExt; + + if (certConfig.IsExtensionKeyUsageCriticalPresent()) + { + if (certConfig.IsExtensionKeyUsageCritical()) + { + keyUsageExt += "critical"; + } + } + + if ((certConfig.IsExtensionKeyUsageDigitalSigCorrect() && attCertType == kAttCertType_DAC) || + (!certConfig.IsExtensionKeyUsageDigitalSigCorrect() && attCertType != kAttCertType_DAC)) + { + if (!keyUsageExt.empty()) + { + keyUsageExt += ","; + } + keyUsageExt += "digitalSignature"; + } + + if ((certConfig.IsExtensionKeyUsageKeyCertSignCorrect() && attCertType != kAttCertType_DAC) || + (!certConfig.IsExtensionKeyUsageKeyCertSignCorrect() && attCertType == kAttCertType_DAC)) + { + if (!keyUsageExt.empty()) + { + keyUsageExt += ","; + } + keyUsageExt += "keyCertSign"; + } + + if ((certConfig.IsExtensionKeyUsageCRLSignCorrect() && attCertType != kAttCertType_DAC) || + (!certConfig.IsExtensionKeyUsageCRLSignCorrect() && attCertType == kAttCertType_DAC)) + { + if (!keyUsageExt.empty()) + { + keyUsageExt += ","; + } + keyUsageExt += "cRLSign"; + } + + // In test mode only: just add an extra extension flag to prevent empty extantion. + if (certConfig.IsErrorTestCaseEnabled() && (keyUsageExt.empty() || (keyUsageExt.compare("critical") == 0))) + { + if (!keyUsageExt.empty()) + { + keyUsageExt += ","; + } + keyUsageExt += "keyEncipherment"; + } + + res = AddExtension(newCert, NID_key_usage, keyUsageExt.c_str()); + VerifyTrueOrExit(res); } - // otherwise, it is PAA - else + + if (certConfig.IsExtensionSKIDPresent()) { - res = AddExtension(newCert, NID_basic_constraints, "critical,CA:TRUE,pathlen:1") && - AddExtension(newCert, NID_key_usage, "critical,keyCertSign,cRLSign"); + // Add a subject key id extension for the certificate. + res = AddSubjectKeyId(newCert); + VerifyTrueOrExit(res); } - VerifyTrueOrExit(res); - // Add a subject key id extension for the certificate. - res = AddSubjectKeyId(newCert); - VerifyTrueOrExit(res); + if (certConfig.IsExtensionAKIDPresent()) + { + // Add the authority key id extension from the signing certificate. + res = AddAuthorityKeyId(newCert, caCert); + VerifyTrueOrExit(res); + } - // Add the authority key id extension from the signing certificate. - res = AddAuthorityKeyId(newCert, caCert); - VerifyTrueOrExit(res); + if (certConfig.IsExtensionExtendedKeyUsagePresent()) + { + // Add optional Extended Key Usage extentsion. + res = AddExtension(newCert, NID_ext_key_usage, "critical,clientAuth,serverAuth"); + VerifyTrueOrExit(res); + } + + if (certConfig.IsExtensionAuthorityInfoAccessPresent()) + { + // Add optional Authority Informational Access extentsion. + res = AddExtension(newCert, NID_info_access, "OCSP;URI:http://ocsp.example.com/"); + VerifyTrueOrExit(res); + } + + if (certConfig.IsExtensionSubjectAltNamePresent()) + { + // Add optional Subject Alternative Name extentsion. + res = AddExtension(newCert, NID_subject_alt_name, "DNS:test.com"); + VerifyTrueOrExit(res); + } // Sign the new certificate. - if (!X509_sign(newCert, caKey, EVP_sha256())) + if (!X509_sign(newCert, caKey, certConfig.GetSignatureAlgorithm())) { ReportOpenSSLErrorAndExit("X509_sign", res = false); } diff --git a/src/tools/chip-cert/Cmd_GenAttCert.cpp b/src/tools/chip-cert/Cmd_GenAttCert.cpp index 766f64b69c1fae..6c98076c1fd4c5 100644 --- a/src/tools/chip-cert/Cmd_GenAttCert.cpp +++ b/src/tools/chip-cert/Cmd_GenAttCert.cpp @@ -57,6 +57,10 @@ OptionDef gCmdOptionDefs[] = { "out-key", kArgumentRequired, 'O' }, { "valid-from", kArgumentRequired, 'f' }, { "lifetime", kArgumentRequired, 'l' }, +#if CHIP_CONFIG_INTERNAL_FLAG_GENERATE_DA_TEST_CASES + { "ignore-error", kNoArgument, 'i' }, + { "error-type", kArgumentRequired, 'e' }, +#endif { } }; @@ -119,6 +123,57 @@ const char * const gCmdOptionHelp = " 4294967295 to indicate that certificate doesn't have well defined\n" " expiration date\n" "\n" +#if CHIP_CONFIG_INTERNAL_FLAG_GENERATE_DA_TEST_CASES + " -i, --ignore-error\n" + "\n" + " Ignore some input parameters error.\n" + " WARNING: This option makes it possible to circumvent attestation certificate\n" + " structure requirement. This is required for negative testing of the attestation flow.\n" + " Because of this it SHOULD NEVER BE ENABLED IN PRODUCTION BUILDS.\n" + "\n" + " -e, --error-type \n" + "\n" + " When specified injects specific error into the structure of generated attestation certificate.\n" + " Note that 'ignore-error' option MUST be specified for this error injection to take effect.\n" + " Supported error types that can be injected are:\n" + " no-error - No error to inject.\n" + " cert-version - Certificate version will be set to v2 instead of required v3.\n" + " sig-algo - Use ecdsa-with-SHA1 signature algorithm instead of required ecdsa-with-SHA256.\n" + " issuer-vid - TODO\n" + " issuer-pid - TODO\n" + " subject-vid - TODO\n" + " subject-vid-mismatch - The VID value in the subject field won't match VID in the issuer field.\n" + " subject-pid - TODO\n" + " subject-pid-mismatch - The PID value in the subject field won't match PID in the issuer field.\n" + " sig-curve - Use secp256k1 curve to generate certificate signature instead of\n" + " required secp256r1 (aka prime256v1).\n" + " ext-basic-missing - Certificate won't have required Basic Constraint extension.\n" + " ext-basic-critical-missing - Basic Constraint extension won't have critical field.\n" + " ext-basic-critical-wrong - Basic Constraint extension will be marked as non-critical.\n" + " ext-basic-ca-missing - Basic Constraint extension won't have cA field.\n" + " ext-basic-ca-wrong - Basic Constraint extension cA field will be set to TRUE for DAC\n" + " and to FALSE for PAI and PAA.\n" + " ext-basic-pathlen-presence-wrong - Basic Constraint extension will include pathLen field for DAC\n" + " and won't have pathLen field for PAI and PAA.\n" + " ext-basic-pathlen0 - Basic Constraint extension pathLen field will be set to 0.\n" + " ext-basic-pathlen1 - Basic Constraint extension pathLen field will be set to 1.\n" + " ext-basic-pathlen2 - Basic Constraint extension pathLen field will be set to 2.\n" + " ext-key-usage-missing - Certificate won't have required Key Usage extension.\n" + " ext-key-usage-critical-missing - Key Usage extension won't have critical field.\n" + " ext-key-usage-critical-wrong - Key Usage extension will be marked as non-critical.\n" + " ext-key-usage-dig-sig - Key Usage extension digitalSignature flag won't be set for DAC\n" + " and will be set for PAI/PAA.\n" + " ext-key-usage-key-cert-sign - Key Usage extension keyCertSign flag will be set for DAC\n" + " and won't be set for PAI/PAA.\n" + " ext-key-usage-crl-sign - Key Usage extension cRLSign flag will be set for DAC\n" + " and won't set for PAI/PAA.\n" + " ext-akid-missing - Certificate won't have required Authority Key ID extension.\n" + " ext-skid-missing - Certificate won't have required Subject Key ID extension.\n" + " ext-extended-key-usage - Certificate will include optional Extended Key Usage extension.\n" + " ext-authority-info-access - Certificate will include optional Authority Information Access extension.\n" + " ext-subject-alt-name - Certificate will include optional Subject Alternative Name extension.\n" + "\n" +#endif ; OptionSet gCmdOptions = @@ -156,6 +211,7 @@ const char * gOutCertFileName = nullptr; const char * gOutKeyFileName = nullptr; uint32_t gValidDays = kCertValidDays_Undefined; struct tm gValidFrom; +AttCertStructConfig gCertConfig; bool HandleOption(const char * progName, OptionSet * optSet, int id, const char * name, const char * arg) { @@ -233,6 +289,118 @@ bool HandleOption(const char * progName, OptionSet * optSet, int id, const char return false; } break; +#if CHIP_CONFIG_INTERNAL_FLAG_GENERATE_DA_TEST_CASES + case 'i': + gCertConfig.EnableErrorTestCase(); + break; + case 'e': + if (strcmp(arg, "cert-version") == 0) + { + gCertConfig.SetCertVersionWrong(); + } + else if (strcmp(arg, "sig-algo") == 0) + { + gCertConfig.SetSigAlgoWrong(); + } + else if (strcmp(arg, "subject-vid-mismatch") == 0) + { + gCertConfig.SetSubjectVIDMismatch(); + } + else if (strcmp(arg, "subject-pid-mismatch") == 0) + { + gCertConfig.SetSubjectPIDMismatch(); + } + else if (strcmp(arg, "sig-curve") == 0) + { + gCertConfig.SetSigCurveWrong(); + } + else if (strcmp(arg, "ext-basic-missing") == 0) + { + gCertConfig.SetExtensionBasicMissing(); + } + else if (strcmp(arg, "ext-basic-critical-missing") == 0) + { + gCertConfig.SetExtensionBasicCriticalMissing(); + } + else if (strcmp(arg, "ext-basic-critical-wrong") == 0) + { + gCertConfig.SetExtensionBasicCriticalWrong(); + } + else if (strcmp(arg, "ext-basic-ca-missing") == 0) + { + gCertConfig.SetExtensionBasicCAMissing(); + } + else if (strcmp(arg, "ext-basic-ca-wrong") == 0) + { + gCertConfig.SetExtensionBasicCAWrong(); + } + else if (strcmp(arg, "ext-basic-pathlen-presence-wrong") == 0) + { + gCertConfig.SetExtensionBasicPathLenPresenceWrong(); + } + else if (strcmp(arg, "ext-basic-pathlen0") == 0) + { + gCertConfig.SetExtensionBasicPathLen0(); + } + else if (strcmp(arg, "ext-basic-pathlen1") == 0) + { + gCertConfig.SetExtensionBasicPathLen1(); + } + else if (strcmp(arg, "ext-basic-pathlen2") == 0) + { + gCertConfig.SetExtensionBasicPathLen2(); + } + else if (strcmp(arg, "ext-key-usage-missing") == 0) + { + gCertConfig.SetExtensionKeyUsageMissing(); + } + else if (strcmp(arg, "ext-key-usage-critical-missing") == 0) + { + gCertConfig.SetExtensionKeyUsageCriticalMissing(); + } + else if (strcmp(arg, "ext-key-usage-critical-wrong") == 0) + { + gCertConfig.SetExtensionKeyUsageCriticalWrong(); + } + else if (strcmp(arg, "ext-key-usage-dig-sig") == 0) + { + gCertConfig.SetExtensionKeyUsageDigitalSigWrong(); + } + else if (strcmp(arg, "ext-key-usage-key-cert-sign") == 0) + { + gCertConfig.SetExtensionKeyUsageKeyCertSignWrong(); + } + else if (strcmp(arg, "ext-key-usage-crl-sign") == 0) + { + gCertConfig.SetExtensionKeyUsageCRLSignWrong(); + } + else if (strcmp(arg, "ext-akid-missing") == 0) + { + gCertConfig.SetExtensionAKIDMissing(); + } + else if (strcmp(arg, "ext-skid-missing") == 0) + { + gCertConfig.SetExtensionSKIDMissing(); + } + else if (strcmp(arg, "ext-extended-key-usage") == 0) + { + gCertConfig.SetExtensionExtendedKeyUsagePresent(); + } + else if (strcmp(arg, "ext-authority-info-access") == 0) + { + gCertConfig.SetExtensionAuthorityInfoAccessPresent(); + } + else if (strcmp(arg, "ext-subject-alt-name") == 0) + { + gCertConfig.SetExtensionSubjectAltNamePresent(); + } + else if (strcmp(arg, "no-error") != 0) + { + PrintArgError("%s: Invalid value specified for the error type: %s\n", progName, arg); + return false; + } + break; +#endif default: PrintArgError("%s: Unhandled option: %s\n", progName, name); return false; @@ -266,33 +434,42 @@ bool Cmd_GenAttCert(int argc, char * argv[]) res = ParseArgs(CMD_NAME, argc, argv, gCmdOptionSets); VerifyTrueOrExit(res); + if (gCertConfig.IsErrorTestCaseEnabled()) + { + fprintf(stderr, + "WARNING: The ignor-error option is set. This option makes it possible to generate invalid certificates.\n"); + } + if (gAttCertType == kAttCertType_NotSpecified) { fprintf(stderr, "Please specify attestation certificate type.\n"); return false; } - if (gAttCertType == kAttCertType_DAC) + if (!gCertConfig.IsErrorTestCaseEnabled()) { - if (gSubjectVID == VendorId::NotSpecified || gSubjectPID == 0) + if (gAttCertType == kAttCertType_DAC) { - fprintf(stderr, "Please specify VID and PID subject DN attributes.\n"); - return false; + if (gSubjectVID == VendorId::NotSpecified || gSubjectPID == 0) + { + fprintf(stderr, "Please specify VID and PID subject DN attributes.\n"); + return false; + } } - } - else if (gAttCertType == kAttCertType_PAI) - { - if (gSubjectVID == VendorId::NotSpecified) + if (gAttCertType == kAttCertType_PAI) { - fprintf(stderr, "Please specify VID subject DN attributes.\n"); - return false; + if (gSubjectVID == VendorId::NotSpecified) + { + fprintf(stderr, "Please specify VID subject DN attributes.\n"); + return false; + } } - } - else if (gAttCertType == kAttCertType_PAA) - { - if (gSubjectPID != 0) + if (gAttCertType == kAttCertType_PAA) { - fprintf(stderr, "VID & PID SHALL NOT specify subject DN attributes.\n"); - return false; + if (gSubjectPID != 0) + { + fprintf(stderr, "VID & PID SHALL NOT specify subject DN attributes.\n"); + return false; + } } } @@ -360,14 +537,22 @@ bool Cmd_GenAttCert(int argc, char * argv[]) } else { - res = GenerateKeyPair(newKey.get()); - VerifyTrueOrExit(res); + if (gCertConfig.IsSigCurveWrong()) + { + res = GenerateKeyPair_Secp256k1(newKey.get()); + VerifyTrueOrExit(res); + } + else + { + res = GenerateKeyPair(newKey.get()); + VerifyTrueOrExit(res); + } } if (gAttCertType == kAttCertType_PAA) { res = MakeAttCert(gAttCertType, gSubjectCN, gSubjectVID, gSubjectPID, gEncodeVIDandPIDasCN, newCert.get(), newKey.get(), - gValidFrom, gValidDays, newCert.get(), newKey.get()); + gValidFrom, gValidDays, newCert.get(), newKey.get(), gCertConfig); VerifyTrueOrExit(res); } else @@ -378,11 +563,11 @@ bool Cmd_GenAttCert(int argc, char * argv[]) res = ReadCert(gCACertFileName, caCert.get()); VerifyTrueOrExit(res); - res = ReadKey(gCAKeyFileName, caKey.get()); + res = ReadKey(gCAKeyFileName, caKey.get(), gCertConfig.IsErrorTestCaseEnabled()); VerifyTrueOrExit(res); res = MakeAttCert(gAttCertType, gSubjectCN, gSubjectVID, gSubjectPID, gEncodeVIDandPIDasCN, caCert.get(), caKey.get(), - gValidFrom, gValidDays, newCert.get(), newKey.get()); + gValidFrom, gValidDays, newCert.get(), newKey.get(), gCertConfig); VerifyTrueOrExit(res); } diff --git a/src/tools/chip-cert/KeyUtils.cpp b/src/tools/chip-cert/KeyUtils.cpp index 272c54e747bb3a..34d3ecc0211b11 100644 --- a/src/tools/chip-cert/KeyUtils.cpp +++ b/src/tools/chip-cert/KeyUtils.cpp @@ -142,7 +142,7 @@ bool SerializeKeyPair(EVP_PKEY * key, P256SerializedKeypair & serializedKeypair) return res; } -bool ReadKey(const char * fileName, EVP_PKEY * key) +bool ReadKey(const char * fileName, EVP_PKEY * key, bool ignorErrorIfUnsupportedCurve) { bool res = true; uint32_t keyDataLen = 0; @@ -207,7 +207,8 @@ bool ReadKey(const char * fileName, EVP_PKEY * key) } } - if (EC_GROUP_get_curve_name(EC_KEY_get0_group(EVP_PKEY_get1_EC_KEY(key))) != gNIDChipCurveP256) + if ((EC_GROUP_get_curve_name(EC_KEY_get0_group(EVP_PKEY_get1_EC_KEY(key))) != gNIDChipCurveP256) && + !ignorErrorIfUnsupportedCurve) { fprintf(stderr, "Specified key uses unsupported Elliptic Curve\n"); ExitNow(res = false); @@ -238,6 +239,27 @@ bool GenerateKeyPair(EVP_PKEY * key) return res; } +bool GenerateKeyPair_Secp256k1(EVP_PKEY * key) +{ + bool res = true; + std::unique_ptr ecKey(EC_KEY_new_by_curve_name(NID_secp256k1), &EC_KEY_free); + + VerifyOrExit(key != nullptr, res = false); + + if (!EC_KEY_generate_key(ecKey.get())) + { + ReportOpenSSLErrorAndExit("EC_KEY_generate_key", res = false); + } + + if (!EVP_PKEY_set1_EC_KEY(key, ecKey.get())) + { + ReportOpenSSLErrorAndExit("EVP_PKEY_set1_EC_KEY", res = false); + } + +exit: + return res; +} + bool WritePrivateKey(const char * fileName, EVP_PKEY * key, KeyFormat keyFmt) { bool res = true; diff --git a/src/tools/chip-cert/chip-cert.h b/src/tools/chip-cert/chip-cert.h index b56aa16610e61a..d51d3b89291d25 100644 --- a/src/tools/chip-cert/chip-cert.h +++ b/src/tools/chip-cert/chip-cert.h @@ -66,9 +66,15 @@ using chip::ASN1::OID; +#ifndef CHIP_CONFIG_INTERNAL_FLAG_GENERATE_DA_TEST_CASES +#define CHIP_CONFIG_INTERNAL_FLAG_GENERATE_DA_TEST_CASES CHIP_CONFIG_TEST +#endif + #define COPYRIGHT_STRING \ - "Copyright (c) 2021 Project CHIP Authors.\nCopyright (c) 2019 Google LLC.\nCopyright (c) 2013-2017 Nest Labs, Inc.\nAll " \ - "rights reserved.\n" + "Copyright (c) 2021-2022 Project CHIP Authors" \ + "Copyright (c) 2019 Google LLC." \ + "Copyright (c) 2013-2017 Nest Labs, Inc." \ + "All rights reserved.\n" enum { @@ -110,6 +116,132 @@ struct FutureExtension const char * info; }; +/** Attestation Certificate Error Flags + * + * By default all methods (if none of the class setters were used) return valid + * attestation certificate configuration parameter as described in the spec. + * These parameters can be modified to inject errors into certificate structure. + */ +class AttCertStructConfig +{ +public: + void EnableErrorTestCase() { mEnabled = true; } + void SetCertVersionWrong() { mFlags.Set(CertErrorFlags::kCertVersion); } + void SetSigAlgoWrong() { mFlags.Set(CertErrorFlags::kSigAlgo); } + void SetSubjectVIDMismatch() { mFlags.Set(CertErrorFlags::kSubjectVIDMismatch); } + void SetSubjectPIDMismatch() { mFlags.Set(CertErrorFlags::kSubjectPIDMismatch); } + void SetSigCurveWrong() { mFlags.Set(CertErrorFlags::kSigCurve); } + void SetExtensionBasicMissing() { mFlags.Set(CertErrorFlags::kExtBasicMissing); } + void SetExtensionBasicCriticalMissing() { mFlags.Set(CertErrorFlags::kExtBasicCriticalMissing); } + void SetExtensionBasicCriticalWrong() { mFlags.Set(CertErrorFlags::kExtBasicCriticalWrong); } + void SetExtensionBasicCAMissing() { mFlags.Set(CertErrorFlags::kExtBasicCAMissing); } + void SetExtensionBasicCAWrong() { mFlags.Set(CertErrorFlags::kExtBasicCAWrong); } + void SetExtensionBasicPathLenPresenceWrong() { mFlags.Set(CertErrorFlags::kExtBasicPathLenWrong); } + void SetExtensionBasicPathLen0() { mFlags.Set(CertErrorFlags::kExtBasicPathLen0); } + void SetExtensionBasicPathLen1() { mFlags.Set(CertErrorFlags::kExtBasicPathLen1); } + void SetExtensionBasicPathLen2() { mFlags.Set(CertErrorFlags::kExtBasicPathLen2); } + void SetExtensionKeyUsageMissing() { mFlags.Set(CertErrorFlags::kExtKeyUsageMissing); } + void SetExtensionKeyUsageCriticalMissing() { mFlags.Set(CertErrorFlags::kExtKeyUsageCriticalMissing); } + void SetExtensionKeyUsageCriticalWrong() { mFlags.Set(CertErrorFlags::kExtKeyUsageCriticalWrong); } + void SetExtensionKeyUsageDigitalSigWrong() { mFlags.Set(CertErrorFlags::kExtKeyUsageDigSig); } + void SetExtensionKeyUsageKeyCertSignWrong() { mFlags.Set(CertErrorFlags::kExtKeyUsageKeyCertSign); } + void SetExtensionKeyUsageCRLSignWrong() { mFlags.Set(CertErrorFlags::kExtKeyUsageCRLSign); } + void SetExtensionAKIDMissing() { mFlags.Set(CertErrorFlags::kExtAKIDMissing); } + void SetExtensionSKIDMissing() { mFlags.Set(CertErrorFlags::kExtSKIDMissing); } + void SetExtensionExtendedKeyUsagePresent() { mFlags.Set(CertErrorFlags::kExtExtendedKeyUsage); } + void SetExtensionAuthorityInfoAccessPresent() { mFlags.Set(CertErrorFlags::kExtAuthorityInfoAccess); } + void SetExtensionSubjectAltNamePresent() { mFlags.Set(CertErrorFlags::kExtSubjectAltName); } + + bool IsErrorTestCaseEnabled() { return mEnabled; } + int GetCertVersion() { return (mEnabled && mFlags.Has(CertErrorFlags::kCertVersion)) ? 1 : 2; } + const EVP_MD * GetSignatureAlgorithm() + { + return (mEnabled && mFlags.Has(CertErrorFlags::kSigAlgo)) ? EVP_sha1() : EVP_sha256(); + } + bool IsSubjectVIDMismatch() { return (mEnabled && mFlags.Has(CertErrorFlags::kSubjectVIDMismatch)); } + bool IsSubjectPIDMismatch() { return (mEnabled && mFlags.Has(CertErrorFlags::kSubjectPIDMismatch)); } + bool IsSigCurveWrong() { return (mEnabled && mFlags.Has(CertErrorFlags::kSigCurve)); } + bool IsExtensionBasicPresent() { return (!mEnabled || !mFlags.Has(CertErrorFlags::kExtBasicMissing)); } + bool IsExtensionBasicCriticalPresent() { return (!mEnabled || !mFlags.Has(CertErrorFlags::kExtBasicCriticalMissing)); } + bool IsExtensionBasicCritical() { return (!mEnabled || !mFlags.Has(CertErrorFlags::kExtBasicCriticalWrong)); } + bool IsExtensionBasicCAPresent() { return (!mEnabled || !mFlags.Has(CertErrorFlags::kExtBasicCAMissing)); } + bool IsExtensionBasicCACorrect() { return (!mEnabled || !mFlags.Has(CertErrorFlags::kExtBasicCAWrong)); } + bool IsExtensionBasicPathLenPresent(AttCertType & attCertType) + { + bool normallyPresent = (attCertType != kAttCertType_DAC); + bool testCaseWrong = (mEnabled && mFlags.Has(CertErrorFlags::kExtBasicPathLenWrong)); + return (normallyPresent ^ testCaseWrong); + } + int GetExtensionBasicPathLenValue(AttCertType & attCertType) + { + if (mFlags.Has(CertErrorFlags::kExtBasicPathLen0)) + { + return 0; + } + if (mFlags.Has(CertErrorFlags::kExtBasicPathLen1)) + { + return 1; + } + if (mFlags.Has(CertErrorFlags::kExtBasicPathLen2)) + { + return 2; + } + if (attCertType == kAttCertType_PAA) + { + return 0; + } + if (attCertType == kAttCertType_PAI) + { + return 1; + } + return 0; + } + bool IsExtensionKeyUsagePresent() { return (!mEnabled || !mFlags.Has(CertErrorFlags::kExtKeyUsageMissing)); } + bool IsExtensionKeyUsageCriticalPresent() { return (!mEnabled || !mFlags.Has(CertErrorFlags::kExtKeyUsageCriticalMissing)); } + bool IsExtensionKeyUsageCritical() { return (!mEnabled || !mFlags.Has(CertErrorFlags::kExtKeyUsageCriticalWrong)); } + bool IsExtensionKeyUsageDigitalSigCorrect() { return (!mEnabled || !mFlags.Has(CertErrorFlags::kExtKeyUsageDigSig)); } + bool IsExtensionKeyUsageKeyCertSignCorrect() { return (!mEnabled || !mFlags.Has(CertErrorFlags::kExtKeyUsageKeyCertSign)); } + bool IsExtensionKeyUsageCRLSignCorrect() { return (!mEnabled || !mFlags.Has(CertErrorFlags::kExtKeyUsageCRLSign)); } + bool IsExtensionAKIDPresent() { return (!mEnabled || !mFlags.Has(CertErrorFlags::kExtAKIDMissing)); } + bool IsExtensionSKIDPresent() { return (!mEnabled || !mFlags.Has(CertErrorFlags::kExtSKIDMissing)); } + bool IsExtensionExtendedKeyUsagePresent() { return (mEnabled && mFlags.Has(CertErrorFlags::kExtExtendedKeyUsage)); } + bool IsExtensionAuthorityInfoAccessPresent() { return (mEnabled && mFlags.Has(CertErrorFlags::kExtAuthorityInfoAccess)); } + bool IsExtensionSubjectAltNamePresent() { return (mEnabled && mFlags.Has(CertErrorFlags::kExtSubjectAltName)); } + +private: + enum class CertErrorFlags : uint32_t + { + kCertVersion = 0x00000001, + kSigAlgo = 0x00000002, + kSubjectVIDMismatch = 0x00000004, + kSubjectPIDMismatch = 0x00000008, + kSigCurve = 0x00000010, + kExtBasicMissing = 0x00000020, + kExtBasicCriticalMissing = 0x00000040, + kExtBasicCriticalWrong = 0x00000080, + kExtBasicCAMissing = 0x00000100, + kExtBasicCAWrong = 0x00000200, + kExtBasicPathLenWrong = 0x00000400, + kExtBasicPathLen0 = 0x00000800, + kExtBasicPathLen1 = 0x00001000, + kExtBasicPathLen2 = 0x00002000, + kExtKeyUsageMissing = 0x00004000, + kExtKeyUsageCriticalMissing = 0x00008000, + kExtKeyUsageCriticalWrong = 0x00010000, + kExtKeyUsageDigSig = 0x00020000, + kExtKeyUsageKeyCertSign = 0x00040000, + kExtKeyUsageCRLSign = 0x00080000, + kExtAKIDMissing = 0x00100000, + kExtSKIDMissing = 0x00200000, + kExtExtendedKeyUsage = 0x00400000, + kExtAuthorityInfoAccess = 0x00800000, + kExtSubjectAltName = 0x01000000, + }; + + bool mEnabled = false; + chip::BitFlags mFlags; +}; + class ToolChipDN : public chip::Credentials::ChipDN { public: @@ -143,10 +275,10 @@ extern bool ResignCert(X509 * cert, X509 * caCert, EVP_PKEY * caKey); extern bool MakeAttCert(AttCertType attCertType, const char * subjectCN, uint16_t subjectVID, uint16_t subjectPID, bool encodeVIDandPIDasCN, X509 * caCert, EVP_PKEY * caKey, const struct tm & validFrom, uint32_t validDays, - X509 * newCert, EVP_PKEY * newKey); - + X509 * newCert, EVP_PKEY * newKey, AttCertStructConfig & certConfig); extern bool GenerateKeyPair(EVP_PKEY * key); -extern bool ReadKey(const char * fileName, EVP_PKEY * key); +extern bool GenerateKeyPair_Secp256k1(EVP_PKEY * key); +extern bool ReadKey(const char * fileName, EVP_PKEY * key, bool ignorErrorIfUnsupportedCurve = false); extern bool WritePrivateKey(const char * fileName, EVP_PKEY * key, KeyFormat keyFmt); extern bool SerializeKeyPair(EVP_PKEY * key, chip::Crypto::P256SerializedKeypair & serializedKeypair); @@ -169,6 +301,7 @@ extern int gNIDChipRootId; extern int gNIDChipFabricId; extern int gNIDChipCASEAuthenticatedTag; extern int gNIDChipCurveP256; +extern int gNIDTestCurveSecp256k1; extern int gNIDChipAttAttrVID; extern int gNIDChipAttAttrPID; diff --git a/src/tools/chip-cert/gen_com_dut_test_vectors.py b/src/tools/chip-cert/gen_com_dut_test_vectors.py new file mode 100755 index 00000000000000..0cace7f4192b74 --- /dev/null +++ b/src/tools/chip-cert/gen_com_dut_test_vectors.py @@ -0,0 +1,392 @@ +#!/usr/bin/env python + +import argparse +import json +import os +import subprocess +import sys +import typing +import cryptography.x509 +import os.path +import glob +from binascii import hexlify, unhexlify +from enum import Enum + + +class CertType(Enum): + PAA = 1 + PAI = 2 + DAC = 3 + + +CERT_STRUCT_TEST_CASES = [ + { + "description": 'Valid certificate version field set to v3(2)', + "test_folder": 'cert_version_v3', + "error_flag": 'no-error', + "is_success_case": 'true', + }, + { + "description": 'Invalid certificate version field set to v2(1)', + "test_folder": 'cert_version_v2', + "error_flag": 'cert-version', + "is_success_case": 'false', + }, + { + "description": 'Valid certificate signature algorithm ECDSA_WITH_SHA256', + "test_folder": 'sig_algo_ecdsa_with_sha256', + "error_flag": 'no-error', + "is_success_case": 'true', + }, + { + "description": 'Invalid certificate signature algorithm ECDSA_WITH_SHA1', + "test_folder": 'sig_algo_ecdsa_with_sha1', + "error_flag": 'sig-algo', + "is_success_case": 'false', + }, + { + "description": "VID in Subject field doesn't match VID in Issuer field", + "test_folder": 'subject_vid_mismatch', + "error_flag": 'subject-vid-mismatch', + "is_success_case": 'false', + }, + { + "description": "PID in Subject field doesn't match PID in Issuer field", + "test_folder": 'subject_pid_mismatch', + "error_flag": 'subject-pid-mismatch', + "is_success_case": 'false', + }, + { + "description": "Valid certificate public key curve prime256v1", + "test_folder": 'sig_curve_prime256v1', + "error_flag": 'no-error', + "is_success_case": 'true', + }, + { + "description": "Invalid certificate public key curve secp256k1", + "test_folder": 'sig_curve_secp256k1', + "error_flag": 'sig-curve', + "is_success_case": 'false', + }, + # TODO Cases: + # 'issuer-vid' + # 'issuer-pid' + # 'subject-vid' + # 'subject-pid' + { + "description": "Certificate doesn't include Basic Constraint extension", + "test_folder": 'ext_basic_missing', + "error_flag": 'ext-basic-missing', + "is_success_case": 'false', + }, + { + "description": "Certificate Basic Constraint extension critical field is missing", + "test_folder": 'ext_basic_critical_missing', + "error_flag": 'ext-basic-critical-missing', + "is_success_case": 'false', + }, + { + "description": "Certificate Basic Constraint extension critical field is set as 'non-critical'", + "test_folder": 'ext_basic_critical_wrong', + "error_flag": 'ext-basic-critical-wrong', + "is_success_case": 'false', + }, + { + "description": "Certificate Basic Constraint extension CA field is missing", + "test_folder": 'ext_basic_ca_missing', + "error_flag": 'ext-basic-ca-missing', + "is_success_case": 'false', + }, + { + "description": "Certificate Basic Constraint extension CA field is wrong (TRUE for DAC and FALSE for PAI)", + "test_folder": 'ext_basic_ca_wrong', + "error_flag": 'ext-basic-ca-wrong', + "is_success_case": 'false', + }, + { + "description": "Certificate Basic Constraint extension PathLen field presence is wrong (present for DAC not present for PAI)", + "test_folder": 'ext_basic_pathlen_presence_wrong', + "error_flag": 'ext-basic-pathlen-presence-wrong', + "is_success_case": 'false', + }, + { + "description": "Certificate Basic Constraint extension PathLen field set to 0", + "test_folder": 'ext_basic_pathlen0', + "error_flag": 'ext-basic-pathlen0', + "is_success_case": 'false', + }, + { + "description": "Certificate Basic Constraint extension PathLen field set to 1", + "test_folder": 'ext_basic_pathlen1', + "error_flag": 'ext-basic-pathlen1', + "is_success_case": 'false', + }, + { + "description": "Certificate Basic Constraint extension PathLen field set to 2", + "test_folder": 'ext_basic_pathlen2', + "error_flag": 'ext-basic-pathlen2', + "is_success_case": 'false', + }, + { + "description": "Certificate doesn't include Key Usage extension", + "test_folder": 'ext_key_usage_missing', + "error_flag": 'ext-key-usage-missing', + "is_success_case": 'false', + }, + { + "description": "Certificate Key Usage extension critical field is missing", + "test_folder": 'ext_key_usage_critical_missing', + "error_flag": 'ext-key-usage-critical-missing', + "is_success_case": 'false', + }, + { + "description": "Certificate Key Usage extension critical field is set as 'non-critical'", + "test_folder": 'ext_key_usage_critical_wrong', + "error_flag": 'ext-key-usage-critical-wrong', + "is_success_case": 'false', + }, + { + "description": "Certificate Key Usage extension diginalSignature field is wrong (not present for DAC and present for PAI", + "test_folder": 'ext_key_usage_dig_sig_wrong', + "error_flag": 'ext-key-usage-dig-sig', + "is_success_case": 'false', + }, + { + "description": "Certificate Key Usage extension keyCertSign field is wrong (present for DAC and not present for PAI", + "test_folder": 'ext_key_usage_key_cert_sign_wrong', + "error_flag": 'ext-key-usage-key-cert-sign', + "is_success_case": 'false', + }, + { + "description": "Certificate Key Usage extension cRLSign field is wrong (present for DAC and not present for PAI", + "test_folder": 'ext_key_usage_crl_sign_wrong', + "error_flag": 'ext-key-usage-crl-sign', + "is_success_case": 'false', + }, + { + "description": "Certificate doesn't include Authority Key ID (AKID) extension", + "test_folder": 'ext_akid_missing', + "error_flag": 'ext-akid-missing', + "is_success_case": 'false', + }, + { + "description": "Certificate doesn't include Subject Key ID (SKID) extension", + "test_folder": 'ext_skid_missing', + "error_flag": 'ext-skid-missing', + "is_success_case": 'false', + }, + { + "description": "Certificate includes optional Extended Key Usage extension", + "test_folder": 'ext_extended_key_usage_present', + "error_flag": 'ext-extended-key-usage', + "is_success_case": 'true', + }, + { + "description": "Certificate includes optional Authority Information Access extension", + "test_folder": 'ext_authority_info_access_present', + "error_flag": 'ext-authority-info-access', + "is_success_case": 'true', + }, + { + "description": "Certificate includes optional Subject Alternative Name extension", + "test_folder": 'ext_subject_alt_name_present', + "error_flag": 'ext-subject-alt-name', + "is_success_case": 'true', + }, +] + + +class Names: + def __init__(self, cert_type: CertType, paa_path, test_case_out_dir): + prefixes = {CertType.PAA: paa_path, + CertType.PAI: test_case_out_dir + '/pai-', + CertType.DAC: test_case_out_dir + '/dac-'} + prefix = prefixes[cert_type] + + self.cert_pem = prefix + 'Cert.pem' + self.cert_der = prefix + 'Cert.der' + self.key_pem = prefix + 'Key.pem' + self.key_der = prefix + 'Key.der' + + +class DevCertBuilder: + def __init__(self, cert_type: CertType, error_type: str, paa_path: str, test_case_out_dir: str, chip_cert: str, vid: int, pid: int): + self.vid = vid + self.pid = pid + self.cert_type = cert_type + self.error_type = error_type + self.chipcert = chip_cert + + if not os.path.exists(self.chipcert): + raise Exception('Path not found: %s' % self.chipcert) + + if not os.path.exists(test_case_out_dir): + os.mkdir(test_case_out_dir) + + paa = Names(CertType.PAA, paa_path, test_case_out_dir) + pai = Names(CertType.PAI, paa_path, test_case_out_dir) + dac = Names(CertType.DAC, paa_path, test_case_out_dir) + if cert_type == CertType.PAI: + self.signer = paa + self.own = pai + if cert_type == CertType.DAC: + self.signer = pai + self.own = dac + + def make_certs_and_keys(self) -> None: + """Creates the PEM and DER certs and keyfiles""" + error_type_flag = ' -i -e' + self.error_type + + if self.cert_type == CertType.PAI: + subject_name = 'Matter Test PAI' + vid_flag = ' -V 0x{:X}'.format(self.vid) + pid_flag = '' + type_flag = '-t i' + elif self.cert_type == CertType.DAC: + subject_name = 'Matter Test DAC' + vid_flag = ' -V 0x{:X}'.format(self.vid) + pid_flag = ' -P 0x{:X}'.format(self.pid) + type_flag = '-t d' + else: + return + + cmd = self.chipcert + ' gen-att-cert ' + type_flag + error_type_flag + ' -c "' + subject_name + '" -C ' + self.signer.cert_pem + ' -K ' + \ + self.signer.key_pem + vid_flag + pid_flag + ' -l 4294967295 -o ' + self.own.cert_pem + ' -O ' + self.own.key_pem + subprocess.run(cmd, shell=True) + cmd = 'openssl x509 -inform pem -in ' + self.own.cert_pem + \ + ' -out ' + self.own.cert_der + ' -outform DER' + subprocess.run(cmd, shell=True) + cmd = 'openssl ec -inform pem -in ' + self.own.key_pem + \ + ' -out ' + self.own.key_der + ' -outform DER' + subprocess.run(cmd, shell=True) + + +def add_raw_ec_keypair_to_dict_from_der(der_key_filename: str, json_dict: dict): + with open(der_key_filename, 'rb') as infile: + key_data_der = infile.read() + + key_der = cryptography.hazmat.primitives.serialization.load_der_private_key(key_data_der, None) + json_dict["dac_private_key"] = hexlify(key_der.private_numbers().private_value.to_bytes(32, byteorder='big')).decode('utf-8') + + pk_x = key_der.public_key().public_numbers().x + pk_y = key_der.public_key().public_numbers().y + + public_key_raw_bytes = bytearray([0x04]) + public_key_raw_bytes.extend(bytearray(pk_x.to_bytes(32, byteorder='big'))) + public_key_raw_bytes.extend(bytearray(pk_y.to_bytes(32, byteorder='big'))) + + json_dict["dac_public_key"] = hexlify(bytes(public_key_raw_bytes)).decode('utf-8') + + +def add_files_to_json_config(files_mapping: dict, json_dict: dict): + for output_key_name, filename in files_mapping.items(): + with open(filename, "rb") as infile: + file_bytes = infile.read() + json_dict[output_key_name] = hexlify(file_bytes).decode('utf-8') + + +def generate_test_case_vector_json(test_case_out_dir: str, test_cert: str, test_case): + json_dict = {} + files_in_path = glob.glob(os.path.join(test_case_out_dir, "*")) + output_json_filename = test_case_out_dir + "/test_case_vector.json" + + files_to_add = { + "dac_cert": "dac-Cert.der", + "pai_cert": "pai-Cert.der", + "firmware_information": "firmware-info.bin", + "certification_declaration": "cd.der", + } + + # Add description fields to JSON Config + if "description" in test_case: + json_dict["description"] = test_cert.upper() + " Test Vector: " + test_case["description"] + if "is_success_case" in test_case: + json_dict["is_success_case"] = test_case["is_success_case"] + + # Out of all files we could add, find the ones that were present in test case, and embed them in hex + files_available = {os.path.basename(path) for path in files_in_path} + files_to_add = {key: os.path.join(test_case_out_dir, filename) + for key, filename in files_to_add.items() if filename in files_available} + + add_files_to_json_config(files_to_add, json_dict) + + # Embed the DAC key if present + if "dac-Key.der" in files_available: + der_key_filename = os.path.join(test_case_out_dir, "dac-Key.der") + add_raw_ec_keypair_to_dict_from_der(der_key_filename, json_dict) + + with open(output_json_filename, "wt+") as outfile: + json.dump(json_dict, outfile, indent=2) + + +def main(): + argparser = argparse.ArgumentParser() + argparser.add_argument('-o', '--out_dir', dest='outdir', + default='credentials/development/commissioner_dut', + help='output directory for all generated test vectors') + argparser.add_argument('-p', '--paa', dest='paapath', + default='credentials/test/attestation/Chip-Test-PAA-FFF1-', help='PAA to use') + argparser.add_argument('-d', '--cd', dest='cdpath', + default='credentials/test/certification-declaration/Chip-Test-CD-Signing-', + help='CD Signing Key/Cert to use') + argparser.add_argument('-c', '--chip-cert_dir', dest='chipcertdir', + default='out/debug/linux_x64_clang/', help='Directory where chip-cert tool is located') + + args = argparser.parse_args() + + if not os.path.exists(args.outdir): + os.mkdir(args.outdir) + + chipcert = args.chipcertdir + 'chip-cert' + + if not os.path.exists(chipcert): + raise Exception('Path not found: %s' % chipcert) + + cd_cert = args.cdpath + 'Cert.pem' + cd_key = args.cdpath + 'Key.pem' + + for test_cert in ['dac', 'pai']: + for test_case in CERT_STRUCT_TEST_CASES: + test_case_out_dir = args.outdir + '/struct_' + test_cert + '_' + test_case["test_folder"] + if test_cert == 'dac': + error_type_dac = test_case["error_flag"] + error_type_pai = 'no-error' + else: + if test_case["error_flag"] == 'ext-skid-missing': + error_type_dac = 'ext-akid-missing' + else: + error_type_dac = 'no-error' + error_type_pai = test_case["error_flag"] + + vid = 0xFFF1 + pid = 0x8000 + + # Generate PAI Cert/Key + builder = DevCertBuilder(CertType.PAI, error_type_pai, args.paapath, test_case_out_dir, + chipcert, vid, pid) + builder.make_certs_and_keys() + + if test_cert == 'pai': + if test_case["error_flag"] == 'subject-vid-mismatch': + vid += 1 + if test_case["error_flag"] == 'subject-pid-mismatch': + pid += 1 + + # Generate DAC Cert/Key + builder = DevCertBuilder(CertType.DAC, error_type_dac, args.paapath, test_case_out_dir, + chipcert, vid, pid) + builder.make_certs_and_keys() + + # Generate Certification Declaration (CD) + vid_flag = ' -V 0x{:X}'.format(vid) + pid_flag = ' -p 0x{:X}'.format(pid) + cmd = chipcert + ' gen-cd -K ' + cd_key + ' -C ' + cd_cert + ' -O ' + test_case_out_dir + '/cd.der' + \ + ' -f 1 ' + vid_flag + pid_flag + ' -d 0x1234 -c "ZIG20141ZB330001-24" -l 0 -i 0 -n 9876 -t 0' + subprocess.run(cmd, shell=True) + + # Generate Test Case Data Container in JSON Format + generate_test_case_vector_json(test_case_out_dir, test_cert, test_case) + + +if __name__ == '__main__': + sys.exit(main())