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 00000000000000..d42203deaa727c Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_cert_version_v2/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_dac_cert_version_v2/dac-Cert.der b/credentials/development/commissioner_dut/struct_dac_cert_version_v2/dac-Cert.der new file mode 100644 index 00000000000000..643c6b7386d789 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_cert_version_v2/dac-Cert.der differ 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 00000000000000..0712a431c139ea Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_cert_version_v2/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_dac_cert_version_v2/dac-Key.pem b/credentials/development/commissioner_dut/struct_dac_cert_version_v2/dac-Key.pem new file mode 100644 index 00000000000000..880f194edfd333 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_cert_version_v2/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIB+GIrQ1pTfjir1z01K6EWx1pPG/L1oFYdb0B7v7gnCPoAoGCCqGSM49 +AwEHoUQDQgAEWKH/nSGIx1MVG4L5xiROeeaybQTQfqK/qR0Xo9BfB1R/AjQM9sbG +joERSHS9VRd+aLooLNJfkMTbDEcnc6n4gw== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_dac_cert_version_v2/pai-Cert.der b/credentials/development/commissioner_dut/struct_dac_cert_version_v2/pai-Cert.der new file mode 100644 index 00000000000000..0ca1741cdfc2e8 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_cert_version_v2/pai-Cert.der differ 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 00000000000000..b4ba5f3f14f3c3 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_cert_version_v2/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_dac_cert_version_v2/pai-Key.pem b/credentials/development/commissioner_dut/struct_dac_cert_version_v2/pai-Key.pem new file mode 100644 index 00000000000000..87e2380caed7cd --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_cert_version_v2/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIMzKTBvwCy3yIO4yn3lWu96OBf68qn1dnVrGcAshRUDJoAoGCCqGSM49 +AwEHoUQDQgAEHg6MocVaL/W736hrJ0epYBErhCVB+Vh+hXrPluDPqqxJ99ofXVav +sODp8kVH4f6Zfej7gAMAZbTkIhYL7gzZRQ== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_dac_cert_version_v2/test_case_vector.json b/credentials/development/commissioner_dut/struct_dac_cert_version_v2/test_case_vector.json new file mode 100644 index 00000000000000..126ee9e62aa368 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_cert_version_v2/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "DAC Test Vector: Invalid certificate version field set to v2(1)", + "is_success_case": "false", + "dac_cert": "308201ce30820174a0030201010208234374b9cb7e083d300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d0301070342000458a1ff9d2188c753151b82f9c6244e79e6b26d04d07ea2bfa91d17a3d05f07547f02340cf6c6c68e81114874bd55177e68ba282cd25f90c4db0c472773a9f883a360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e041604143e1321cdbf48268dbea94c45a0b0b86653e52f02301f0603551d230418301680141563beffa830a4dbeee51ac9b750ddfe3a6eacd7300a06082a8648ce3d0403020348003045022100c25d803dd96717015c1ed8c9675f78158e30fbc3ef87ba6b17ca4dd57af0b23e02202ef2ec2e3e3d5c226756168af06b6b8ccbbea4aaf9271c6f08df8f8ad38819f3", + "pai_cert": "308201be30820164a00302010202084a360926199edd15300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313059301306072a8648ce3d020106082a8648ce3d030107034200041e0e8ca1c55a2ff5bbdfa86b2747a960112b842541f9587e857acf96e0cfaaac49f7da1f5d56afb0e0e9f24547e1fe997de8fb80030065b4e422160bee0cd945a366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e041604141563beffa830a4dbeee51ac9b750ddfe3a6eacd7301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d0403020348003045022032e1eae679e618fe638bb698f8b323742e5af72f13624fa8468c85a1ef3c3a75022100af7a7c6d3f073924777cc95e43b7c4704863896d9d3bbaa784514f1f6019ad78", + "certification_declaration": "3081e906092a864886f70d010702a081db3081d8020103310d300b0609608648016503040201304506092a864886f70d010701a0380436152400012501f1ff360205008018250334122c04135a494732303134315a423333303030312d32342405002406002507769824080018317d307b020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d04030204473045022100e27b21d80a1291797905d73fd88824780dfb0a2e2b88afa621e034e1f376d02b02204c1b8b28e3ab3a29028b24d2e55b7260eb538d1bb70a13306b46187d846acc62", + "dac_private_key": "1f8622b435a537e38abd73d352ba116c75a4f1bf2f5a0561d6f407bbfb82708f", + "dac_public_key": "0458a1ff9d2188c753151b82f9c6244e79e6b26d04d07ea2bfa91d17a3d05f07547f02340cf6c6c68e81114874bd55177e68ba282cd25f90c4db0c472773a9f883" +} diff --git a/credentials/development/commissioner_dut/struct_dac_cert_version_v3/cd.der b/credentials/development/commissioner_dut/struct_dac_cert_version_v3/cd.der new file mode 100644 index 00000000000000..3e383d9b991194 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_cert_version_v3/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_dac_cert_version_v3/dac-Cert.der b/credentials/development/commissioner_dut/struct_dac_cert_version_v3/dac-Cert.der new file mode 100644 index 00000000000000..dda894f29bc607 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_cert_version_v3/dac-Cert.der differ 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 00000000000000..e37170bf571a41 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_cert_version_v3/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_dac_cert_version_v3/dac-Key.pem b/credentials/development/commissioner_dut/struct_dac_cert_version_v3/dac-Key.pem new file mode 100644 index 00000000000000..231079b9a024c7 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_cert_version_v3/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEICDGoDYvdbSYLkMxlEicMHsnGEwR0tj3lqdoMWPi6ySioAoGCCqGSM49 +AwEHoUQDQgAEa9SLMqd2LGzMr4FyH64MG8WjhTIgNZGWExhf6b5cvpJPn+70ijmt +uf9tkj1vZc2Tx/LLvlfzPkVjAe3tjKjphw== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_dac_cert_version_v3/pai-Cert.der b/credentials/development/commissioner_dut/struct_dac_cert_version_v3/pai-Cert.der new file mode 100644 index 00000000000000..96bc202c2aeda6 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_cert_version_v3/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_dac_cert_version_v3/pai-Cert.pem b/credentials/development/commissioner_dut/struct_dac_cert_version_v3/pai-Cert.pem new file mode 100644 index 00000000000000..2f02ea6d2a1032 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_cert_version_v3/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBvjCCAWSgAwIBAgIIAaU+vbfHd4kwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowMDEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTBZMBMGByqGSM49AgEGCCqGSM49AwEH +A0IABFLIIJlh1rmfG8rXJd0qMq1WvyYewwaELo7ZsvXH0fBgaHGdufrjwh+4Q5rL +OA4vAn3ELGBbcOdndgd79zj5XlKjZjBkMBIGA1UdEwEB/wQIMAYBAf8CAQEwDgYD +VR0PAQH/BAQDAgEGMB0GA1UdDgQWBBTso7J/q1yoENckOq54ayeZOt3PhzAfBgNV +HSMEGDAWgBRq/SJ3H1Ef7L8WQZdnENzcMaFxfjAKBggqhkjOPQQDAgNIADBFAiA4 +dMPhKKJYbzEwHBWEC4FBNua8P6m90CP32QcKhP/v7QIhALGbumhPxka0fmhte9MG +5zmG2J/z3UOLkOBLaXwyyqaE +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_dac_cert_version_v3/pai-Key.der b/credentials/development/commissioner_dut/struct_dac_cert_version_v3/pai-Key.der new file mode 100644 index 00000000000000..bfc8ebc71c8d66 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_cert_version_v3/pai-Key.der differ 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 00000000000000..918fb4d1b1675b Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_akid_missing/cd.der differ 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 00000000000000..2a6e760d8ed280 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_akid_missing/dac-Cert.der differ 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 00000000000000..c79fdbd9d9f325 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_akid_missing/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_dac_ext_akid_missing/dac-Key.pem b/credentials/development/commissioner_dut/struct_dac_ext_akid_missing/dac-Key.pem new file mode 100644 index 00000000000000..c8b96a9d87d227 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_akid_missing/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIM+gM1gxCTeCPBBa+XNxRx+mhdr7fuXG9S9mbqVHtmbaoAoGCCqGSM49 +AwEHoUQDQgAEVvTO4F4fKuUjdaxJgeLk7OLpYna1WgFRdRXM95NkXR2Q618njzz0 +5CtOXQaM1xo32+WznmpdkcImdF4628R6kQ== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_akid_missing/pai-Cert.der b/credentials/development/commissioner_dut/struct_dac_ext_akid_missing/pai-Cert.der new file mode 100644 index 00000000000000..434631e77f9c8c Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_akid_missing/pai-Cert.der differ 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 00000000000000..97ce4e98b33c20 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_akid_missing/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_dac_ext_akid_missing/pai-Key.pem b/credentials/development/commissioner_dut/struct_dac_ext_akid_missing/pai-Key.pem new file mode 100644 index 00000000000000..ce1a7405b2656b --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_akid_missing/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIAyi5pJAF/hULeBKQGfOUDI5agImehl4e8NuWxHs4EP0oAoGCCqGSM49 +AwEHoUQDQgAEYW1rzyUWfaIUbqZL+7MSVJnCpnrFzeBeqI2JZLUoNcYSGZH4hoWQ +GAI3DDKLbtBm9Dp5XWSiwGmW8b2liooHGw== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_akid_missing/test_case_vector.json b/credentials/development/commissioner_dut/struct_dac_ext_akid_missing/test_case_vector.json new file mode 100644 index 00000000000000..6c72e5e2341aa0 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_akid_missing/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "DAC Test Vector: Certificate doesn't include Authority Key ID (AKID) extension", + "is_success_case": "false", + "dac_cert": "308201ad30820153a003020102020832d90b74754fd9b5300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d0301070342000456f4cee05e1f2ae52375ac4981e2e4ece2e96276b55a01517515ccf793645d1d90eb5f278f3cf4e42b4e5d068cd71a37dbe5b39e6a5d91c226745e3adbc47a91a33f303d300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e04160414a552f10c3bd390e962a518dc99be5715a4de5e6f300a06082a8648ce3d040302034800304502210096019b83dacb507fe7a9aadbb17ea0f726df2cdf31bf754908c1b1b722b04d820220411cf161363820a5f0ac11b379e51072a92674f3a102b797a535a8f56bdc6ba9", + "pai_cert": "308201be30820164a0030201020208183eaa8cf9cd5093300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313059301306072a8648ce3d020106082a8648ce3d03010703420004616d6bcf25167da2146ea64bfbb3125499c2a67ac5cde05ea88d8964b52835c6121991f88685901802370c328b6ed066f43a795d64a2c06996f1bda58a8a071ba366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e0416041480ee8a0d4c540290f6ad36104218ae8d7fb1a841301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d0403020348003045022100c4fcbfce83dbc0d44aa7467a779b547e092ceae5ed061a0450fc722435bc465002203a694c4f9b64534967b80900da60caa0db0c8ab7c2bdbcac7e81a3c8ef88d035", + "certification_declaration": "3081e806092a864886f70d010702a081da3081d7020103310d300b0609608648016503040201304506092a864886f70d010701a0380436152400012501f1ff360205008018250334122c04135a494732303134315a423333303030312d32342405002406002507769824080018317c307a020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d040302044630440220551fc76c663756b163123954662bfef562a097639c153183aaeb4c2672f3a8fb02203f2611d551c5ad5dadbde61b6ce9d54d73b1aaf9ffe68922d4ad8dae43fd79e7", + "dac_private_key": "cfa03358310937823c105af97371471fa685dafb7ee5c6f52f666ea547b666da", + "dac_public_key": "0456f4cee05e1f2ae52375ac4981e2e4ece2e96276b55a01517515ccf793645d1d90eb5f278f3cf4e42b4e5d068cd71a37dbe5b39e6a5d91c226745e3adbc47a91" +} diff --git a/credentials/development/commissioner_dut/struct_dac_ext_authority_info_access_present/cd.der b/credentials/development/commissioner_dut/struct_dac_ext_authority_info_access_present/cd.der new file mode 100644 index 00000000000000..8fd0676c11b05e Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_authority_info_access_present/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_dac_ext_authority_info_access_present/dac-Cert.der b/credentials/development/commissioner_dut/struct_dac_ext_authority_info_access_present/dac-Cert.der new file mode 100644 index 00000000000000..dedb8e2a66cdad Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_authority_info_access_present/dac-Cert.der differ 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 00000000000000..9eb30bc36bf88d Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_authority_info_access_present/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_dac_ext_authority_info_access_present/dac-Key.pem b/credentials/development/commissioner_dut/struct_dac_ext_authority_info_access_present/dac-Key.pem new file mode 100644 index 00000000000000..522b58dc17973a --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_authority_info_access_present/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIMI2eBzlFfhuEc2i4bHmOSlYdePFXvhx9HE2KnIrc2R/oAoGCCqGSM49 +AwEHoUQDQgAEpZvhBt99R03zrPhIFccLh19DEPg70X5Go6xXsNjOHBjZT0K52D/M +p2zSyHT3bpEd81McNk+ef06pP+X1/y7I1g== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_authority_info_access_present/pai-Cert.der b/credentials/development/commissioner_dut/struct_dac_ext_authority_info_access_present/pai-Cert.der new file mode 100644 index 00000000000000..cf6e6f712e9a5d Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_authority_info_access_present/pai-Cert.der differ 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 00000000000000..d2ed939a8f8e7c Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_authority_info_access_present/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_dac_ext_authority_info_access_present/pai-Key.pem b/credentials/development/commissioner_dut/struct_dac_ext_authority_info_access_present/pai-Key.pem new file mode 100644 index 00000000000000..b2e00979c78cf1 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_authority_info_access_present/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIEl8Al+ljxpwoRpcLn/14UAoMdGsEHklyI/qTJf3rbQboAoGCCqGSM49 +AwEHoUQDQgAE11/0JaFeCLa7yWgsm7329oqGRQ5z7azwnxk64TaInC07yFs2+Euy +ugG4eGrasRqpLpOVfHm0iSB2DRvEkM2vqA== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_authority_info_access_present/test_case_vector.json b/credentials/development/commissioner_dut/struct_dac_ext_authority_info_access_present/test_case_vector.json new file mode 100644 index 00000000000000..a9506e24934740 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_authority_info_access_present/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "DAC Test Vector: Certificate includes optional Authority Information Access extension", + "is_success_case": "true", + "dac_cert": "30820205308201aca00302010202087b977add37845a6f300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004a59be106df7d474df3acf84815c70b875f4310f83bd17e46a3ac57b0d8ce1c18d94f42b9d83fcca76cd2c874f76e911df3531c364f9e7f4ea93fe5f5ff2ec8d6a38197308194300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e041604149b0d7ddfdd7d82cceee46f603b3d10237e67b3ed301f0603551d23041830168014085f5d8c33adfb93b0bd621d8c3f54fe26102714303406082b0601050507010104283026302406082b060105050730018618687474703a2f2f6f6373702e6578616d706c652e636f6d2f300a06082a8648ce3d0403020347003044022054c3dc41b600834731c81785373c2c2833efe2594f90e7205bc4bea4a3297ea8022033d36a23956523861df7dee9e6786e91bf30cb0fefde1f46d0897e29aabe1e13", + "pai_cert": "308201be30820164a003020102020877e21f8fb5a2061e300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313059301306072a8648ce3d020106082a8648ce3d03010703420004d75ff425a15e08b6bbc9682c9bbdf6f68a86450e73edacf09f193ae136889c2d3bc85b36f84bb2ba01b8786adab11aa92e93957c79b48920760d1bc490cdafa8a366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e04160414085f5d8c33adfb93b0bd621d8c3f54fe26102714301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d0403020348003045022100980cb9bc628ad6bd376f85c3d9fd0a0dab58b49c63cb60c94cab721d6f1a4ee202206c1254796439d7327a819b7895a4b5871798560ceddec5ef25bcb9b4cbb93809", + "certification_declaration": "3081ea06092a864886f70d010702a081dc3081d9020103310d300b0609608648016503040201304506092a864886f70d010701a0380436152400012501f1ff360205008018250334122c04135a494732303134315a423333303030312d32342405002406002507769824080018317e307c020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d04030204483046022100e2eddcc4a98c46fdc0940569a77cd5dc991ebe90aeb40bdc51b26df08f474d67022100a99953496e766d789df9f3fa4d2749aefd7d2bdc6a75773108bec4a11d08b031", + "dac_private_key": "c236781ce515f86e11cda2e1b1e639295875e3c55ef871f471362a722b73647f", + "dac_public_key": "04a59be106df7d474df3acf84815c70b875f4310f83bd17e46a3ac57b0d8ce1c18d94f42b9d83fcca76cd2c874f76e911df3531c364f9e7f4ea93fe5f5ff2ec8d6" +} diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_ca_missing/cd.der b/credentials/development/commissioner_dut/struct_dac_ext_basic_ca_missing/cd.der new file mode 100644 index 00000000000000..996142ec0b0ee0 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_basic_ca_missing/cd.der differ 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 00000000000000..282617dd4ad643 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_basic_ca_missing/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_ca_missing/dac-Cert.pem b/credentials/development/commissioner_dut/struct_dac_ext_basic_ca_missing/dac-Cert.pem new file mode 100644 index 00000000000000..7fdc9218f9fc8a --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_basic_ca_missing/dac-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIB0TCCAXegAwIBAgIIONUsUAcOxyAwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +REFDMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQlImVG/wtzEPrfNhttUMoUlaIafVrW +v80Q74/ttMuj/v+eNe2pLDUasLWszyhUGKq02DqNb6NAE18Au5a1mD1po2MwYTAP +BgNVHRMBAf8EBTADAgEAMA4GA1UdDwEB/wQEAwIHgDAdBgNVHQ4EFgQUyBELTx0B +ED/Vu6/HprLzvGw+vMowHwYDVR0jBBgwFoAUOCm8REgwpwfEUFcz0n+D+1qru0gw +CgYIKoZIzj0EAwIDSAAwRQIgMGjvv0Jhxp45WD8VSwG4+/oGdmhwPv6aSGg1Iptw +/McCIQC3NSQF54zdeucodVS+6dVJeT6LUS9JdO2XbekwdPgenw== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_ca_missing/dac-Key.der b/credentials/development/commissioner_dut/struct_dac_ext_basic_ca_missing/dac-Key.der new file mode 100644 index 00000000000000..66c58c701df444 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_basic_ca_missing/dac-Key.der differ 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 00000000000000..670a3fba99d007 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_basic_ca_missing/pai-Cert.der differ 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 00000000000000..00aa7b80539d0c Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_basic_ca_missing/pai-Key.der differ 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 00000000000000..01ab18641b69f1 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_basic_ca_wrong/cd.der differ 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 00000000000000..07f213437d8eed Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_basic_ca_wrong/dac-Cert.der differ 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 00000000000000..9af1514d4cc89f Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_basic_ca_wrong/dac-Key.der differ 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 00000000000000..de3b317c3c8dba Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_basic_ca_wrong/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_ca_wrong/pai-Cert.pem b/credentials/development/commissioner_dut/struct_dac_ext_basic_ca_wrong/pai-Cert.pem new file mode 100644 index 00000000000000..663768080eaa20 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_basic_ca_wrong/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBvTCCAWSgAwIBAgIIf+lSLm83eBwwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowMDEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTBZMBMGByqGSM49AgEGCCqGSM49AwEH +A0IABLRxS5fSTOxRPU3lcWSako3E+4OU+9w1F5zXNHKm3MTKmDYQ4plmdOzG8IN9 +o0QWA2PBEuziLma+9WmkJYqc1w6jZjBkMBIGA1UdEwEB/wQIMAYBAf8CAQEwDgYD +VR0PAQH/BAQDAgEGMB0GA1UdDgQWBBSORCsTrL49oWccOEkFVIpu6Rt7ADAfBgNV +HSMEGDAWgBRq/SJ3H1Ef7L8WQZdnENzcMaFxfjAKBggqhkjOPQQDAgNHADBEAiB/ +bGe7/0lL6m8yOWa6dslqbRb18zPDsQyOXXYixH05XgIgCXVfnyzKW4SHRRJUyhP+ +0ZCXEWFEyP+ZlhxvWWPW+g0= +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_ca_wrong/pai-Key.der b/credentials/development/commissioner_dut/struct_dac_ext_basic_ca_wrong/pai-Key.der new file mode 100644 index 00000000000000..e2b5a1bcdad1ce Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_basic_ca_wrong/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_ca_wrong/pai-Key.pem b/credentials/development/commissioner_dut/struct_dac_ext_basic_ca_wrong/pai-Key.pem new file mode 100644 index 00000000000000..6631c11a151e97 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_basic_ca_wrong/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIBxopVB3yN5bV08yln8Gi+DFc3Tm9oZqee4IRcsxWiZvoAoGCCqGSM49 +AwEHoUQDQgAEtHFLl9JM7FE9TeVxZJqSjcT7g5T73DUXnNc0cqbcxMqYNhDimWZ0 +7Mbwg32jRBYDY8ES7OIuZr71aaQlipzXDg== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_ca_wrong/test_case_vector.json b/credentials/development/commissioner_dut/struct_dac_ext_basic_ca_wrong/test_case_vector.json new file mode 100644 index 00000000000000..d6f00d1307723f --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_basic_ca_wrong/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "DAC Test Vector: Certificate Basic Constraint extension CA field is wrong (TRUE for DAC and FALSE for PAI)", + "is_success_case": "false", + "dac_cert": "308201d130820177a00302010202080fcab2e630a11a53300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d0301070342000471585c0fd0bbd0c03e812702f179a14f3670ac27cd71f6ad9f3c0917b94e7cdc685c75e6a9876d73a274a15b32a5971f27d9c282f22c64a32d0e3c1c6ea72f21a3633061300f0603551d130101ff040530030101ff300e0603551d0f0101ff040403020780301d0603551d0e04160414cf562b967858417620287f334a08ebbc900969e6301f0603551d230418301680148e442b13acbe3da1671c384905548a6ee91b7b00300a06082a8648ce3d0403020348003045022100cf185d44b7fd202ff9a7ab4a1c3326c226617487f4d65560134d17681898d7a002204a9f78ad3b6fb2178cbd2ea4b995ad0bbf006343736877845959d283512dc5e1", + "pai_cert": "308201bd30820164a00302010202087fe9522e6f37781c300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313059301306072a8648ce3d020106082a8648ce3d03010703420004b4714b97d24cec513d4de571649a928dc4fb8394fbdc35179cd73472a6dcc4ca983610e2996674ecc6f0837da344160363c112ece22e66bef569a4258a9cd70ea366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e041604148e442b13acbe3da1671c384905548a6ee91b7b00301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d040302034700304402207f6c67bbff494bea6f323966ba76c96a6d16f5f333c3b10c8e5d7622c47d395e022009755f9f2cca5b8487451254ca13fed19097116144c8ff99961c6f5963d6fa0d", + "certification_declaration": "3081e906092a864886f70d010702a081db3081d8020103310d300b0609608648016503040201304506092a864886f70d010701a0380436152400012501f1ff360205008018250334122c04135a494732303134315a423333303030312d32342405002406002507769824080018317d307b020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d0403020447304502210093a5389f26086a12651d3bd2a96399666e1586f6178bf2617bc79a80c8dde3d302203700956415445211bffcb527218aef67ee2c8ac430f2b35a262eccf3450a21df", + "dac_private_key": "b62fa8c2accb096d8c72e1dc615b45363fbcd0b23f31c2258a54d0156c2a0c9f", + "dac_public_key": "0471585c0fd0bbd0c03e812702f179a14f3670ac27cd71f6ad9f3c0917b94e7cdc685c75e6a9876d73a274a15b32a5971f27d9c282f22c64a32d0e3c1c6ea72f21" +} diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_critical_missing/cd.der b/credentials/development/commissioner_dut/struct_dac_ext_basic_critical_missing/cd.der new file mode 100644 index 00000000000000..12e2d6015024bd Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_basic_critical_missing/cd.der differ 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 00000000000000..e215ca2a3098b3 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_basic_critical_missing/dac-Cert.der differ 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 00000000000000..233f617598ab92 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_basic_critical_missing/dac-Key.der differ 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 00000000000000..f12a1147dda3e9 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_basic_critical_missing/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_critical_missing/pai-Cert.pem b/credentials/development/commissioner_dut/struct_dac_ext_basic_critical_missing/pai-Cert.pem new file mode 100644 index 00000000000000..f993fce37cd93c --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_basic_critical_missing/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBvzCCAWSgAwIBAgIIRM0rXdRruAIwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowMDEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTBZMBMGByqGSM49AgEGCCqGSM49AwEH +A0IABPa9ho6uDOCP3SbfW5WZghBwwaMt6fQ3rzGhYrarxx2PavItd+FEznuYi/kl +mQ2Nm+e8Bv4E+ny4rJAMHlkH512jZjBkMBIGA1UdEwEB/wQIMAYBAf8CAQEwDgYD +VR0PAQH/BAQDAgEGMB0GA1UdDgQWBBSlf+7Ui4XNss6NytsJqSvxXrkTljAfBgNV +HSMEGDAWgBRq/SJ3H1Ef7L8WQZdnENzcMaFxfjAKBggqhkjOPQQDAgNJADBGAiEA +hVoE3RXaZ+LyeWvHTfL9LLVeJEhVHjJNNipb9x6TZuoCIQDQ7fCUJBC2pfY6ljeH +TiuZCURVZgQwXkYAAHCDAMQJWA== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_critical_missing/pai-Key.der b/credentials/development/commissioner_dut/struct_dac_ext_basic_critical_missing/pai-Key.der new file mode 100644 index 00000000000000..6a59795917d6db Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_basic_critical_missing/pai-Key.der differ 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 00000000000000..93a353b7c6687b Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_basic_critical_wrong/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_critical_wrong/dac-Cert.der b/credentials/development/commissioner_dut/struct_dac_ext_basic_critical_wrong/dac-Cert.der new file mode 100644 index 00000000000000..34f9f5121bafa0 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_basic_critical_wrong/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_critical_wrong/dac-Cert.pem b/credentials/development/commissioner_dut/struct_dac_ext_basic_critical_wrong/dac-Cert.pem new file mode 100644 index 00000000000000..ff221030093956 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_basic_critical_wrong/dac-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIByjCCAXGgAwIBAgIIYyGAPQKTUo4wCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +REFDMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQ5jHSkoMbgKAkH4/eBtWGTxhuz5LRe +sFsOjxBi6b5qzoScybTTB/J/g46RVS9I4zvTJVOIsSvDdGFb1LAnZfEMo10wWzAJ +BgNVHRMEAjAAMA4GA1UdDwEB/wQEAwIHgDAdBgNVHQ4EFgQUdMe1Xp5k3tQaiSOK +fx45RElO8o4wHwYDVR0jBBgwFoAUVWfihz+acYgdI1Q0KNmwUl53BXkwCgYIKoZI +zj0EAwIDRwAwRAIgd0UlgC54I0Tqy2URDBES4LrdHE3XSZMggggFF1CBGfQCIH7M +X5dNHksomhZ8HoYrd6Gdc2a0C/4tjTNuwREb6I2t +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_critical_wrong/dac-Key.der b/credentials/development/commissioner_dut/struct_dac_ext_basic_critical_wrong/dac-Key.der new file mode 100644 index 00000000000000..be9954f4e4204e Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_basic_critical_wrong/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_critical_wrong/dac-Key.pem b/credentials/development/commissioner_dut/struct_dac_ext_basic_critical_wrong/dac-Key.pem new file mode 100644 index 00000000000000..4adeec98a2d2e2 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_basic_critical_wrong/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIO0cp6OVRrul3j3hmvX0EFkR2Y1oh2ydjjnbCMI6BeQloAoGCCqGSM49 +AwEHoUQDQgAEOYx0pKDG4CgJB+P3gbVhk8Ybs+S0XrBbDo8QYum+as6EnMm00wfy +f4OOkVUvSOM70yVTiLErw3RhW9SwJ2XxDA== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_critical_wrong/pai-Cert.der b/credentials/development/commissioner_dut/struct_dac_ext_basic_critical_wrong/pai-Cert.der new file mode 100644 index 00000000000000..e8ea720f0136d7 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_basic_critical_wrong/pai-Cert.der differ 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 00000000000000..37d0988b3712a6 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_basic_critical_wrong/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_critical_wrong/pai-Key.pem b/credentials/development/commissioner_dut/struct_dac_ext_basic_critical_wrong/pai-Key.pem new file mode 100644 index 00000000000000..7469ac6ee80969 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_basic_critical_wrong/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIGGGKqRljzDBSEMatjbC58lESpAzklvlDgwGM7R87JXioAoGCCqGSM49 +AwEHoUQDQgAEIE5fGq3C/EIsO8j5kjkulrZUOCamwDv+sPVWYcBt0Vp6D36W/tCI +65VAH4ndpiQldWYtHBRTldVM+CQivuucxg== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_critical_wrong/test_case_vector.json b/credentials/development/commissioner_dut/struct_dac_ext_basic_critical_wrong/test_case_vector.json new file mode 100644 index 00000000000000..a5a5551617a223 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_basic_critical_wrong/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "DAC Test Vector: Certificate Basic Constraint extension critical field is set as 'non-critical'", + "is_success_case": "false", + "dac_cert": "308201ca30820171a00302010202086321803d0293528e300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004398c74a4a0c6e0280907e3f781b56193c61bb3e4b45eb05b0e8f1062e9be6ace849cc9b4d307f27f838e91552f48e33bd3255388b12bc374615bd4b02765f10ca35d305b30090603551d1304023000300e0603551d0f0101ff040403020780301d0603551d0e0416041474c7b55e9e64ded41a89238a7f1e3944494ef28e301f0603551d230418301680145567e2873f9a71881d23543428d9b0525e770579300a06082a8648ce3d04030203470030440220774525802e782344eacb65110c1112e0badd1c4dd749932082080517508119f402207ecc5f974d1e4b289a167c1e862b77a19d7366b40bfe2d8d336ec1111be88dad", + "pai_cert": "308201bf30820164a00302010202080fe18e326dd1d11c300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313059301306072a8648ce3d020106082a8648ce3d03010703420004204e5f1aadc2fc422c3bc8f992392e96b6543826a6c03bfeb0f55661c06dd15a7a0f7e96fed088eb95401f89dda6242575662d1c145395d54cf82422beeb9cc6a366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e041604145567e2873f9a71881d23543428d9b0525e770579301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d040302034900304602210084ea91f510623fd8927a05b0564fdfeaa6c433d1e8bd5e7c6c2aeffa66287ab5022100bbfa729de3d04bd1db5e60b1bfd1b92937ad983297814a1cf865cc52b82886d2", + "certification_declaration": "3081e906092a864886f70d010702a081db3081d8020103310d300b0609608648016503040201304506092a864886f70d010701a0380436152400012501f1ff360205008018250334122c04135a494732303134315a423333303030312d32342405002406002507769824080018317d307b020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d04030204473045022100d2354c024503be200a34b9254b0f903bb2f7da1a9e661436df19077066f18c47022006c83c4f4b382744605c70322cad2e73021e36a3eb5b7d68afde5975d43d5318", + "dac_private_key": "ed1ca7a39546bba5de3de19af5f4105911d98d68876c9d8e39db08c23a05e425", + "dac_public_key": "04398c74a4a0c6e0280907e3f781b56193c61bb3e4b45eb05b0e8f1062e9be6ace849cc9b4d307f27f838e91552f48e33bd3255388b12bc374615bd4b02765f10c" +} diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_missing/cd.der b/credentials/development/commissioner_dut/struct_dac_ext_basic_missing/cd.der new file mode 100644 index 00000000000000..487e0379d69a6c Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_basic_missing/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_missing/dac-Cert.der b/credentials/development/commissioner_dut/struct_dac_ext_basic_missing/dac-Cert.der new file mode 100644 index 00000000000000..9e6ca82fe28176 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_basic_missing/dac-Cert.der differ 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 00000000000000..e3a7661d6f24aa Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_basic_missing/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_missing/dac-Key.pem b/credentials/development/commissioner_dut/struct_dac_ext_basic_missing/dac-Key.pem new file mode 100644 index 00000000000000..89f1ec827fa359 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_basic_missing/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIAC9QTFk0EAQvVSmHtoTouY+jReslTBAMZ3LW4F2RRbboAoGCCqGSM49 +AwEHoUQDQgAEWQJjqwA6p69YOdrfnhLMv+ELIDwsZA5+S3JRlM4//2k8f97ytHph +ocXCribnMgErk+x3W/yT8pEnTtfxK2anUg== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_missing/pai-Cert.der b/credentials/development/commissioner_dut/struct_dac_ext_basic_missing/pai-Cert.der new file mode 100644 index 00000000000000..567410776cfc82 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_basic_missing/pai-Cert.der differ 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 00000000000000..5bd09a77b395d7 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_basic_missing/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_missing/pai-Key.pem b/credentials/development/commissioner_dut/struct_dac_ext_basic_missing/pai-Key.pem new file mode 100644 index 00000000000000..19afd993f0eb9a --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_basic_missing/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIF42Tg7lKrGd377KLg1yMiwIBwAqsApDRbXY5bzDfQ/noAoGCCqGSM49 +AwEHoUQDQgAEJmcLdjoXoJ3rvnM/mJ+a/VGd8BXGw3GS2eLVyRKZQHScpXlJXqaS +7D/vgESnPyz9GmxNxWJN/N3O0+dUdkx4Hw== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_missing/test_case_vector.json b/credentials/development/commissioner_dut/struct_dac_ext_basic_missing/test_case_vector.json new file mode 100644 index 00000000000000..bfbb3aa40cfb49 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_basic_missing/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "DAC Test Vector: Certificate doesn't include Basic Constraint extension", + "is_success_case": "false", + "dac_cert": "308201bf30820166a003020102020875641967f8519923300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004590263ab003aa7af5839dadf9e12ccbfe10b203c2c640e7e4b725194ce3fff693c7fdef2b47a61a1c5c2ae26e732012b93ec775bfc93f291274ed7f12b66a752a3523050300e0603551d0f0101ff040403020780301d0603551d0e041604145d42015bc96d632ff56a5184f7f33919a27facb4301f0603551d23041830168014449404a4d2b08e687a3766bcdde9dc3107b506e5300a06082a8648ce3d040302034700304402204fc3bb9662b4fca88d45e10873e5179d75098f53d1954eee5b173418b82f337d022031609097252eefcfbcc1e64e549875245c25e177869bc6e9a19d91df76da4b16", + "pai_cert": "308201be30820164a003020102020807bd6e36a9bc271b300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313059301306072a8648ce3d020106082a8648ce3d0301070342000426670b763a17a09debbe733f989f9afd519df015c6c37192d9e2d5c9129940749ca579495ea692ec3fef8044a73f2cfd1a6c4dc5624dfcddced3e754764c781fa366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e04160414449404a4d2b08e687a3766bcdde9dc3107b506e5301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d0403020348003045022100ffa4840eadeb446c6da92da725c3e11760470a254809c2d86431483218037d5d02201f8056277d1868af4ba19920e9cd1a6599933e327eb659f2871f5ee81e590bc3", + "certification_declaration": "3081e806092a864886f70d010702a081da3081d7020103310d300b0609608648016503040201304506092a864886f70d010701a0380436152400012501f1ff360205008018250334122c04135a494732303134315a423333303030312d32342405002406002507769824080018317c307a020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d0403020446304402201e12b625045e8664af852fb665f928310cf31a97ec3c6c68b01b38e731a9134d0220532c5b98d98cb6c4a7765b41fac5a48096b715ace34144bdfcdd9b351c87098b", + "dac_private_key": "00bd413164d04010bd54a61eda13a2e63e8d17ac953040319dcb5b81764516db", + "dac_public_key": "04590263ab003aa7af5839dadf9e12ccbfe10b203c2c640e7e4b725194ce3fff693c7fdef2b47a61a1c5c2ae26e732012b93ec775bfc93f291274ed7f12b66a752" +} diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen0/cd.der b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen0/cd.der new file mode 100644 index 00000000000000..0f03039c82704c Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen0/cd.der differ 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 00000000000000..eec9f7e9db8379 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen0/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen0/dac-Cert.pem b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen0/dac-Cert.pem new file mode 100644 index 00000000000000..51cc73913599fd --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen0/dac-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBzzCCAXSgAwIBAgIIHoVwFqORXV0wCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +REFDMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQHTooMbiJAnSmba3S33vV4c2f3XqG/ +gDDJ3DBQZxb6UpVQDkkvtyc+i2RTF/sm65S8OwGjNwHnYPQxgsZIISvso2AwXjAM +BgNVHRMBAf8EAjAAMA4GA1UdDwEB/wQEAwIHgDAdBgNVHQ4EFgQUMTJoQeu6sxg3 +yXMfm5uPm5bjK5gwHwYDVR0jBBgwFoAUVmPydcFCBdjLdQKBP0Asz1DFdAgwCgYI +KoZIzj0EAwIDSQAwRgIhAKJgbwu0VCADEeVF8ro72G/tGYKz4aE6cUPY+/h2CUjh +AiEA3DsSOT6WrEntlD8InPcrwDCsSihm8eEw1yalnaWEBdk= +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen0/dac-Key.der b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen0/dac-Key.der new file mode 100644 index 00000000000000..41ec05139f9c2e Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen0/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen0/dac-Key.pem b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen0/dac-Key.pem new file mode 100644 index 00000000000000..80a9f8ad28df52 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen0/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIOAb8zXO/0RdOhwW6H2BheYuWMuUcVrGc2T8cF+mm/+noAoGCCqGSM49 +AwEHoUQDQgAEB06KDG4iQJ0pm2t0t971eHNn916hv4AwydwwUGcW+lKVUA5JL7cn +PotkUxf7JuuUvDsBozcB52D0MYLGSCEr7A== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen0/pai-Cert.der b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen0/pai-Cert.der new file mode 100644 index 00000000000000..a268d51a033f7f Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen0/pai-Cert.der differ 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 00000000000000..9baffb174c981e Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen0/pai-Key.der differ 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 00000000000000..4e1216e9fdb893 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen1/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen1/dac-Cert.der b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen1/dac-Cert.der new file mode 100644 index 00000000000000..4e6537b5a515c4 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen1/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen1/dac-Cert.pem b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen1/dac-Cert.pem new file mode 100644 index 00000000000000..70886f91e3b5b2 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen1/dac-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBzTCCAXSgAwIBAgIIBjENGdju/QEwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +REFDMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAATHc6vga6WlkfZ6EOi8Ar0I0C47u8TB +IcZr3BamMBUDaNDm93rcStVWBqK0tG1nvVzySAiS4Ux2jQomxrMfkjh2o2AwXjAM +BgNVHRMBAf8EAjAAMA4GA1UdDwEB/wQEAwIHgDAdBgNVHQ4EFgQUtq+rBDpG7n63 +MpscYoaVb4fVlswwHwYDVR0jBBgwFoAU3TmCPCfm8TuKhcSqUzjV+0gs6h0wCgYI +KoZIzj0EAwIDRwAwRAIgP8njHGcJuXDSZ2H8H5cpJUw5cL0YLcNlIhb4wSoaa9YC +IGh5mbkFxW/ZhrChK98B6t56M+LQZvXoAswcoh2zNeZH +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen1/dac-Key.der b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen1/dac-Key.der new file mode 100644 index 00000000000000..2cc0a6283ac444 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen1/dac-Key.der differ 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 00000000000000..4163a7a6d953e8 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen1/pai-Cert.der differ 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 00000000000000..645a79675660e7 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen1/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen1/pai-Key.pem b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen1/pai-Key.pem new file mode 100644 index 00000000000000..939deae63e3a91 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen1/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIG/2+Hghi+nFtuGUMfhsYqXQ9sAMn7qVRLZ6P7fXKYhIoAoGCCqGSM49 +AwEHoUQDQgAEhUY70HFHAmy4MBbt9D8L3Sph+zKsjWk16oD70HTTar32gtg+j5pO +HzajiZd1z0D/r4frORawkp7BhvSWnIiUxQ== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen1/test_case_vector.json b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen1/test_case_vector.json new file mode 100644 index 00000000000000..44c179321fb758 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen1/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "DAC Test Vector: Certificate Basic Constraint extension PathLen field set to 1", + "is_success_case": "false", + "dac_cert": "308201cd30820174a003020102020806310d19d8eefd01300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004c773abe06ba5a591f67a10e8bc02bd08d02e3bbbc4c121c66bdc16a630150368d0e6f77adc4ad55606a2b4b46d67bd5cf2480892e14c768d0a26c6b31f923876a360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e04160414b6afab043a46ee7eb7329b1c6286956f87d596cc301f0603551d23041830168014dd39823c27e6f13b8a85c4aa5338d5fb482cea1d300a06082a8648ce3d040302034700304402203fc9e31c6709b970d26761fc1f9729254c3970bd182dc3652216f8c12a1a6bd60220687999b905c56fd986b0a12bdf01eade7a33e2d066f5e802cc1ca21db335e647", + "pai_cert": "308201be30820164a00302010202086ac047773710628c300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313059301306072a8648ce3d020106082a8648ce3d0301070342000485463bd07147026cb83016edf43f0bdd2a61fb32ac8d6935ea80fbd074d36abdf682d83e8f9a4e1f36a3899775cf40ffaf87eb3916b0929ec186f4969c8894c5a366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e04160414dd39823c27e6f13b8a85c4aa5338d5fb482cea1d301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d0403020348003045022100cdef567425543b605eaddd170357a916771d4b741b6e5ae1b45c0323e99e931102202aeb589b976555e08cccefa80c5d57bdb2a879c8380b61cb2f25ba0b999f2499", + "certification_declaration": "3081e906092a864886f70d010702a081db3081d8020103310d300b0609608648016503040201304506092a864886f70d010701a0380436152400012501f1ff360205008018250334122c04135a494732303134315a423333303030312d32342405002406002507769824080018317d307b020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d04030204473045022100e9406fa9c1ccbf93fd0347d9adc57cc4b587212903c9349a89d260411e1d176e02200091e072ce3ea216d336330d1cbcb07a574d136d2031c616f576272b70face42", + "dac_private_key": "725b48bffa1336c73fa56fe7d019168c9f2b1530562eecf9173450572c59ef0d", + "dac_public_key": "04c773abe06ba5a591f67a10e8bc02bd08d02e3bbbc4c121c66bdc16a630150368d0e6f77adc4ad55606a2b4b46d67bd5cf2480892e14c768d0a26c6b31f923876" +} diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen2/cd.der b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen2/cd.der new file mode 100644 index 00000000000000..f1e2ea264f87e0 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen2/cd.der differ 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 00000000000000..94e0d9b034d836 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen2/dac-Cert.der differ 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 00000000000000..e2ed387e30a79a Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen2/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen2/dac-Key.pem b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen2/dac-Key.pem new file mode 100644 index 00000000000000..6d5dcaf70c4e0d --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen2/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIDhF7DzFGTiWyFI8wLHAcrnCa7nqdNvdJ9NBs7KqEsY3oAoGCCqGSM49 +AwEHoUQDQgAE7EUAP+xX+vqOBeJWaLbLUmT39+Y34mQlG/JpiIDOcL9p4DVIzO5q +4kLFqsVUisxAWz8yOFZqjgmavW+eI1zapg== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen2/pai-Cert.der b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen2/pai-Cert.der new file mode 100644 index 00000000000000..db7b89617734be Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen2/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen2/pai-Cert.pem b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen2/pai-Cert.pem new file mode 100644 index 00000000000000..5b1e5ebc5e5ddc --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen2/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBvzCCAWSgAwIBAgIIQsGTcLafZJQwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowMDEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTBZMBMGByqGSM49AgEGCCqGSM49AwEH +A0IABERuQo4p2b1qv0bLMsPy03tp2bcpConGJJRD3xo6OtkZfFRLsvFS0SEB4Y1b +NwUYsXoFRUp4aYp+bYUyO0gvODejZjBkMBIGA1UdEwEB/wQIMAYBAf8CAQEwDgYD +VR0PAQH/BAQDAgEGMB0GA1UdDgQWBBRngXKVRpOAyBCnE09dwajVcWqyPDAfBgNV +HSMEGDAWgBRq/SJ3H1Ef7L8WQZdnENzcMaFxfjAKBggqhkjOPQQDAgNJADBGAiEA +sxNKtmdram3jCP5JwaLCMYTvEhnFXX9yiLqNaY5euNYCIQC0yqWBVxUI7Fnq5GRP +matXib9xwMqm51TJfnSV3UdStw== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen2/pai-Key.der b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen2/pai-Key.der new file mode 100644 index 00000000000000..3fed644bf28953 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen2/pai-Key.der differ 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 00000000000000..2151772c8dbe23 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen_presence_wrong/cd.der differ 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 00000000000000..ccdd6e80c59b62 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen_presence_wrong/dac-Cert.der differ 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 00000000000000..28c9fd3dce4c04 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen_presence_wrong/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen_presence_wrong/dac-Key.pem b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen_presence_wrong/dac-Key.pem new file mode 100644 index 00000000000000..6c6dbcf27f68a1 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen_presence_wrong/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIJYfljzHccvqxKJiBEXd2J63PE/OnruijZenr7L/EPCxoAoGCCqGSM49 +AwEHoUQDQgAENfZoSvrDLsiS514XVs7WpwYKLkPBD/JqjGFfDEGyfyq1EK91vKfa +z8ed3vtAFEgbv9/95BDVoiSYPFqUhYdFRA== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen_presence_wrong/pai-Cert.der b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen_presence_wrong/pai-Cert.der new file mode 100644 index 00000000000000..1024b2f79a76ac Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen_presence_wrong/pai-Cert.der differ 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 00000000000000..00414b0eab0c97 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_basic_pathlen_presence_wrong/pai-Key.der differ 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 00000000000000..26ec086a15c6ba Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_extended_key_usage_present/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_dac_ext_extended_key_usage_present/dac-Cert.der b/credentials/development/commissioner_dut/struct_dac_ext_extended_key_usage_present/dac-Cert.der new file mode 100644 index 00000000000000..0e59c25541c8d7 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_extended_key_usage_present/dac-Cert.der differ 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 00000000000000..4a7e0676cdd8bb Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_extended_key_usage_present/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_dac_ext_extended_key_usage_present/dac-Key.pem b/credentials/development/commissioner_dut/struct_dac_ext_extended_key_usage_present/dac-Key.pem new file mode 100644 index 00000000000000..fd7fc3227cf7e6 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_extended_key_usage_present/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIHDAqrW4o479C8smnxjvfN1uaJhnoKFKLnTN7/x5/6l8oAoGCCqGSM49 +AwEHoUQDQgAEwI7Vx7b2U2+m0duE45w0rCZA69JRqApq8X6hz+N57QGeDM8tD7Ia +08Q21OzVx7gIO0BTJE1U2iXe8/ERQ7C0zQ== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_extended_key_usage_present/pai-Cert.der b/credentials/development/commissioner_dut/struct_dac_ext_extended_key_usage_present/pai-Cert.der new file mode 100644 index 00000000000000..1bee03811f6d4c Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_extended_key_usage_present/pai-Cert.der differ 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 00000000000000..25239e90ef3535 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_extended_key_usage_present/pai-Key.der differ 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 00000000000000..5528b5bb0f6d5b Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_missing/cd.der differ 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 00000000000000..78fbc0971d3a9e Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_missing/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_missing/dac-Cert.pem b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_missing/dac-Cert.pem new file mode 100644 index 00000000000000..64528a19e0ae21 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_missing/dac-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBzDCCAXGgAwIBAgIIXQj07staarQwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +REFDMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAT71Z5WoW+7WHVS85gAU5shAlfA3EGQ +sVupa4iTJNi05+UWSQKU9Altv02Sd9juklaVxJ6j3mFLI4b0GPR39tfSo10wWzAM +BgNVHRMBAf8EAjAAMAsGA1UdDwQEAwIHgDAdBgNVHQ4EFgQU37vHokB2Wrf7wBrt ++5m1jofn2qowHwYDVR0jBBgwFoAU40NKw7j6gBNRzuHjFNkG8Gk+0PEwCgYIKoZI +zj0EAwIDSQAwRgIhANbZQcv1oyYqhwkTcrkLvKK/iotGTymdTcaGlmpvMfr8AiEA +2KV+v752ugxTNPrQ6ieljZix8YKrUZZ3c4nXRIzQG0g= +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_missing/dac-Key.der b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_missing/dac-Key.der new file mode 100644 index 00000000000000..68b3191e519ac7 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_missing/dac-Key.der differ 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 00000000000000..e7572880af3e73 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_missing/pai-Cert.der differ 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 00000000000000..e1ed68bfafa0d3 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_missing/pai-Key.der differ 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 00000000000000..a851109ca5aede Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_wrong/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_wrong/dac-Cert.der b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_wrong/dac-Cert.der new file mode 100644 index 00000000000000..c3db13a7ef2a59 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_wrong/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_wrong/dac-Cert.pem b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_wrong/dac-Cert.pem new file mode 100644 index 00000000000000..942c759ba04311 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_wrong/dac-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIByzCCAXGgAwIBAgIIVvBAuqmg3yQwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +REFDMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQmeF2XBqZR08+6LMiNFb35YapcW8uG +dDB3ComNm988sJaaPBE9rr8URWfCJNxDYffK73SnrXLSYsJoB5inpDXfo10wWzAM +BgNVHRMBAf8EAjAAMAsGA1UdDwQEAwIHgDAdBgNVHQ4EFgQUfrxgrAFFKtLwgNsP +Wbeoe6hovQUwHwYDVR0jBBgwFoAU+xzVzKXcdtdMjsoQcPn/zys9JcowCgYIKoZI +zj0EAwIDSAAwRQIgdFqMNm2EnzAcDhVGagU8y/Y3eKudVncgt5hBJpTPxt0CIQD6 +GTFxb0sH/9EWMWRya0UfEah4GBMiNUObuqZQvcfM8Q== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_wrong/dac-Key.der b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_wrong/dac-Key.der new file mode 100644 index 00000000000000..873b4a7ac8d9d5 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_wrong/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_wrong/dac-Key.pem b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_wrong/dac-Key.pem new file mode 100644 index 00000000000000..9d3822405bb547 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_wrong/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIBkiGjyHj6GZmY401cOMT4NmTpReo2zcR28up7tMekSRoAoGCCqGSM49 +AwEHoUQDQgAEJnhdlwamUdPPuizIjRW9+WGqXFvLhnQwdwqJjZvfPLCWmjwRPa6/ +FEVnwiTcQ2H3yu90p61y0mLCaAeYp6Q13w== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_wrong/pai-Cert.der b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_wrong/pai-Cert.der new file mode 100644 index 00000000000000..ed392ad2cbfaad Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_wrong/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_wrong/pai-Cert.pem b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_wrong/pai-Cert.pem new file mode 100644 index 00000000000000..d33e79f667ed28 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_wrong/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBvTCCAWSgAwIBAgIIAVzbVaABvRMwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowMDEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTBZMBMGByqGSM49AgEGCCqGSM49AwEH +A0IABDvWgy/XLnDQT7if+7BgrPIFA4etcMKNUpscEixalf8Xxq7cWpt2mFHXFG4n +RTQ7mQOsc4cIclN6KsV1vM0XgiGjZjBkMBIGA1UdEwEB/wQIMAYBAf8CAQEwDgYD +VR0PAQH/BAQDAgEGMB0GA1UdDgQWBBT7HNXMpdx210yOyhBw+f/PKz0lyjAfBgNV +HSMEGDAWgBRq/SJ3H1Ef7L8WQZdnENzcMaFxfjAKBggqhkjOPQQDAgNHADBEAiA3 +6CCh6t8aVuSup/dlQZT2qnxNLLrnt8TCDyWfbMa8uwIgehSq+kBBX7C4jwI1qb5o +SRqZMKHsGnRj3KFe+GDwA0w= +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_wrong/pai-Key.der b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_wrong/pai-Key.der new file mode 100644 index 00000000000000..a31f21c283a2cf Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_critical_wrong/pai-Key.der differ 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 00000000000000..d2652374f4c554 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_crl_sign_wrong/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_dac_ext_key_usage_crl_sign_wrong/dac-Cert.der b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_crl_sign_wrong/dac-Cert.der new file mode 100644 index 00000000000000..7a7bf089eeb203 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_crl_sign_wrong/dac-Cert.der differ 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 00000000000000..5f7cff5a7c4402 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_crl_sign_wrong/dac-Key.der differ 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 00000000000000..6a0e5a13eea7e2 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_crl_sign_wrong/pai-Cert.der differ 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 00000000000000..580a86fd5b4cff Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_crl_sign_wrong/pai-Key.der differ 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 00000000000000..d7f99324e18d22 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_dig_sig_wrong/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_dac_ext_key_usage_dig_sig_wrong/dac-Cert.der b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_dig_sig_wrong/dac-Cert.der new file mode 100644 index 00000000000000..b86ac3e5f5024c Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_dig_sig_wrong/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_dac_ext_key_usage_dig_sig_wrong/dac-Cert.pem b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_dig_sig_wrong/dac-Cert.pem new file mode 100644 index 00000000000000..4853d6ccc238a5 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_dig_sig_wrong/dac-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBzTCCAXSgAwIBAgIIUTryfNzxw1gwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +REFDMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAARASYB2lpb5WVGsrSKqL5pRGZZoBk0k +3TPh/YkuSDfgKPA8WerUKQ5AfPuAhaL3zzZvjPf5Fn1SpDx1yAaTpc8fo2AwXjAM +BgNVHRMBAf8EAjAAMA4GA1UdDwEB/wQEAwIFIDAdBgNVHQ4EFgQUQdxNLLofxoQR +INYGIFIL5Hrw0B4wHwYDVR0jBBgwFoAUChS1t5Bl8DFo4e/jblKgXdxpiWUwCgYI +KoZIzj0EAwIDRwAwRAIgZG3RtkZCR4JehqY3v4eukfw2fTQBffwOoA8eog7JcaUC +IFwZL+Dwv3KwPOnhtLOm9AKWztP6Z2k9TFoSzsyYXM42 +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_key_usage_dig_sig_wrong/dac-Key.der b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_dig_sig_wrong/dac-Key.der new file mode 100644 index 00000000000000..15bdfae7802399 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_dig_sig_wrong/dac-Key.der differ 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 00000000000000..9e1369e35703de Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_dig_sig_wrong/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_dac_ext_key_usage_dig_sig_wrong/pai-Cert.pem b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_dig_sig_wrong/pai-Cert.pem new file mode 100644 index 00000000000000..72964b22579e66 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_dig_sig_wrong/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBvTCCAWSgAwIBAgIIOObD72boW7MwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowMDEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTBZMBMGByqGSM49AgEGCCqGSM49AwEH +A0IABIky0mhFHlheA/t9M32/9zyvVyPv6tdYnFnPhCJKwAv2qaq2qNTXM63Ly7y0 ++lXeyvQtyxr8RRq/vc3VXr1bND6jZjBkMBIGA1UdEwEB/wQIMAYBAf8CAQEwDgYD +VR0PAQH/BAQDAgEGMB0GA1UdDgQWBBQKFLW3kGXwMWjh7+NuUqBd3GmJZTAfBgNV +HSMEGDAWgBRq/SJ3H1Ef7L8WQZdnENzcMaFxfjAKBggqhkjOPQQDAgNHADBEAiBG +Ek0Yo5ejV2tvmnZtfofdLMRVTf/ZXdRYzf8yBQkY0AIgMwpXrSPlwT0TbjBPCjDU +zI45pxLGPswoCEbOS4vdmTQ= +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_key_usage_dig_sig_wrong/pai-Key.der b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_dig_sig_wrong/pai-Key.der new file mode 100644 index 00000000000000..acf2ec77968d2b Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_dig_sig_wrong/pai-Key.der differ 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 00000000000000..8e1382796469f3 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_key_cert_sign_wrong/cd.der differ 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 00000000000000..5fbd5c10efa5fd Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_key_cert_sign_wrong/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_dac_ext_key_usage_key_cert_sign_wrong/dac-Cert.pem b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_key_cert_sign_wrong/dac-Cert.pem new file mode 100644 index 00000000000000..bc8fc2d2f2706c --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_key_cert_sign_wrong/dac-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBzjCCAXSgAwIBAgIIAS5WQnv3DVYwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +REFDMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQixov5rafkf+ZYBOhentHcmjH5mcVE +Fy9vC9gnGWRtwuqjNDREVs2wUbTPFKeGAIVacbthRQFM6dR4kfKLq7FRo2AwXjAM +BgNVHRMBAf8EAjAAMA4GA1UdDwEB/wQEAwIChDAdBgNVHQ4EFgQUDFUJB2px7z8u +Q90FkCiX5iX2xRcwHwYDVR0jBBgwFoAUyHbdYrxgP9kEYhJ49LOJVG7QRkkwCgYI +KoZIzj0EAwIDSAAwRQIhAK58rVCo2fWl3ZYkTpzloazK9IbexeSURa/+gKDkhYr/ +AiAQnEld/fs4iAKLpwVegypNV5okDU9/KZCi8ZvkfrVQOw== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_key_usage_key_cert_sign_wrong/dac-Key.der b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_key_cert_sign_wrong/dac-Key.der new file mode 100644 index 00000000000000..dce8f06847695d Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_key_cert_sign_wrong/dac-Key.der differ 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 00000000000000..2f6fd46323a320 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_key_cert_sign_wrong/pai-Cert.der differ 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 00000000000000..50168a6fa1d89b Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_key_cert_sign_wrong/pai-Key.der differ 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 00000000000000..1a961872ed43ed Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_missing/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_dac_ext_key_usage_missing/dac-Cert.der b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_missing/dac-Cert.der new file mode 100644 index 00000000000000..0638f4e4a87d5f Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_missing/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_dac_ext_key_usage_missing/dac-Cert.pem b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_missing/dac-Cert.pem new file mode 100644 index 00000000000000..f648919ac04a3b --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_missing/dac-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBvjCCAWSgAwIBAgIIA3y0+bi2ag0wCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +REFDMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAATyEO2ReEjvRsmmPsNoaVgDYZ+XT15p +j68NF3jqQ0hpnJzWpy4rkZNKZTUzhE1Y2L+ZqhLxrT+YhZkW0FDvet1po1AwTjAM +BgNVHRMBAf8EAjAAMB0GA1UdDgQWBBRxzff2wNg+dXKEwB9vVOBboOKplDAfBgNV +HSMEGDAWgBTIFcN+HLILhztGKVYUmrUVLlsb6TAKBggqhkjOPQQDAgNIADBFAiBq +c3MaLSkeqpKQbLs0MnIIFFmz8RW8vsXwHOA/y0UIIwIhANZi+6X62n6LxaUNlf0d +/p/QtrAn5RxLQ162EYklYqpz +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_key_usage_missing/dac-Key.der b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_missing/dac-Key.der new file mode 100644 index 00000000000000..f0cf119e2fefc6 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_missing/dac-Key.der differ 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 00000000000000..7751df99b85a5c Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_missing/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_dac_ext_key_usage_missing/pai-Cert.pem b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_missing/pai-Cert.pem new file mode 100644 index 00000000000000..eb9d02337f819e --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_missing/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBvjCCAWSgAwIBAgIIIwR9hccTZ10wCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowMDEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTBZMBMGByqGSM49AgEGCCqGSM49AwEH +A0IABPGankJUUXijN8RUWmy7+zD+cl8HfMInU1EPpx3LnVgM+etX/S176Eldfzsf +JkGFTBTILuSZEKbk11T6Z8bO8P+jZjBkMBIGA1UdEwEB/wQIMAYBAf8CAQEwDgYD +VR0PAQH/BAQDAgEGMB0GA1UdDgQWBBTIFcN+HLILhztGKVYUmrUVLlsb6TAfBgNV +HSMEGDAWgBRq/SJ3H1Ef7L8WQZdnENzcMaFxfjAKBggqhkjOPQQDAgNIADBFAiAU +1M5KVLF6tw483Rn25CwDxGZnhVZhcVafmjOmUk60eQIhAN6De1B1R3wsWkOmyroD +rL8B5aNHxkDvi/fiKU2Fnnyv +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_key_usage_missing/pai-Key.der b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_missing/pai-Key.der new file mode 100644 index 00000000000000..691341f8c42577 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_missing/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_dac_ext_key_usage_missing/pai-Key.pem b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_missing/pai-Key.pem new file mode 100644 index 00000000000000..33918539950f3c --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_missing/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIIrW2aATVgQW3OnbGY9pyRD8S5LFo4qUNeNkakiLz+94oAoGCCqGSM49 +AwEHoUQDQgAE8ZqeQlRReKM3xFRabLv7MP5yXwd8widTUQ+nHcudWAz561f9LXvo +SV1/Ox8mQYVMFMgu5JkQpuTXVPpnxs7w/w== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_key_usage_missing/test_case_vector.json b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_missing/test_case_vector.json new file mode 100644 index 00000000000000..b36b2d76874a01 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_key_usage_missing/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "DAC Test Vector: Certificate doesn't include Key Usage extension", + "is_success_case": "false", + "dac_cert": "308201be30820164a0030201020208037cb4f9b8b66a0d300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004f210ed917848ef46c9a63ec368695803619f974f5e698faf0d1778ea4348699c9cd6a72e2b91934a653533844d58d8bf99aa12f1ad3f98859916d050ef7add69a350304e300c0603551d130101ff04023000301d0603551d0e0416041471cdf7f6c0d83e757284c01f6f54e05ba0e2a994301f0603551d23041830168014c815c37e1cb20b873b462956149ab5152e5b1be9300a06082a8648ce3d040302034800304502206a73731a2d291eaa92906cbb343272081459b3f115bcbec5f01ce03fcb450823022100d662fba5fada7e8bc5a50d95fd1dfe9fd0b6b027e51c4b435eb611892562aa73", + "pai_cert": "308201be30820164a003020102020823047d85c713675d300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313059301306072a8648ce3d020106082a8648ce3d03010703420004f19a9e42545178a337c4545a6cbbfb30fe725f077cc22753510fa71dcb9d580cf9eb57fd2d7be8495d7f3b1f2641854c14c82ee49910a6e4d754fa67c6cef0ffa366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e04160414c815c37e1cb20b873b462956149ab5152e5b1be9301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d0403020348003045022014d4ce4a54b17ab70e3cdd19f6e42c03c4666785566171569f9a33a6524eb479022100de837b5075477c2c5a43a6caba03acbf01e5a347c640ef8bf7e2294d859e7caf", + "certification_declaration": "3081e806092a864886f70d010702a081da3081d7020103310d300b0609608648016503040201304506092a864886f70d010701a0380436152400012501f1ff360205008018250334122c04135a494732303134315a423333303030312d32342405002406002507769824080018317c307a020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d040302044630440220552725d4e72b4d2952a9582b574080a827b79e29583fd349f8176e370712feaf02201625862eda92b65098e24d104cf9f8b57fad3b7e631abd7ef622591f2906a9ca", + "dac_private_key": "2289c55db90e087dfadf6acb2a018bbfe3cbeeb8e51fc1d2661a39988c5cac67", + "dac_public_key": "04f210ed917848ef46c9a63ec368695803619f974f5e698faf0d1778ea4348699c9cd6a72e2b91934a653533844d58d8bf99aa12f1ad3f98859916d050ef7add69" +} diff --git a/credentials/development/commissioner_dut/struct_dac_ext_skid_missing/cd.der b/credentials/development/commissioner_dut/struct_dac_ext_skid_missing/cd.der new file mode 100644 index 00000000000000..47440f53691bff Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_skid_missing/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_dac_ext_skid_missing/dac-Cert.der b/credentials/development/commissioner_dut/struct_dac_ext_skid_missing/dac-Cert.der new file mode 100644 index 00000000000000..151a1d3bbdf0fb Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_skid_missing/dac-Cert.der differ 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 00000000000000..a161af1e8c5d89 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_skid_missing/dac-Key.der differ 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 00000000000000..8215f09fa7b197 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_skid_missing/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_dac_ext_skid_missing/pai-Cert.pem b/credentials/development/commissioner_dut/struct_dac_ext_skid_missing/pai-Cert.pem new file mode 100644 index 00000000000000..8cc31bfffcba6e --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_skid_missing/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBvTCCAWSgAwIBAgIIBQOz0+usZc4wCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowMDEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTBZMBMGByqGSM49AgEGCCqGSM49AwEH +A0IABBe4t64HPxkkB1J2b1trX2038cv6MBv/DBqWuTnrz6zWlFNpdJYdD69KrSdU +0dv5aphFfYLyhMbK4j+7SDTVHUajZjBkMBIGA1UdEwEB/wQIMAYBAf8CAQEwDgYD +VR0PAQH/BAQDAgEGMB0GA1UdDgQWBBT8LwenSXt/UaDF7Mpz0NbhJXCY8jAfBgNV +HSMEGDAWgBRq/SJ3H1Ef7L8WQZdnENzcMaFxfjAKBggqhkjOPQQDAgNHADBEAiB7 +w7OoZRT7QZbW/IjFAerzGgZnMr8CwnpdyTTe7oCSQwIgf6/HMslDzdXLd8YXzPNZ +Vl1WLxLYu1pNms5qpQXixJ4= +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_skid_missing/pai-Key.der b/credentials/development/commissioner_dut/struct_dac_ext_skid_missing/pai-Key.der new file mode 100644 index 00000000000000..b3b3eb1036aa06 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_skid_missing/pai-Key.der differ 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 00000000000000..d9293cb64030e4 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_subject_alt_name_present/cd.der differ 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 00000000000000..4c946ca849269c Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_subject_alt_name_present/dac-Cert.der differ 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 00000000000000..e23808824f9b32 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_subject_alt_name_present/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_dac_ext_subject_alt_name_present/dac-Key.pem b/credentials/development/commissioner_dut/struct_dac_ext_subject_alt_name_present/dac-Key.pem new file mode 100644 index 00000000000000..0afa574e7aa441 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_subject_alt_name_present/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIJMK22LlKR8AyIoNidQPw2wdmC3cWOBcyTjK5M6uuABhoAoGCCqGSM49 +AwEHoUQDQgAE/aF18yQA4Lig1c9mKwMs3yOkgrlCLUzg1HGSyIlh1n2ExZQ0KUeF +hRQU0msGsxox2TlA2FrT3WMK/O8a8ZK13Q== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_subject_alt_name_present/pai-Cert.der b/credentials/development/commissioner_dut/struct_dac_ext_subject_alt_name_present/pai-Cert.der new file mode 100644 index 00000000000000..6a8d643eb0c682 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_subject_alt_name_present/pai-Cert.der differ 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 00000000000000..7dae7039a45c4d Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_ext_subject_alt_name_present/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_dac_ext_subject_alt_name_present/pai-Key.pem b/credentials/development/commissioner_dut/struct_dac_ext_subject_alt_name_present/pai-Key.pem new file mode 100644 index 00000000000000..4d72da125a70f4 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_subject_alt_name_present/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIIZO4FSjKL6SCESftBNKGp2BmmxJ4Erxuckar4EFtMeioAoGCCqGSM49 +AwEHoUQDQgAEbVhBJ+hzt2B06RhqtxJdoJQPfxba26/Xl0duCFpyFxB8JZTH+RO8 +GYXKnsMHLJ3AMfQmn9arDRNnFYdt5MDJGA== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_dac_ext_subject_alt_name_present/test_case_vector.json b/credentials/development/commissioner_dut/struct_dac_ext_subject_alt_name_present/test_case_vector.json new file mode 100644 index 00000000000000..f8802300beaac3 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_ext_subject_alt_name_present/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "DAC Test Vector: Certificate includes optional Subject Alternative Name extension", + "is_success_case": "true", + "dac_cert": "308201e330820189a003020102020833ec6ca171b6aa7f300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004fda175f32400e0b8a0d5cf662b032cdf23a482b9422d4ce0d47192c88961d67d84c59434294785851414d26b06b31a31d93940d85ad3dd630afcef1af192b5dda3753073300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e041604143d4bb4e161169a740feea34bca9f80fafe747f4f301f0603551d23041830168014a6585cbc9ded45af55a1cb1ffd72762cb51b8a0130130603551d11040c300a8208746573742e636f6d300a06082a8648ce3d040302034800304502203b8327cc6d7ffa8781c6a4b5d9271b065ce3e817f673b9cf84bec4569fa043410221009b651e7be48ac24705700f40e607c93d73f25a750d2ee8a7e88279454bf73024", + "pai_cert": "308201be30820164a0030201020208011fcdfc811c7efe300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313059301306072a8648ce3d020106082a8648ce3d030107034200046d584127e873b76074e9186ab7125da0940f7f16dadbafd797476e085a7217107c2594c7f913bc1985ca9ec3072c9dc031f4269fd6ab0d136715876de4c0c918a366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e04160414a6585cbc9ded45af55a1cb1ffd72762cb51b8a01301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d040302034800304502205c4a9e4262f48f874ddae507c86ca56883bb456bdcd73a0ffadca51aefe83396022100b575fa4fc09b1979420d02016625bf25d701aaf5d7e8f472580ac51b68064d03", + "certification_declaration": "3081e906092a864886f70d010702a081db3081d8020103310d300b0609608648016503040201304506092a864886f70d010701a0380436152400012501f1ff360205008018250334122c04135a494732303134315a423333303030312d32342405002406002507769824080018317d307b020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d0403020447304502207b94ccea0557ed0fca6863ee9699286b349012ec5586112a23008883306df068022100ab8599eaf96edf5430bf1edc4eddae349c4682de58c3e0bab73a416c1a809551", + "dac_private_key": "930adb62e5291f00c88a0d89d40fc36c1d982ddc58e05cc938cae4ceaeb80061", + "dac_public_key": "04fda175f32400e0b8a0d5cf662b032cdf23a482b9422d4ce0d47192c88961d67d84c59434294785851414d26b06b31a31d93940d85ad3dd630afcef1af192b5dd" +} diff --git a/credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha1/cd.der b/credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha1/cd.der new file mode 100644 index 00000000000000..d48259c268ed37 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha1/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha1/dac-Cert.der b/credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha1/dac-Cert.der new file mode 100644 index 00000000000000..35e87e196e1439 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha1/dac-Cert.der differ 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 00000000000000..1db8e9eac5d2fb Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha1/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha1/dac-Key.pem b/credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha1/dac-Key.pem new file mode 100644 index 00000000000000..8c98517038cb7b --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha1/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIMfRhXpvxLKIKeAbNide/e918zaymPb/2A7ADUZ7x2mGoAoGCCqGSM49 +AwEHoUQDQgAEmqk33EjP+3ZXRpU7O+MEaVNwQqEpUY1GjbbZKgH3W0Y6bp97lW3L +UW1wCiRTNz3GYXUti0gZJj7blF6TmKuftQ== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha1/pai-Cert.der b/credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha1/pai-Cert.der new file mode 100644 index 00000000000000..edfe4ca3e1ca2f Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha1/pai-Cert.der differ 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 00000000000000..8a313c4aecdfc4 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha1/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha1/pai-Key.pem b/credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha1/pai-Key.pem new file mode 100644 index 00000000000000..515ccf6836c222 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha1/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIDWwtcylG53VioB5wZcE2M/sra17QenGQYkRkhGrC9k2oAoGCCqGSM49 +AwEHoUQDQgAE7TuOCYi6sdfyKx1Wf95eKN6NEYiuFtjbNbA1JMjeK2pnGbG3PhOg +UCRPeklsCrKYuTjT+FH8ZfzsjCczUfnUrg== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha1/test_case_vector.json b/credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha1/test_case_vector.json new file mode 100644 index 00000000000000..844b4a2ee4b82d --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha1/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "DAC Test Vector: Invalid certificate signature algorithm ECDSA_WITH_SHA1", + "is_success_case": "false", + "dac_cert": "308201cb30820173a0030201020208339824d6275bf460300906072a8648ce3d040130303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d030107034200049aa937dc48cffb765746953b3be30469537042a129518d468db6d92a01f75b463a6e9f7b956dcb516d700a2453373dc661752d8b4819263edb945e9398ab9fb5a360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e04160414c41bcad7c811b12b0da9a220f75287f820199bf1301f0603551d23041830168014049a6e9abecb02f4e2050b64d4044e78ae9a0772300906072a8648ce3d0401034700304402206a256a3b6e55506a7aa0420a3d0fa7abfea660a672c9289c64b85c9cdce199a702202fdca819458974d37dd0a40b60fb88591ceb4d7049566ab6571fd9fc7839dbac", + "pai_cert": "308201be30820164a003020102020824aa55b8184d1185300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313059301306072a8648ce3d020106082a8648ce3d03010703420004ed3b8e0988bab1d7f22b1d567fde5e28de8d1188ae16d8db35b03524c8de2b6a6719b1b73e13a050244f7a496c0ab298b938d3f851fc65fcec8c273351f9d4aea366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e04160414049a6e9abecb02f4e2050b64d4044e78ae9a0772301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d0403020348003045022100bc138957dc565597fabcb0f55d735e63919b3e1475e68860cb7fe762576ad4c202204daae13495deb04b2ce2a2bc3e330208ec29988b9ebf66ea3bf8a5a3298d94f0", + "certification_declaration": "3081e806092a864886f70d010702a081da3081d7020103310d300b0609608648016503040201304506092a864886f70d010701a0380436152400012501f1ff360205008018250334122c04135a494732303134315a423333303030312d32342405002406002507769824080018317c307a020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d0403020446304402202af1c292f16ed2e108bebf15144b3e87737f6f6f7684945ad33b6d532511038c022052f961fcc7ce146e7d6efbb5a26618c6e3b32a4e615660fb47c02468553494dc", + "dac_private_key": "c7d1857a6fc4b28829e01b36275efdef75f336b298f6ffd80ec00d467bc76986", + "dac_public_key": "049aa937dc48cffb765746953b3be30469537042a129518d468db6d92a01f75b463a6e9f7b956dcb516d700a2453373dc661752d8b4819263edb945e9398ab9fb5" +} diff --git a/credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha256/cd.der b/credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha256/cd.der new file mode 100644 index 00000000000000..6616985fcfa31d Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha256/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha256/dac-Cert.der b/credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha256/dac-Cert.der new file mode 100644 index 00000000000000..b18ae808e19cf7 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha256/dac-Cert.der differ 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 00000000000000..dff6da6b07749e Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha256/dac-Key.der differ 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 00000000000000..4ac04099c28a7b Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha256/pai-Cert.der differ 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 00000000000000..17451d2168625f Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha256/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha256/pai-Key.pem b/credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha256/pai-Key.pem new file mode 100644 index 00000000000000..113e8db14e5532 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha256/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEILJJ/KqisrZwdxtAqPbz1G+qH7g1YMwZUQIGGQiNjKbIoAoGCCqGSM49 +AwEHoUQDQgAEK+ZhbjU8s2LQ3tO8j7CzgHFCPlem2ZKYqTMzvKODurhtwEVbquI3 +XCE2icQorZ+8oNj2+DXI+s1ksAcnC3rVeg== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha256/test_case_vector.json b/credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha256/test_case_vector.json new file mode 100644 index 00000000000000..8d3c02ef261864 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_sig_algo_ecdsa_with_sha256/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "DAC Test Vector: Valid certificate signature algorithm ECDSA_WITH_SHA256", + "is_success_case": "true", + "dac_cert": "308201cd30820174a00302010202083d6022396aca5162300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d030107034200040567ebc45c91d4d22438beaf489d6efbb356ba38d733f52045d3b44b379698e11366190593f845e747a2ae79b6feb606c5575dac8e85d4c8ec169dc2617141daa360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e0416041453cadd0087899b95fcdb451856ec15ee933f5780301f0603551d23041830168014866fa8389111040992e8d5d122836dee7888ca07300a06082a8648ce3d0403020347003044022026ea493d68fd9733de8ed2382c4cf0048c3baf2278fa521134a9a90b133b67d90220638a01a2e525b40044190cbbc9badd941fa1c99f6b56e0b2981fbfe3ca97cba6", + "pai_cert": "308201bd30820164a00302010202086a3a1757330dafce300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313059301306072a8648ce3d020106082a8648ce3d030107034200042be6616e353cb362d0ded3bc8fb0b38071423e57a6d99298a93333bca383bab86dc0455baae2375c213689c428ad9fbca0d8f6f835c8facd64b007270b7ad57aa366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e04160414866fa8389111040992e8d5d122836dee7888ca07301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d0403020347003044022072823ec4fa8187652011d3d865e55c35d61284c1bfd1321ea7d9724d8a4a2dba02207e825c5d2f57d71fd03cc9622284a7b8de12b55857a43b7289f493798e7594eb", + "certification_declaration": "3081e906092a864886f70d010702a081db3081d8020103310d300b0609608648016503040201304506092a864886f70d010701a0380436152400012501f1ff360205008018250334122c04135a494732303134315a423333303030312d32342405002406002507769824080018317d307b020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d0403020447304502210099ee26f82318624ae22f5e05a744ace27c846023c9df5c6125305f8aaa35d98f02202665265acfca111fdf50ec6291c7cf9482b0a6c6bf47b303ec5478d146e2a5e0", + "dac_private_key": "9370ccf8c90f424343a2aaf8ecda781ce8ad0daeda225039660cbb010c61dff9", + "dac_public_key": "040567ebc45c91d4d22438beaf489d6efbb356ba38d733f52045d3b44b379698e11366190593f845e747a2ae79b6feb606c5575dac8e85d4c8ec169dc2617141da" +} diff --git a/credentials/development/commissioner_dut/struct_dac_sig_curve_prime256v1/cd.der b/credentials/development/commissioner_dut/struct_dac_sig_curve_prime256v1/cd.der new file mode 100644 index 00000000000000..dc1210d75a9754 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_sig_curve_prime256v1/cd.der differ 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 00000000000000..5deb3a6b8ba09b Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_sig_curve_prime256v1/dac-Cert.der differ 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 00000000000000..c2114651bdd7f0 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_sig_curve_prime256v1/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_dac_sig_curve_prime256v1/dac-Key.pem b/credentials/development/commissioner_dut/struct_dac_sig_curve_prime256v1/dac-Key.pem new file mode 100644 index 00000000000000..db204b7a493390 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_dac_sig_curve_prime256v1/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIE3Zw8ruiD4uxKXDtjuD23L1+w14m6Bx+Q2ERGVTJ4nkoAoGCCqGSM49 +AwEHoUQDQgAEWftQEFhUpN9N5DtvnPTgNDmEdjX6h4Vizln90XjQG9bMw04ENv+9 +JpDXqj71A6b5ZkT4JoLdXiDPdPG4F62dOA== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_dac_sig_curve_prime256v1/pai-Cert.der b/credentials/development/commissioner_dut/struct_dac_sig_curve_prime256v1/pai-Cert.der new file mode 100644 index 00000000000000..21e309df17205c Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_sig_curve_prime256v1/pai-Cert.der differ 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 00000000000000..302a6b124c01d6 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_sig_curve_prime256v1/pai-Key.der differ 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 00000000000000..d8dd4154cd8c57 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_sig_curve_secp256k1/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_dac_sig_curve_secp256k1/dac-Cert.der b/credentials/development/commissioner_dut/struct_dac_sig_curve_secp256k1/dac-Cert.der new file mode 100644 index 00000000000000..4323272bd4c69f Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_sig_curve_secp256k1/dac-Cert.der differ 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 00000000000000..005705cdcafb03 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_sig_curve_secp256k1/dac-Key.der differ 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 00000000000000..f79a2182e84fa2 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_sig_curve_secp256k1/pai-Cert.der differ 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 00000000000000..91b21aa1d218b5 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_sig_curve_secp256k1/pai-Key.der differ 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 00000000000000..d62a4c29240228 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_subject_pid_mismatch/cd.der differ 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 00000000000000..778edb359d072f Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_subject_pid_mismatch/dac-Cert.der differ 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 00000000000000..f7cec17297de12 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_subject_pid_mismatch/dac-Key.der differ 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 00000000000000..b17c34934ce4a9 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_subject_pid_mismatch/pai-Cert.der differ 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 00000000000000..57d1e35108f0aa Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_subject_pid_mismatch/pai-Key.der differ 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 00000000000000..98aeace7f48cd3 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_subject_vid_mismatch/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_dac_subject_vid_mismatch/dac-Cert.der b/credentials/development/commissioner_dut/struct_dac_subject_vid_mismatch/dac-Cert.der new file mode 100644 index 00000000000000..06be896a78464f Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_subject_vid_mismatch/dac-Cert.der differ 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 00000000000000..459e8c91f14c87 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_subject_vid_mismatch/dac-Key.der differ 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 00000000000000..28b123b7f94b58 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_subject_vid_mismatch/pai-Cert.der differ 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 00000000000000..209bd28cb525ee Binary files /dev/null and b/credentials/development/commissioner_dut/struct_dac_subject_vid_mismatch/pai-Key.der differ 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 00000000000000..d778884e3d3005 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_cert_version_v2/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_cert_version_v2/dac-Cert.der b/credentials/development/commissioner_dut/struct_pai_cert_version_v2/dac-Cert.der new file mode 100644 index 00000000000000..0a687c9d4373a9 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_cert_version_v2/dac-Cert.der differ 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 00000000000000..b1d69f662c4032 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_cert_version_v2/dac-Key.der differ 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 00000000000000..a65a6aa75202dc Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_cert_version_v2/pai-Cert.der differ 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 00000000000000..fd1cfd8385346d Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_cert_version_v2/pai-Key.der differ 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 00000000000000..6510d758d6e1a2 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_cert_version_v3/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_cert_version_v3/dac-Cert.der b/credentials/development/commissioner_dut/struct_pai_cert_version_v3/dac-Cert.der new file mode 100644 index 00000000000000..a0161d0cfacff5 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_cert_version_v3/dac-Cert.der differ 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 00000000000000..0e6ed225129327 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_cert_version_v3/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_cert_version_v3/dac-Key.pem b/credentials/development/commissioner_dut/struct_pai_cert_version_v3/dac-Key.pem new file mode 100644 index 00000000000000..1a735ef3057ea8 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_cert_version_v3/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEID5ng+wku5QaeUhwRacgMe52t/qQizZ7mlC4qNVY8z3loAoGCCqGSM49 +AwEHoUQDQgAEWzZ6RVEx3JDHGI5qunNeNc8SRF1JphfOc/8ws9d9DG2NDVhD4ns2 +LvqLRG6ObVKYR7UEBBl/AGQqTQFdL83wPg== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_pai_cert_version_v3/pai-Cert.der b/credentials/development/commissioner_dut/struct_pai_cert_version_v3/pai-Cert.der new file mode 100644 index 00000000000000..808a8252ca7eee Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_cert_version_v3/pai-Cert.der differ 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 00000000000000..8304a0243bd8b9 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_cert_version_v3/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_cert_version_v3/pai-Key.pem b/credentials/development/commissioner_dut/struct_pai_cert_version_v3/pai-Key.pem new file mode 100644 index 00000000000000..cdc875e01ee636 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_cert_version_v3/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIEDLNJaNo9dW0MJG11dW1dQo9bMTOqV2V9ERchH50vFjoAoGCCqGSM49 +AwEHoUQDQgAEalX4/10t1NhHjyBSA8yENTaNVnd6FF5+AKk5QyfsfZR9cJ41PS22 +4oqWkJ7wxNx9hOuPdMuuKpELmcZymLqmtQ== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_pai_cert_version_v3/test_case_vector.json b/credentials/development/commissioner_dut/struct_pai_cert_version_v3/test_case_vector.json new file mode 100644 index 00000000000000..fdd5b864b600be --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_cert_version_v3/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "PAI Test Vector: Valid certificate version field set to v3(2)", + "is_success_case": "true", + "dac_cert": "308201ce30820174a00302010202084857d7e63ecfc277300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d030107034200045b367a455131dc90c7188e6aba735e35cf12445d49a617ce73ff30b3d77d0c6d8d0d5843e27b362efa8b446e8e6d529847b50404197f00642a4d015d2fcdf03ea360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e041604146de65177563671505d13cfd1baee2fb7bbdc3573301f0603551d23041830168014034b00c859bd37733fa1469c6b18d7263c5569a6300a06082a8648ce3d0403020348003045022100f6a6ffbb43adc95fe6adfa19a12c1a6464218c5d8ff05acdbbc6b7259d88d19602201d2ab586f2128ecb9c9c9ce95cbd6f371499d9839dfcfe2411807c8b8a72e68b", + "pai_cert": "308201be30820164a00302010202085bfb6c1af3e50680300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313059301306072a8648ce3d020106082a8648ce3d030107034200046a55f8ff5d2dd4d8478f205203cc8435368d56777a145e7e00a9394327ec7d947d709e353d2db6e28a96909ef0c4dc7d84eb8f74cbae2a910b99c67298baa6b5a366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e04160414034b00c859bd37733fa1469c6b18d7263c5569a6301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d040302034800304502205f5d8b01547535ccb576f733389abe30815d89a47b793037f945d769db575d31022100df4bb2cd6b7164fef3200006f1bdfdf5e2cb1f974ce5f8887a58bda3ee6e71e7", + "certification_declaration": "3081e906092a864886f70d010702a081db3081d8020103310d300b0609608648016503040201304506092a864886f70d010701a0380436152400012501f1ff360205008018250334122c04135a494732303134315a423333303030312d32342405002406002507769824080018317d307b020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d0403020447304502201811db54cf70015fcf78bc15282cf7cce1a4f6199e863024df03f6395179b6e5022100a0142250bab406a532be1664b47bdf42c7a65c022abc9e445e97e0284b338167", + "dac_private_key": "3e6783ec24bb941a79487045a72031ee76b7fa908b367b9a50b8a8d558f33de5", + "dac_public_key": "045b367a455131dc90c7188e6aba735e35cf12445d49a617ce73ff30b3d77d0c6d8d0d5843e27b362efa8b446e8e6d529847b50404197f00642a4d015d2fcdf03e" +} diff --git a/credentials/development/commissioner_dut/struct_pai_ext_akid_missing/cd.der b/credentials/development/commissioner_dut/struct_pai_ext_akid_missing/cd.der new file mode 100644 index 00000000000000..41bc7731ca1f36 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_akid_missing/cd.der differ 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 00000000000000..651eba7f8f629b Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_akid_missing/dac-Cert.der differ 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 00000000000000..1316331b2a7456 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_akid_missing/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_ext_akid_missing/dac-Key.pem b/credentials/development/commissioner_dut/struct_pai_ext_akid_missing/dac-Key.pem new file mode 100644 index 00000000000000..abb4b97eb4625b --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_akid_missing/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIA37ksBIiBDsbFGIznM2scc+VCqzdeKnQoKuRAJY/SDXoAoGCCqGSM49 +AwEHoUQDQgAEmfd7ZLnwoXvvrcCkZywHCGY6BnMvABYAMVe5KMzEwINOOLcWEpwF +tto0h4moF3ZMzddjrUXRuhOHJW4nElbpZA== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_akid_missing/pai-Cert.der b/credentials/development/commissioner_dut/struct_pai_ext_akid_missing/pai-Cert.der new file mode 100644 index 00000000000000..183962a3a79d1f Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_akid_missing/pai-Cert.der differ 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 00000000000000..448aa9ef838c80 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_akid_missing/pai-Key.der differ 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 00000000000000..0480d913456df1 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_authority_info_access_present/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_ext_authority_info_access_present/dac-Cert.der b/credentials/development/commissioner_dut/struct_pai_ext_authority_info_access_present/dac-Cert.der new file mode 100644 index 00000000000000..53bbc4f9e4a28b Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_authority_info_access_present/dac-Cert.der differ 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 00000000000000..97244c4785c141 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_authority_info_access_present/dac-Key.der differ 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 00000000000000..005fae73ac37ea Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_authority_info_access_present/pai-Cert.der differ 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 00000000000000..d8706df3b27bce Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_authority_info_access_present/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_ext_authority_info_access_present/pai-Key.pem b/credentials/development/commissioner_dut/struct_pai_ext_authority_info_access_present/pai-Key.pem new file mode 100644 index 00000000000000..9c5de9f2ca1f61 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_authority_info_access_present/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIIhWVT91P7nlNxMNHG2Gfm+E8k8+Szr1e3qRdz5jwP7noAoGCCqGSM49 +AwEHoUQDQgAEY5XNNMZGsvtwWqkoJx+VD/CAeKO26Q6tkq8s1zZ4wGEhe3uhEs3S +b4wy1GtzB6wp1fJjXKp5l1Po7d24cMGZOA== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_authority_info_access_present/test_case_vector.json b/credentials/development/commissioner_dut/struct_pai_ext_authority_info_access_present/test_case_vector.json new file mode 100644 index 00000000000000..55679174a8891c --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_authority_info_access_present/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "PAI Test Vector: Certificate includes optional Authority Information Access extension", + "is_success_case": "true", + "dac_cert": "308201ce30820174a00302010202087688815c964c799c300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d030107034200041e1b3cb9c0ee59e8ecf0489900ce8f9ad2f452b71e5edaf0dbf4803738246307ae306147f3c3fb0f25119c378426d0ac359c182d6d0ebdf9bae4aded73f1890da360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e041604140c99ea08dbb0444a583f78d09fa9dbb0fe983b3c301f0603551d2304183016801487aa56ff853e6a9724bcede6f392d1978e39c3c6300a06082a8648ce3d0403020348003045022100ac4f5e0fafd1f140faba9c88fb609806a8d4373632ca1458c69002647e7cf1ff022074e28843c5226ded276dc18e26bff7d37ef0848232268fde40c73137f1753860", + "pai_cert": "308201f53082019ca00302010202084b6a3210fad882c7300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313059301306072a8648ce3d020106082a8648ce3d030107034200046395cd34c646b2fb705aa928271f950ff08078a3b6e90ead92af2cd73678c061217b7ba112cdd26f8c32d46b7307ac29d5f2635caa799753e8edddb870c19938a3819d30819a30120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e0416041487aa56ff853e6a9724bcede6f392d1978e39c3c6301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e303406082b0601050507010104283026302406082b060105050730018618687474703a2f2f6f6373702e6578616d706c652e636f6d2f300a06082a8648ce3d040302034700304402200aedca36814d38146badc639b6f0e2317e15f0fe2072b82d161db6e1d27f6bbe0220521c8f9b9eb67e40abac22500b9dd5d2a8629f9cb9aa68c10d2cbbfa24da28d7", + "certification_declaration": "3081ea06092a864886f70d010702a081dc3081d9020103310d300b0609608648016503040201304506092a864886f70d010701a0380436152400012501f1ff360205008018250334122c04135a494732303134315a423333303030312d32342405002406002507769824080018317e307c020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d04030204483046022100b7104d907fb69f2d8ccc9b56ef4698c84a027198645458a1f165d76e4beaeb8a022100e8810b9fd8e11128c10223e8919b7176e13829f5178da70adc308e936da47e22", + "dac_private_key": "832a65c2e39739ff4f69e7901c07f3d53534072897713444c3971723fe2cc401", + "dac_public_key": "041e1b3cb9c0ee59e8ecf0489900ce8f9ad2f452b71e5edaf0dbf4803738246307ae306147f3c3fb0f25119c378426d0ac359c182d6d0ebdf9bae4aded73f1890d" +} diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_ca_missing/cd.der b/credentials/development/commissioner_dut/struct_pai_ext_basic_ca_missing/cd.der new file mode 100644 index 00000000000000..ce2e56fa640b4a Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_basic_ca_missing/cd.der differ 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 00000000000000..51277d4d186a06 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_basic_ca_missing/dac-Cert.der differ 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 00000000000000..2c327e265e0f38 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_basic_ca_missing/dac-Key.der differ 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 00000000000000..6f2180832bdc2e Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_basic_ca_missing/pai-Cert.der differ 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 00000000000000..b069345373d563 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_basic_ca_missing/pai-Key.der differ 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 00000000000000..ff16691d151673 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_basic_ca_wrong/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_ca_wrong/dac-Cert.der b/credentials/development/commissioner_dut/struct_pai_ext_basic_ca_wrong/dac-Cert.der new file mode 100644 index 00000000000000..47a2d77ccdebda Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_basic_ca_wrong/dac-Cert.der differ 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 00000000000000..171f2e6ae229be Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_basic_ca_wrong/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_ca_wrong/dac-Key.pem b/credentials/development/commissioner_dut/struct_pai_ext_basic_ca_wrong/dac-Key.pem new file mode 100644 index 00000000000000..92c6f5d6eed8da --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_basic_ca_wrong/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIPmj5KSi6XrhgotTSanCuCk2BS0wI/Ah1YfIQzq5xVW4oAoGCCqGSM49 +AwEHoUQDQgAElW7Z6jal0+T+mYpOS3mCYgau9iY/2KdmN8NHGxbDGg5FIowU2iT2 +ZVurXvoeuCtclCSl9cvKt9zv/FnyOFNyhg== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_ca_wrong/pai-Cert.der b/credentials/development/commissioner_dut/struct_pai_ext_basic_ca_wrong/pai-Cert.der new file mode 100644 index 00000000000000..d949efa84e6686 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_basic_ca_wrong/pai-Cert.der differ 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 00000000000000..4ec31d810e5e6a Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_basic_ca_wrong/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_ca_wrong/pai-Key.pem b/credentials/development/commissioner_dut/struct_pai_ext_basic_ca_wrong/pai-Key.pem new file mode 100644 index 00000000000000..63493664f0af7a --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_basic_ca_wrong/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIPRv7Wy/TE+jFCBMvHzczx082XwfErbWQ19mA3KbsW1ooAoGCCqGSM49 +AwEHoUQDQgAEK37DvhfGVoAwKxDPYY4khQw3JjAz90cIXN25Sl9ppofVdsaCU63k +vMHl68+wfyqJf4fzMo91S51X3brwWQjaNA== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_ca_wrong/test_case_vector.json b/credentials/development/commissioner_dut/struct_pai_ext_basic_ca_wrong/test_case_vector.json new file mode 100644 index 00000000000000..8af076712029d7 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_basic_ca_wrong/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "PAI Test Vector: Certificate Basic Constraint extension CA field is wrong (TRUE for DAC and FALSE for PAI)", + "is_success_case": "false", + "dac_cert": "308201cd30820174a003020102020857d5f4cb4aa05495300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004956ed9ea36a5d3e4fe998a4e4b79826206aef6263fd8a76637c3471b16c31a0e45228c14da24f6655bab5efa1eb82b5c9424a5f5cbcab7dceffc59f238537286a360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e041604145be358eec5fbe074f45b33d7672cd7a5e48b4204301f0603551d23041830168014b5b94ed8bf70d18829bc0a925cb9c2bef065f5af300a06082a8648ce3d0403020347003044022012c2f9237bd571f2e0df56bb4b5ccd9d42c6ced9af9d09a1a417d2c2c14cd12502202da97ff195b25d56925b866ac3d6043ce2b1533c39999c16023172d6696fb7c2", + "pai_cert": "308201ba30820161a00302010202081086181aa3f3a973300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313059301306072a8648ce3d020106082a8648ce3d030107034200042b7ec3be17c65680302b10cf618e24850c37263033f747085cddb94a5f69a687d576c68253ade4bcc1e5ebcfb07f2a897f87f3328f754b9d57ddbaf05908da34a3633061300f0603551d130101ff04053003020101300e0603551d0f0101ff040403020106301d0603551d0e04160414b5b94ed8bf70d18829bc0a925cb9c2bef065f5af301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d04030203470030440220602f49357f0b4f2125faa698a9dcde2e1626dc5a30776c0f01a07442da3f808d02200cd5f7e10141c85e2c97458476b9dc3eb458b16c5fdfce2c2c7f2311fd28696d", + "certification_declaration": "3081e906092a864886f70d010702a081db3081d8020103310d300b0609608648016503040201304506092a864886f70d010701a0380436152400012501f1ff360205008018250334122c04135a494732303134315a423333303030312d32342405002406002507769824080018317d307b020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d0403020447304502206584921c371dbbe4bc60bb87aaa25c1ad6059675b593b6d00dabdbf709fc58780221008e9f1646ca903749c70682ded90dff436d369299118d90bcfadda73333b0cd17", + "dac_private_key": "f9a3e4a4a2e97ae1828b5349a9c2b82936052d3023f021d587c8433ab9c555b8", + "dac_public_key": "04956ed9ea36a5d3e4fe998a4e4b79826206aef6263fd8a76637c3471b16c31a0e45228c14da24f6655bab5efa1eb82b5c9424a5f5cbcab7dceffc59f238537286" +} diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_critical_missing/cd.der b/credentials/development/commissioner_dut/struct_pai_ext_basic_critical_missing/cd.der new file mode 100644 index 00000000000000..06e7bdb3c5e0ee Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_basic_critical_missing/cd.der differ 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 00000000000000..c1fc2223f1f89f Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_basic_critical_missing/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_critical_missing/dac-Cert.pem b/credentials/development/commissioner_dut/struct_pai_ext_basic_critical_missing/dac-Cert.pem new file mode 100644 index 00000000000000..01b9a53663ca2e --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_basic_critical_missing/dac-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBzjCCAXSgAwIBAgIIaDUSqQx3/W0wCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +REFDMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQyBjM/zY0zbkbqWMw9+4Pd1cIBqS9r +M++ExJ5z1szvU73Gh/l/xhRPvT+jYaH52rsJPZepBpa674nuBcNuxLsWo2AwXjAM +BgNVHRMBAf8EAjAAMA4GA1UdDwEB/wQEAwIHgDAdBgNVHQ4EFgQUzeII3IyhXAeL ++vcTlAAdiU3In2MwHwYDVR0jBBgwFoAUdmj5Usd4vvcdUm2ulJWEvnSQhQswCgYI +KoZIzj0EAwIDSAAwRQIhAKETrJx4goxGkhFiGpDZ98MmGXGuhcrgeuw2AmpPqi8T +AiBJSysAjn7v4glo1lrOSTtxHDmZUN/muxELT6OGZG7ZbA== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_critical_missing/dac-Key.der b/credentials/development/commissioner_dut/struct_pai_ext_basic_critical_missing/dac-Key.der new file mode 100644 index 00000000000000..5a9a44b86ce737 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_basic_critical_missing/dac-Key.der differ 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 00000000000000..9c0ecbda27fd22 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_basic_critical_missing/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_critical_missing/pai-Cert.pem b/credentials/development/commissioner_dut/struct_pai_ext_basic_critical_missing/pai-Cert.pem new file mode 100644 index 00000000000000..f291ba4cbb36a0 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_basic_critical_missing/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBuzCCAWGgAwIBAgIIbaWCEsxobHIwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowMDEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTBZMBMGByqGSM49AgEGCCqGSM49AwEH +A0IABN6XMMRByk7gARUuUW5Nqei+x2hYKs2FQ40ZVEjw+sp6jVDLSAwCnoxGthn8 +CWp7h15mC1mQZa47GHySLrHA11yjYzBhMA8GA1UdEwQIMAYBAf8CAQEwDgYDVR0P +AQH/BAQDAgEGMB0GA1UdDgQWBBR2aPlSx3i+9x1Sba6UlYS+dJCFCzAfBgNVHSME +GDAWgBRq/SJ3H1Ef7L8WQZdnENzcMaFxfjAKBggqhkjOPQQDAgNIADBFAiB7cF8i +OxPjMUyxlNXzhE39Avi+feQGVTPa1w378vuLVgIhAPPcjZBkslymvDnXARfH/HDH +kNsdXkpU3JROwyVcuZ1w +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_critical_missing/pai-Key.der b/credentials/development/commissioner_dut/struct_pai_ext_basic_critical_missing/pai-Key.der new file mode 100644 index 00000000000000..13d2d7a9458749 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_basic_critical_missing/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_critical_missing/pai-Key.pem b/credentials/development/commissioner_dut/struct_pai_ext_basic_critical_missing/pai-Key.pem new file mode 100644 index 00000000000000..3e787ad49985c2 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_basic_critical_missing/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIB+EXpLkDA/2d2xvJ0iVpkRIOIkrIzxxDUG5BB4E5Di9oAoGCCqGSM49 +AwEHoUQDQgAE3pcwxEHKTuABFS5Rbk2p6L7HaFgqzYVDjRlUSPD6ynqNUMtIDAKe +jEa2GfwJanuHXmYLWZBlrjsYfJIuscDXXA== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_critical_missing/test_case_vector.json b/credentials/development/commissioner_dut/struct_pai_ext_basic_critical_missing/test_case_vector.json new file mode 100644 index 00000000000000..c5427fb5517e45 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_basic_critical_missing/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "PAI Test Vector: Certificate Basic Constraint extension critical field is missing", + "is_success_case": "false", + "dac_cert": "308201ce30820174a0030201020208683512a90c77fd6d300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d030107034200043206333fcd8d336e46ea58cc3dfb83ddd5c201a92f6b33ef84c49e73d6ccef53bdc687f97fc6144fbd3fa361a1f9dabb093d97a90696baef89ee05c36ec4bb16a360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e04160414cde208dc8ca15c078bfaf71394001d894dc89f63301f0603551d230418301680147668f952c778bef71d526dae949584be7490850b300a06082a8648ce3d0403020348003045022100a113ac9c78828c469211621a90d9f7c3261971ae85cae07aec36026a4faa2f130220494b2b008e7eefe20968d65ace493b711c399950dfe6bb110b4fa386646ed96c", + "pai_cert": "308201bb30820161a00302010202086da58212cc686c72300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313059301306072a8648ce3d020106082a8648ce3d03010703420004de9730c441ca4ee001152e516e4da9e8bec768582acd85438d195448f0faca7a8d50cb480c029e8c46b619fc096a7b875e660b599065ae3b187c922eb1c0d75ca3633061300f0603551d13040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e041604147668f952c778bef71d526dae949584be7490850b301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d040302034800304502207b705f223b13e3314cb194d5f3844dfd02f8be7de4065533dad70dfbf2fb8b56022100f3dc8d9064b25ca6bc39d70117c7fc70c790db1d5e4a54dc944ec3255cb99d70", + "certification_declaration": "3081e906092a864886f70d010702a081db3081d8020103310d300b0609608648016503040201304506092a864886f70d010701a0380436152400012501f1ff360205008018250334122c04135a494732303134315a423333303030312d32342405002406002507769824080018317d307b020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d0403020447304502206e8bde60fe2ecf52a55898cd43945e9903f48af1a6ca3e9202ca624573e51db2022100c5b7fd3a460b3ee9a7a2b400e260421b58bd4c5782e2b5afa7dc2bc908b66631", + "dac_private_key": "34d5030d5cd815b1ab922e2b7346c9e7d87b66593e7f440617a8b47a700c5ebb", + "dac_public_key": "043206333fcd8d336e46ea58cc3dfb83ddd5c201a92f6b33ef84c49e73d6ccef53bdc687f97fc6144fbd3fa361a1f9dabb093d97a90696baef89ee05c36ec4bb16" +} diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_critical_wrong/cd.der b/credentials/development/commissioner_dut/struct_pai_ext_basic_critical_wrong/cd.der new file mode 100644 index 00000000000000..16580e7d2d6d10 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_basic_critical_wrong/cd.der differ 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 00000000000000..605e7ac8cc8ca4 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_basic_critical_wrong/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_critical_wrong/dac-Cert.pem b/credentials/development/commissioner_dut/struct_pai_ext_basic_critical_wrong/dac-Cert.pem new file mode 100644 index 00000000000000..81cc3d9d18344f --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_basic_critical_wrong/dac-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBzjCCAXSgAwIBAgIIIvIMo+2z3JcwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +REFDMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAATIpG7SO3kXR63xxZca4fQqFqYo2F3O +FfG8Xvl/QQODseEUXPxniewCwLCIK3VR4MtSlo/Rh+mx5jpKXhGv05u2o2AwXjAM +BgNVHRMBAf8EAjAAMA4GA1UdDwEB/wQEAwIHgDAdBgNVHQ4EFgQUWjra3/hdKFJ0 +e4iZUp77iADxHYMwHwYDVR0jBBgwFoAUrKN+yHlA9c/+Btcivigzkx83JGswCgYI +KoZIzj0EAwIDSAAwRQIhAM9G54Z/jQ3PqrD/HqMTpii14uvDe1xKZNc8f9fTQr3n +AiBIoOpP7vJmb55qRUZ3PAOYQWQZMxDGOElmvMJmoaokZg== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_critical_wrong/dac-Key.der b/credentials/development/commissioner_dut/struct_pai_ext_basic_critical_wrong/dac-Key.der new file mode 100644 index 00000000000000..f65192bd07f575 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_basic_critical_wrong/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_critical_wrong/dac-Key.pem b/credentials/development/commissioner_dut/struct_pai_ext_basic_critical_wrong/dac-Key.pem new file mode 100644 index 00000000000000..b51d973b4b98ac --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_basic_critical_wrong/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIK49G26Z1TOjf49ZrpMO6AOxmrYRQ7+fPrslxszr+Hi6oAoGCCqGSM49 +AwEHoUQDQgAEyKRu0jt5F0et8cWXGuH0KhamKNhdzhXxvF75f0EDg7HhFFz8Z4ns +AsCwiCt1UeDLUpaP0YfpseY6Sl4Rr9Obtg== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_critical_wrong/pai-Cert.der b/credentials/development/commissioner_dut/struct_pai_ext_basic_critical_wrong/pai-Cert.der new file mode 100644 index 00000000000000..82090d766f191b Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_basic_critical_wrong/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_critical_wrong/pai-Cert.pem b/credentials/development/commissioner_dut/struct_pai_ext_basic_critical_wrong/pai-Cert.pem new file mode 100644 index 00000000000000..51c78615025cea --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_basic_critical_wrong/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBujCCAWGgAwIBAgIIIqgF5EvxUZQwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowMDEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTBZMBMGByqGSM49AgEGCCqGSM49AwEH +A0IABHZs39yeMo/FXFzmiygnjQkzowtIyulsjjC+VgbRF996WbkyyLtfEtyZOwSk +dw86utwzYLWqCvVmZRNzRgwsILqjYzBhMA8GA1UdEwQIMAYBAf8CAQEwDgYDVR0P +AQH/BAQDAgEGMB0GA1UdDgQWBBSso37IeUD1z/4G1yK+KDOTHzckazAfBgNVHSME +GDAWgBRq/SJ3H1Ef7L8WQZdnENzcMaFxfjAKBggqhkjOPQQDAgNHADBEAiBthVYQ +AtmywWGoKCUpzF6hIvAtDc3PqNazIaluRDCvAwIgfyYuTq4rhD4QczKUdHwl0SaN +Ilm4LQxhQwwHnDWckbA= +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_critical_wrong/pai-Key.der b/credentials/development/commissioner_dut/struct_pai_ext_basic_critical_wrong/pai-Key.der new file mode 100644 index 00000000000000..4bf2a358f2e46a Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_basic_critical_wrong/pai-Key.der differ 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 00000000000000..55013e0ec24f80 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_basic_missing/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_missing/dac-Cert.der b/credentials/development/commissioner_dut/struct_pai_ext_basic_missing/dac-Cert.der new file mode 100644 index 00000000000000..b6c6d449831623 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_basic_missing/dac-Cert.der differ 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 00000000000000..8d28d2664fde1f Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_basic_missing/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_missing/dac-Key.pem b/credentials/development/commissioner_dut/struct_pai_ext_basic_missing/dac-Key.pem new file mode 100644 index 00000000000000..b08dc2fa20cba7 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_basic_missing/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIO9S0jqLcyxp6SbUTMOuvUWO1bJa2BZKg57UOuWFp6k/oAoGCCqGSM49 +AwEHoUQDQgAEREF3Yz8cRAAVd2zguvVCHCoxiJ6d88EWVgHmVNb/kusWXIKBxSTr +9q82lofyXmMpVQQCLlWVda/6r7mHzhP04g== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_missing/pai-Cert.der b/credentials/development/commissioner_dut/struct_pai_ext_basic_missing/pai-Cert.der new file mode 100644 index 00000000000000..0d7f2f91119ce7 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_basic_missing/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_missing/pai-Cert.pem b/credentials/development/commissioner_dut/struct_pai_ext_basic_missing/pai-Cert.pem new file mode 100644 index 00000000000000..dd5ba181ae4f8e --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_basic_missing/pai-Cert.pem @@ -0,0 +1,11 @@ +-----BEGIN CERTIFICATE----- +MIIBqjCCAVCgAwIBAgIIQY6WgUoNjqEwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowMDEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTBZMBMGByqGSM49AgEGCCqGSM49AwEH +A0IABN+lpYIumC6+V5LX2R3BGscTGfKBH3ejl8yKxWBAFnAjraCWENcPIE3VffHk +f8vmeaoSb7NHyBpHAyQfWa7JOy2jUjBQMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4E +FgQUqi3oUmbUxHiaSCMmFpAyzjkexDswHwYDVR0jBBgwFoAUav0idx9RH+y/FkGX +ZxDc3DGhcX4wCgYIKoZIzj0EAwIDSAAwRQIgERugrMoPqgWeVWPA4RioIpep2WmY +rJB2/bMhOdUmUmwCIQD6ZXHiLsVkzvqZDqpn/ZGp4xXt/YRPkYMAMPbKrzGpzQ== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_missing/pai-Key.der b/credentials/development/commissioner_dut/struct_pai_ext_basic_missing/pai-Key.der new file mode 100644 index 00000000000000..64350cad328d47 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_basic_missing/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_missing/pai-Key.pem b/credentials/development/commissioner_dut/struct_pai_ext_basic_missing/pai-Key.pem new file mode 100644 index 00000000000000..96ab9815621701 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_basic_missing/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIEGpilBeZ6WoFpnB9BVo+ZfyDexR5hh2f7niNd66RhceoAoGCCqGSM49 +AwEHoUQDQgAE36Wlgi6YLr5XktfZHcEaxxMZ8oEfd6OXzIrFYEAWcCOtoJYQ1w8g +TdV98eR/y+Z5qhJvs0fIGkcDJB9Zrsk7LQ== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_missing/test_case_vector.json b/credentials/development/commissioner_dut/struct_pai_ext_basic_missing/test_case_vector.json new file mode 100644 index 00000000000000..cda45e7bb3288d --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_basic_missing/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "PAI Test Vector: Certificate doesn't include Basic Constraint extension", + "is_success_case": "false", + "dac_cert": "308201ce30820174a003020102020872a8f81c8155f8e4300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004444177633f1c440015776ce0baf5421c2a31889e9df3c1165601e654d6ff92eb165c8281c524ebf6af369687f25e63295504022e559575affaafb987ce13f4e2a360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e04160414d6ab8ddea96a051840ba5b5b7d657f266e3d14fb301f0603551d23041830168014aa2de85266d4c4789a482326169032ce391ec43b300a06082a8648ce3d0403020348003045022100faf6ca311c3208af7845b423a94a7d91517976778670a2eaf28c9c43b6f8ec2902206f29d10b41aac2b2841bfe7e954cd8633a93e90239be885e9b3920cb4248eb52", + "pai_cert": "308201aa30820150a0030201020208418e96814a0d8ea1300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313059301306072a8648ce3d020106082a8648ce3d03010703420004dfa5a5822e982ebe5792d7d91dc11ac71319f2811f77a397cc8ac56040167023ada09610d70f204dd57df1e47fcbe679aa126fb347c81a4703241f59aec93b2da3523050300e0603551d0f0101ff040403020106301d0603551d0e04160414aa2de85266d4c4789a482326169032ce391ec43b301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d04030203480030450220111ba0acca0faa059e5563c0e118a82297a9d96998ac9076fdb32139d526526c022100fa6571e22ec564cefa990eaa67fd91a9e315edfd844f91830030f6caaf31a9cd", + "certification_declaration": "3081ea06092a864886f70d010702a081dc3081d9020103310d300b0609608648016503040201304506092a864886f70d010701a0380436152400012501f1ff360205008018250334122c04135a494732303134315a423333303030312d32342405002406002507769824080018317e307c020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d04030204483046022100cbad358c3a059cfa829489d73bf821769d2f4e7c413b7f96a28c75b0922d3301022100c7c0ad2429dc0fbaaa1359e2e50ca87b7132cd6dbdf7d565e255d616be1db958", + "dac_private_key": "ef52d23a8b732c69e926d44cc3aebd458ed5b25ad8164a839ed43ae585a7a93f", + "dac_public_key": "04444177633f1c440015776ce0baf5421c2a31889e9df3c1165601e654d6ff92eb165c8281c524ebf6af369687f25e63295504022e559575affaafb987ce13f4e2" +} diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen0/cd.der b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen0/cd.der new file mode 100644 index 00000000000000..3ce3dbf7659f24 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen0/cd.der differ 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 00000000000000..bd5405e34f3638 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen0/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen0/dac-Cert.pem b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen0/dac-Cert.pem new file mode 100644 index 00000000000000..6495c4586383fb --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen0/dac-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBzTCCAXSgAwIBAgIIVyne/Lcit5QwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +REFDMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAR1V/sIJpj1ZZnENW8Z7QXaRNDgInW+ +9Rq7NNhx23s2VQoxMJbEeCgXfs/MoUcZirP8rhwmEYkZ4BVCWUE1MJjNo2AwXjAM +BgNVHRMBAf8EAjAAMA4GA1UdDwEB/wQEAwIHgDAdBgNVHQ4EFgQUcpqEo2m5WIMK +FxThMMc4FlytIOswHwYDVR0jBBgwFoAUZvfmmvLuK0sPoZXvps0ZPIf5+JQwCgYI +KoZIzj0EAwIDRwAwRAIgeW6fAwuKnaCPi7yePzjRpLo/npYbjYL9P6Ca7j/0WSwC +IBDzuElaXxDybmJMWwzVjU6lFzBtbKOJ67dT22petRyb +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen0/dac-Key.der b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen0/dac-Key.der new file mode 100644 index 00000000000000..fdc5d437c9583f Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen0/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen0/dac-Key.pem b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen0/dac-Key.pem new file mode 100644 index 00000000000000..6bd7c2cb908869 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen0/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIKNv91OZ8xnf7lKe7NjEz4qxfKEPqI/H6tNn42JltNRNoAoGCCqGSM49 +AwEHoUQDQgAEdVf7CCaY9WWZxDVvGe0F2kTQ4CJ1vvUauzTYcdt7NlUKMTCWxHgo +F37PzKFHGYqz/K4cJhGJGeAVQllBNTCYzQ== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen0/pai-Cert.der b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen0/pai-Cert.der new file mode 100644 index 00000000000000..3861ffb0a97b72 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen0/pai-Cert.der differ 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 00000000000000..bbfdcdb2dfaaf3 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen0/pai-Key.der differ 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 00000000000000..eaa2200a14548b Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen1/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen1/dac-Cert.der b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen1/dac-Cert.der new file mode 100644 index 00000000000000..fa8f5926ac5a4b Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen1/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen1/dac-Cert.pem b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen1/dac-Cert.pem new file mode 100644 index 00000000000000..db24844a85647a --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen1/dac-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBzjCCAXSgAwIBAgIIV53Lt7q6dbcwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +REFDMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAT9WGk1rie1bYL7SehWXXGOwQgPXtGx +WfL6ry1esBopbj2Z3HeiSUsnfNrESxwRlhPbkWTLlghsdAj1SJ1CSib5o2AwXjAM +BgNVHRMBAf8EAjAAMA4GA1UdDwEB/wQEAwIHgDAdBgNVHQ4EFgQUzWOTsbiGYkXX +sOX7e2YXFlwbtwIwHwYDVR0jBBgwFoAU4ybl4hTxNw6tPAyPgow9kR3f9ZMwCgYI +KoZIzj0EAwIDSAAwRQIgP2/GmzW6oXYlBAdDVCnbOt2tNdyvtyQJ3fWNQw4DfK8C +IQCcmh0NqOw6WkcsG056VsS8WK3gGPETMj2YrofdDgJYzw== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen1/dac-Key.der b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen1/dac-Key.der new file mode 100644 index 00000000000000..5fd046f5d00876 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen1/dac-Key.der differ 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 00000000000000..89c14de17c5c83 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen1/pai-Cert.der differ 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 00000000000000..aa971c0319cde8 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen1/pai-Key.der differ 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 00000000000000..9cd34316368ab8 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen2/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen2/dac-Cert.der b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen2/dac-Cert.der new file mode 100644 index 00000000000000..e53358698459b4 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen2/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen2/dac-Cert.pem b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen2/dac-Cert.pem new file mode 100644 index 00000000000000..5827c64dcae4a4 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen2/dac-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBzjCCAXSgAwIBAgIIBnC8E0BZ4vwwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +REFDMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQBlO280rkIlQXnRGWNDRE0ZI3QfbQt +x6eo++Jn5Q1lFDjEZ9LJh44emhGKC2xvr71p0fMUnEm3na8KuFOraCFKo2AwXjAM +BgNVHRMBAf8EAjAAMA4GA1UdDwEB/wQEAwIHgDAdBgNVHQ4EFgQUyjutKVH7/9EH +CeLfKMNg5eqf4BAwHwYDVR0jBBgwFoAUIKWwXLaQflD4B6osdspANiGRnH8wCgYI +KoZIzj0EAwIDSAAwRQIgBJVSv/tgXr9FA+HdO0l7TpVRidpqLBx9pi98N43ar8sC +IQCwUYY3S0gIeLTQeNWomc6HIWOqpdTyJub3t2D9upKdUw== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen2/dac-Key.der b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen2/dac-Key.der new file mode 100644 index 00000000000000..ea3ad83a9c84c9 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen2/dac-Key.der differ 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 00000000000000..bf079b4c3ae3c2 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen2/pai-Cert.der differ 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 00000000000000..d8b1ef63a1b806 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen2/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen2/pai-Key.pem b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen2/pai-Key.pem new file mode 100644 index 00000000000000..aa84e1f1601783 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen2/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIET3CAWtCuSC8d5tgz2+KeQyueMFIl1gWy9Z3o8YPyLXoAoGCCqGSM49 +AwEHoUQDQgAEjiXt+18ynjTg4G47PDtUiQdfoM2P/EED97V8BwMXUqzOu3WjvOf4 +r5JT8bMsE/OgwsXQ4XeHgcVvL0sUtQhJHA== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen2/test_case_vector.json b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen2/test_case_vector.json new file mode 100644 index 00000000000000..804349fca1ea1c --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen2/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "PAI Test Vector: Certificate Basic Constraint extension PathLen field set to 2", + "is_success_case": "false", + "dac_cert": "308201ce30820174a00302010202080670bc134059e2fc300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d030107034200040194edbcd2b9089505e744658d0d1134648dd07db42dc7a7a8fbe267e50d651438c467d2c9878e1e9a118a0b6c6fafbd69d1f3149c49b79daf0ab853ab68214aa360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e04160414ca3bad2951fbffd10709e2df28c360e5ea9fe010301f0603551d2304183016801420a5b05cb6907e50f807aa2c76ca403621919c7f300a06082a8648ce3d04030203480030450220049552bffb605ebf4503e1dd3b497b4e955189da6a2c1c7da62f7c378ddaafcb022100b05186374b480878b4d078d5a899ce872163aaa5d4f226e6f7b760fdba929d53", + "pai_cert": "308201be30820164a0030201020208324c20ae21378a95300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313059301306072a8648ce3d020106082a8648ce3d030107034200048e25edfb5f329e34e0e06e3b3c3b5489075fa0cd8ffc4103f7b57c07031752accebb75a3bce7f8af9253f1b32c13f3a0c2c5d0e1778781c56f2f4b14b508491ca366306430120603551d130101ff040830060101ff020102300e0603551d0f0101ff040403020106301d0603551d0e0416041420a5b05cb6907e50f807aa2c76ca403621919c7f301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d0403020348003045022100f6423e3a89f0cc6cf07f74193e37f136c08f7e8649b615a8b4a8085a4b5f44990220774249a480d6f7e1bca9b8fb9369adc9fd92046b598a376a01f6f32eb8220c6d", + "certification_declaration": "3081e906092a864886f70d010702a081db3081d8020103310d300b0609608648016503040201304506092a864886f70d010701a0380436152400012501f1ff360205008018250334122c04135a494732303134315a423333303030312d32342405002406002507769824080018317d307b020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d0403020447304502210081ae0531590c4006e2fc60f826643c66943e393524deecc95c3444d7799ab03502206cfc197e1cbe19dba52f37d891fc5a3266a27fc1df515f2fad27ff5455eff68c", + "dac_private_key": "13d6bafd4784f0168ad57791197054f1d8a9860f4e1f78227e6a4eaeac3f7af6", + "dac_public_key": "040194edbcd2b9089505e744658d0d1134648dd07db42dc7a7a8fbe267e50d651438c467d2c9878e1e9a118a0b6c6fafbd69d1f3149c49b79daf0ab853ab68214a" +} diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen_presence_wrong/cd.der b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen_presence_wrong/cd.der new file mode 100644 index 00000000000000..d86d14e56c66f7 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen_presence_wrong/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen_presence_wrong/dac-Cert.der b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen_presence_wrong/dac-Cert.der new file mode 100644 index 00000000000000..62ef67e4768ef1 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen_presence_wrong/dac-Cert.der differ 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 00000000000000..5092408cb41a9f Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen_presence_wrong/dac-Key.der differ 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 00000000000000..91e9c7a1b556e6 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen_presence_wrong/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen_presence_wrong/pai-Cert.pem b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen_presence_wrong/pai-Cert.pem new file mode 100644 index 00000000000000..0b9d4114c3e920 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen_presence_wrong/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBvDCCAWGgAwIBAgIICMu5+QjfTP4wCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowMDEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTBZMBMGByqGSM49AgEGCCqGSM49AwEH +A0IABFLjQZk8bvb/tJ8OkkIRT5MjCU8NfpUvoltvf3NXP2G+YHccyB5P0FPGJCVo +htmJ315fnYmd6u+T16LWUJMGGeKjYzBhMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0P +AQH/BAQDAgEGMB0GA1UdDgQWBBQJ5KvBuhwjnso0AwV8IUmFOYe4YzAfBgNVHSME +GDAWgBRq/SJ3H1Ef7L8WQZdnENzcMaFxfjAKBggqhkjOPQQDAgNJADBGAiEAl+k4 +lqiN8T3DPxYHoJPxDo09hKeFjA+k0PyLGiuBOg8CIQC/YlP/zTTdzQK48xPakgxa +fTemFGZdyy0hXwa1tTCRKw== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen_presence_wrong/pai-Key.der b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen_presence_wrong/pai-Key.der new file mode 100644 index 00000000000000..43dc5e8b6984b1 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen_presence_wrong/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen_presence_wrong/pai-Key.pem b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen_presence_wrong/pai-Key.pem new file mode 100644 index 00000000000000..cf5980b5571c72 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen_presence_wrong/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIJTUqb40S+8fhlBdyhF0HzWuLXz6B4W1dQVzx2Wtyn7qoAoGCCqGSM49 +AwEHoUQDQgAEUuNBmTxu9v+0nw6SQhFPkyMJTw1+lS+iW29/c1c/Yb5gdxzIHk/Q +U8YkJWiG2YnfXl+diZ3q75PXotZQkwYZ4g== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen_presence_wrong/test_case_vector.json b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen_presence_wrong/test_case_vector.json new file mode 100644 index 00000000000000..bab0fd7906274e --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_basic_pathlen_presence_wrong/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "PAI Test Vector: Certificate Basic Constraint extension PathLen field presence is wrong (present for DAC not present for PAI)", + "is_success_case": "false", + "dac_cert": "308201ce30820174a003020102020852266311763263e7300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004f67fb4db53ab9200b61749cde0ece156b5a6d8ef82ece1509f7abd603396189014f53a487942a8e8a774596f02313a5e0bee91a8a4ba774901dc03a0f9dd541ca360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e04160414df75e7087aa9ca1a6cc4414ee6c3a20200fca574301f0603551d2304183016801409e4abc1ba1c239eca3403057c2149853987b863300a06082a8648ce3d04030203480030450221009d79c5e7dcf8daaa30df2192733d232838a6887991d0c8445f6ba91aa78f1152022073c8f73085f23093753d0d86edb2b6b6e2c803e0c00f464e87f4cd169a44bf4e", + "pai_cert": "308201bc30820161a003020102020808cbb9f908df4cfe300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313059301306072a8648ce3d020106082a8648ce3d0301070342000452e341993c6ef6ffb49f0e9242114f9323094f0d7e952fa25b6f7f73573f61be60771cc81e4fd053c624256886d989df5e5f9d899deaef93d7a2d650930619e2a3633061300f0603551d130101ff040530030101ff300e0603551d0f0101ff040403020106301d0603551d0e0416041409e4abc1ba1c239eca3403057c2149853987b863301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d040302034900304602210097e93896a88df13dc33f1607a093f10e8d3d84a7858c0fa4d0fc8b1a2b813a0f022100bf6253ffcd34ddcd02b8f313da920c5a7d37a614665dcb2d215f06b5b530912b", + "certification_declaration": "3081e806092a864886f70d010702a081da3081d7020103310d300b0609608648016503040201304506092a864886f70d010701a0380436152400012501f1ff360205008018250334122c04135a494732303134315a423333303030312d32342405002406002507769824080018317c307a020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d0403020446304402207763a2c5dc7e83cc338192d4e0cd878a625396cf8c41cccfcede8ab6ee24638c0220605bba03643b55e86743dd8822e36b0933978a353a10fd6d860b9066f29c8de8", + "dac_private_key": "0f1a8195a25b41f8dd74dec0e31ee4362f1fb15b355d3d1bb01d9f0039578d79", + "dac_public_key": "04f67fb4db53ab9200b61749cde0ece156b5a6d8ef82ece1509f7abd603396189014f53a487942a8e8a774596f02313a5e0bee91a8a4ba774901dc03a0f9dd541c" +} diff --git a/credentials/development/commissioner_dut/struct_pai_ext_extended_key_usage_present/cd.der b/credentials/development/commissioner_dut/struct_pai_ext_extended_key_usage_present/cd.der new file mode 100644 index 00000000000000..3b7fe9c4f78b00 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_extended_key_usage_present/cd.der differ 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 00000000000000..a454952fea9c88 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_extended_key_usage_present/dac-Cert.der differ 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 00000000000000..ebe7f3a9214556 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_extended_key_usage_present/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_ext_extended_key_usage_present/dac-Key.pem b/credentials/development/commissioner_dut/struct_pai_ext_extended_key_usage_present/dac-Key.pem new file mode 100644 index 00000000000000..5bad512a41e216 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_extended_key_usage_present/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIJZKurGYnqBTshrLhHymXM8Q3jO0sXQbrByIb609KQZ8oAoGCCqGSM49 +AwEHoUQDQgAEnQCQYY7VwShpTfdCOhxmW4XoZJArP07Y3+sbpq3Pv4pU4aElWecY +h640Ksp0zcbCgwRp8U4PORenBbXUR80r2g== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_extended_key_usage_present/pai-Cert.der b/credentials/development/commissioner_dut/struct_pai_ext_extended_key_usage_present/pai-Cert.der new file mode 100644 index 00000000000000..df261c4c9e2dae Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_extended_key_usage_present/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_ext_extended_key_usage_present/pai-Cert.pem b/credentials/development/commissioner_dut/struct_pai_ext_extended_key_usage_present/pai-Cert.pem new file mode 100644 index 00000000000000..35fccbeda844be --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_extended_key_usage_present/pai-Cert.pem @@ -0,0 +1,13 @@ +-----BEGIN CERTIFICATE----- +MIIB4jCCAYigAwIBAgIIR84x4kpq6RwwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowMDEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTBZMBMGByqGSM49AgEGCCqGSM49AwEH +A0IABCTQFwdj+PWpd0YBWnMCNKDwYuiOUEhQJ8tdM/UeebXHOnsXD8nhi2zHNO2E +m3+iKBQWpbDmz1lvLzaeEYvrUuWjgYkwgYYwEgYDVR0TAQH/BAgwBgEB/wIBATAO +BgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYEFFOdYP3IjozWmMpqiNicxTSAGPA1MB8G +A1UdIwQYMBaAFGr9IncfUR/svxZBl2cQ3NwxoXF+MCAGA1UdJQEB/wQWMBQGCCsG +AQUFBwMCBggrBgEFBQcDATAKBggqhkjOPQQDAgNIADBFAiBMyPzR3e3PI/pTFGtf +dqnl6au/OzJ+jCLdhsfq9xfp4QIhAMK2Bijyi9CESCdMuc2wv+ShEK0ecdQam1z+ +zo9TmKuu +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_extended_key_usage_present/pai-Key.der b/credentials/development/commissioner_dut/struct_pai_ext_extended_key_usage_present/pai-Key.der new file mode 100644 index 00000000000000..1866ab96bd434d Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_extended_key_usage_present/pai-Key.der differ 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 00000000000000..773ed44abf832e Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_missing/cd.der differ 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 00000000000000..a59b4865e1500a Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_missing/dac-Cert.der differ 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 00000000000000..1ad6b68646477d Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_missing/dac-Key.der differ 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 00000000000000..20db1e7ea764ac Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_missing/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_missing/pai-Cert.pem b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_missing/pai-Cert.pem new file mode 100644 index 00000000000000..b1b512abe21fab --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_missing/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBujCCAWGgAwIBAgIIZqGwcjW/W+cwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowMDEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTBZMBMGByqGSM49AgEGCCqGSM49AwEH +A0IABOFwoZMtHeWni43yZGlxMvJKgKpihS6IFGtjzvC1aorJdIciSgWewP6Jd1hw +qKjHuOg94YluhFxq1Jkd94p26pSjYzBhMBIGA1UdEwEB/wQIMAYBAf8CAQEwCwYD +VR0PBAQDAgEGMB0GA1UdDgQWBBQhqQydBG974tLjaJoyzNF7QKiuhTAfBgNVHSME +GDAWgBRq/SJ3H1Ef7L8WQZdnENzcMaFxfjAKBggqhkjOPQQDAgNHADBEAiBN8SSN +00arGVkpjfLhIDWTr9BHtqnXY7OFPtbYm7krMwIgTCzHn3wpbFfVukH7+1UHFxom +w1V01FlgT8n2/raDOmA= +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_missing/pai-Key.der b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_missing/pai-Key.der new file mode 100644 index 00000000000000..dbb0b4e435fde2 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_missing/pai-Key.der differ 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 00000000000000..8c0dddaa5d19fc Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_wrong/cd.der differ 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 00000000000000..5994db23ee89dc Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_wrong/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_wrong/dac-Cert.pem b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_wrong/dac-Cert.pem new file mode 100644 index 00000000000000..a14279d72bfe3c --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_wrong/dac-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBzjCCAXSgAwIBAgIIQC25J17423QwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +REFDMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAS+OEzLV5THH0NSEUrJ6kexZGt7BpQF +MJ5ezzHHRE/RSLur9Q3FBbu2RMseJnQ19LAONS0Q052SPP7HS+4m9oMwo2AwXjAM +BgNVHRMBAf8EAjAAMA4GA1UdDwEB/wQEAwIHgDAdBgNVHQ4EFgQUknsUK88z1D4J +zuDvAwSI9OdE4gMwHwYDVR0jBBgwFoAUdAQgCo/hyQm8M3FG6hRzOgRz85swCgYI +KoZIzj0EAwIDSAAwRQIhAPbqpfyYYB0jePOto3NsRe9R5PV7tta4BSPUZfeS9Ed4 +AiB4L9vE/Brht8jx/xjoYbM29yCI4EURABDgqhNKn2kp1A== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_wrong/dac-Key.der b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_wrong/dac-Key.der new file mode 100644 index 00000000000000..366846d92a81a4 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_wrong/dac-Key.der differ 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 00000000000000..46129ac8016a9b Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_wrong/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_wrong/pai-Cert.pem b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_wrong/pai-Cert.pem new file mode 100644 index 00000000000000..91a11b068ba889 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_wrong/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBuzCCAWGgAwIBAgIIcYs6+XqkxDwwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowMDEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTBZMBMGByqGSM49AgEGCCqGSM49AwEH +A0IABPZYhoTMg+Lc/4DrM08h7vQ3N39pT7PlRh5/Lf4DpzBmGGFA/VcWzJnfm8+1 +wfZfn5ZLqPTFBxRX5i/ckZTvFyejYzBhMBIGA1UdEwEB/wQIMAYBAf8CAQEwCwYD +VR0PBAQDAgEGMB0GA1UdDgQWBBR0BCAKj+HJCbwzcUbqFHM6BHPzmzAfBgNVHSME +GDAWgBRq/SJ3H1Ef7L8WQZdnENzcMaFxfjAKBggqhkjOPQQDAgNIADBFAiBNWCY0 +f9ucU+ABI5zmBS1pBANrfvGmvGT6P1cZk37M3gIhAIn5xcg7q6SoOhMXSEixgsMf +AFyovLhkYVBusl3HrHZy +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_wrong/pai-Key.der b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_wrong/pai-Key.der new file mode 100644 index 00000000000000..9ffde342a0bf90 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_wrong/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_wrong/pai-Key.pem b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_wrong/pai-Key.pem new file mode 100644 index 00000000000000..608dca61f9b36e --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_wrong/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIIJ86hUqT1dgzamV3cPntLlClhODiuH6bC90DcJvroY2oAoGCCqGSM49 +AwEHoUQDQgAE9liGhMyD4tz/gOszTyHu9Dc3f2lPs+VGHn8t/gOnMGYYYUD9VxbM +md+bz7XB9l+flkuo9MUHFFfmL9yRlO8XJw== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_wrong/test_case_vector.json b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_wrong/test_case_vector.json new file mode 100644 index 00000000000000..a1c2e731a0eef3 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_critical_wrong/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "PAI Test Vector: Certificate Key Usage extension critical field is set as 'non-critical'", + "is_success_case": "false", + "dac_cert": "308201ce30820174a0030201020208402db9275ef8db74300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004be384ccb5794c71f4352114ac9ea47b1646b7b069405309e5ecf31c7444fd148bbabf50dc505bbb644cb1e267435f4b00e352d10d39d923cfec74bee26f68330a360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e04160414927b142bcf33d43e09cee0ef030488f4e744e203301f0603551d230418301680147404200a8fe1c909bc337146ea14733a0473f39b300a06082a8648ce3d0403020348003045022100f6eaa5fc98601d2378f3ada3736c45ef51e4f57bb6d6b80523d465f792f447780220782fdbc4fc1ae1b7c8f1ff18e861b336f72088e045110010e0aa134a9f6929d4", + "pai_cert": "308201bb30820161a0030201020208718b3af97aa4c43c300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313059301306072a8648ce3d020106082a8648ce3d03010703420004f6588684cc83e2dcff80eb334f21eef437377f694fb3e5461e7f2dfe03a73066186140fd5716cc99df9bcfb5c1f65f9f964ba8f4c5071457e62fdc9194ef1727a363306130120603551d130101ff040830060101ff020101300b0603551d0f040403020106301d0603551d0e041604147404200a8fe1c909bc337146ea14733a0473f39b301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d040302034800304502204d5826347fdb9c53e001239ce6052d6904036b7ef1a6bc64fa3f5719937eccde02210089f9c5c83baba4a83a13174848b182c31f005ca8bcb86461506eb25dc7ac7672", + "certification_declaration": "3081e806092a864886f70d010702a081da3081d7020103310d300b0609608648016503040201304506092a864886f70d010701a0380436152400012501f1ff360205008018250334122c04135a494732303134315a423333303030312d32342405002406002507769824080018317c307a020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d040302044630440220148a951b7a7a0ef8554c449f1932624f25cd1e6fa0a9cc27c644e8ee786fd0c802203220068def122abc0b6bb575d1f5d0050a31a047d730c1109d77553081c40fc9", + "dac_private_key": "fe109ca6d92240300b42a6dd7003de561c07521982f5291871ea8ca848da8c8f", + "dac_public_key": "04be384ccb5794c71f4352114ac9ea47b1646b7b069405309e5ecf31c7444fd148bbabf50dc505bbb644cb1e267435f4b00e352d10d39d923cfec74bee26f68330" +} diff --git a/credentials/development/commissioner_dut/struct_pai_ext_key_usage_crl_sign_wrong/cd.der b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_crl_sign_wrong/cd.der new file mode 100644 index 00000000000000..3355cfa042bd95 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_crl_sign_wrong/cd.der differ 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 00000000000000..9e3ae97471e915 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_crl_sign_wrong/dac-Cert.der differ 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 00000000000000..53af0454bf5bd5 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_crl_sign_wrong/dac-Key.der differ 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 00000000000000..111744fe59df96 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_crl_sign_wrong/pai-Cert.der differ 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 00000000000000..7118a2cace2638 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_crl_sign_wrong/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_ext_key_usage_crl_sign_wrong/pai-Key.pem b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_crl_sign_wrong/pai-Key.pem new file mode 100644 index 00000000000000..a7f670f90c2e79 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_crl_sign_wrong/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEINwHgaaGRVITwRaY3VQMmvS5lVGZOGkaOST7MtpEIv+xoAoGCCqGSM49 +AwEHoUQDQgAELDAgfwchRcar1b1yPMCf6MsDZLI2gTSBaRFPKeMlXS+pyCtnhL4v +mBgvnsUjTRBspsKyopMkakoBvt98Qm01tA== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_key_usage_crl_sign_wrong/test_case_vector.json b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_crl_sign_wrong/test_case_vector.json new file mode 100644 index 00000000000000..7c71851bfcb7e5 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_crl_sign_wrong/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "PAI Test Vector: Certificate Key Usage extension cRLSign field is wrong (present for DAC and not present for PAI", + "is_success_case": "false", + "dac_cert": "308201cf30820174a00302010202082c2ac16dd9ec878c300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d030107034200043b7ccb20998c9b34cad668c5083ee90e598f7ddac496206706edbc1d566aefd4848dd6e2414a3533e5cc2acab9967a17561d04d22a8df68894b0869067c2245ba360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e04160414419eb71d9591a586ddc43377dfc0f9be201bf5c3301f0603551d23041830168014c85801c55f1a2c0a9277e09eb0954c55a8868d8d300a06082a8648ce3d040302034900304602210095f9d7827b7970e314f2711cc075f63cd84e8b0e392018d56618b37f194b653b022100939aaefe276214a038dc7d72b0ffd0ef1d5d6c8e68480b43acdf16923df572d6", + "pai_cert": "308201be30820164a003020102020827425d8cc6d88d62300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313059301306072a8648ce3d020106082a8648ce3d030107034200042c30207f072145c6abd5bd723cc09fe8cb0364b23681348169114f29e3255d2fa9c82b6784be2f98182f9ec5234d106ca6c2b2a293246a4a01bedf7c426d35b4a366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020204301d0603551d0e04160414c85801c55f1a2c0a9277e09eb0954c55a8868d8d301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d0403020348003045022100e323f36d4ea4b6bc97d204f392116876625ceab9e92e0527e815929dee9af15e022004baad08bd1229ab2f0d992145645e0aec7599400b1c3ba4603133b1dfe127aa", + "certification_declaration": "3081ea06092a864886f70d010702a081dc3081d9020103310d300b0609608648016503040201304506092a864886f70d010701a0380436152400012501f1ff360205008018250334122c04135a494732303134315a423333303030312d32342405002406002507769824080018317e307c020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d04030204483046022100d4bac49329ee0571f73eba4472240f6807ab6832ccd19c22c7f794ed7f6fbf66022100b5decf57454821e4ef0b45b21b4f9362cbc8e1ecd6d580594866616e5c8d4fb9", + "dac_private_key": "628f69da64eeda8d8557f491e17a6fb0145d7123acf10287e9000c856ba58942", + "dac_public_key": "043b7ccb20998c9b34cad668c5083ee90e598f7ddac496206706edbc1d566aefd4848dd6e2414a3533e5cc2acab9967a17561d04d22a8df68894b0869067c2245b" +} diff --git a/credentials/development/commissioner_dut/struct_pai_ext_key_usage_dig_sig_wrong/cd.der b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_dig_sig_wrong/cd.der new file mode 100644 index 00000000000000..1bc404b04b8aab Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_dig_sig_wrong/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_ext_key_usage_dig_sig_wrong/dac-Cert.der b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_dig_sig_wrong/dac-Cert.der new file mode 100644 index 00000000000000..37c7aa8bd2a7cb Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_dig_sig_wrong/dac-Cert.der differ 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 00000000000000..e227ae6300b54d Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_dig_sig_wrong/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_ext_key_usage_dig_sig_wrong/dac-Key.pem b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_dig_sig_wrong/dac-Key.pem new file mode 100644 index 00000000000000..513ea6206714f9 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_dig_sig_wrong/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIFuz6gHH1rzZDnahTKi7d+5CfZkiZ3R+yLiadrJb3DIyoAoGCCqGSM49 +AwEHoUQDQgAEKeA2NCTtOQ7563Rx39RmtW6HOLd2Ejn/JGTgIIARIDugHMMO9+52 +YgZDyfGL7RmTLW4w8dDVHFooES5egCnQ+Q== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_key_usage_dig_sig_wrong/pai-Cert.der b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_dig_sig_wrong/pai-Cert.der new file mode 100644 index 00000000000000..0438f55187b8dd Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_dig_sig_wrong/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_ext_key_usage_dig_sig_wrong/pai-Cert.pem b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_dig_sig_wrong/pai-Cert.pem new file mode 100644 index 00000000000000..683ca7aa063795 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_dig_sig_wrong/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBvTCCAWSgAwIBAgIIVvqoncpgP2YwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowMDEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTBZMBMGByqGSM49AgEGCCqGSM49AwEH +A0IABDCJ5EEsKSRDAHgKSOVuv+eAeMax3W4z86G/JXBcaY33YPQwMbv+jv7S4aTQ +tMzPJ2cgS+1NPeUQW8zQZx5OLZyjZjBkMBIGA1UdEwEB/wQIMAYBAf8CAQEwDgYD +VR0PAQH/BAQDAgGGMB0GA1UdDgQWBBS560/H+YrG7+zia3r74aw8UgwWrjAfBgNV +HSMEGDAWgBRq/SJ3H1Ef7L8WQZdnENzcMaFxfjAKBggqhkjOPQQDAgNHADBEAiA+ +6ycfMRqvxEAoUU4Yhj/W9e25IpyFQrIpCfp29KgBIwIgLG10wHQiz092EqvyTGAi +vSn4I1A13IR+3Y81iViowZg= +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_key_usage_dig_sig_wrong/pai-Key.der b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_dig_sig_wrong/pai-Key.der new file mode 100644 index 00000000000000..efe4d116d6fdbc Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_dig_sig_wrong/pai-Key.der differ 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 00000000000000..235ec98e227e88 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_key_cert_sign_wrong/cd.der differ 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 00000000000000..6a600f95707418 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_key_cert_sign_wrong/dac-Cert.der differ 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 00000000000000..e7f79054c6674d Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_key_cert_sign_wrong/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_ext_key_usage_key_cert_sign_wrong/dac-Key.pem b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_key_cert_sign_wrong/dac-Key.pem new file mode 100644 index 00000000000000..a1e5d6ce80ae6e --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_key_cert_sign_wrong/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEING6qaPVHFye7GME4CSMRJcfh0pYuU2GBL+XCRvIs9QroAoGCCqGSM49 +AwEHoUQDQgAEmeXP654fMqb4S2jHyypz9rAoFBgVsHkZCx00szxxO1NaNXKhPeS1 +cLslYlu+YAror+rRjBRNom43cVGEVICt+Q== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_key_usage_key_cert_sign_wrong/pai-Cert.der b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_key_cert_sign_wrong/pai-Cert.der new file mode 100644 index 00000000000000..2898d7dbdbb989 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_key_cert_sign_wrong/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_ext_key_usage_key_cert_sign_wrong/pai-Cert.pem b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_key_cert_sign_wrong/pai-Cert.pem new file mode 100644 index 00000000000000..890d48f5611b9b --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_key_cert_sign_wrong/pai-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBvjCCAWSgAwIBAgIIA1TCahYiJUowCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowMDEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTBZMBMGByqGSM49AgEGCCqGSM49AwEH +A0IABP/iM5sBv20fMQcZAFl9OyUI57XbcSJRh/2Kamm/KrqJzrU/Z36pYfwX8FBk +Wocsc1W+81NFOrnoCRYe3HBA38CjZjBkMBIGA1UdEwEB/wQIMAYBAf8CAQEwDgYD +VR0PAQH/BAQDAgECMB0GA1UdDgQWBBSAz1tayvnXBv8LJyEFYpq6joeA/zAfBgNV +HSMEGDAWgBRq/SJ3H1Ef7L8WQZdnENzcMaFxfjAKBggqhkjOPQQDAgNIADBFAiBP +ckG/8Mfr8iq0GU1DlTbRQ5NpCdn76f/JLxdjomvHMgIhAM3PyJVGexuVVtigoHSw +p3pVZGjFvIdqKG1z9RfQ3qP7 +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_key_usage_key_cert_sign_wrong/pai-Key.der b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_key_cert_sign_wrong/pai-Key.der new file mode 100644 index 00000000000000..297dee549c2a30 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_key_cert_sign_wrong/pai-Key.der differ 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 00000000000000..52390d3d1341e7 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_missing/cd.der differ 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 00000000000000..c940c7e89a38d4 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_missing/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_ext_key_usage_missing/dac-Cert.pem b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_missing/dac-Cert.pem new file mode 100644 index 00000000000000..37440248eda50d --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_missing/dac-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBzjCCAXSgAwIBAgIIWbGRvnjHikowCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +REFDMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAARJdWuVIXEKAKNTpjUJ4Pn5wjgnKMP1 +D82d70uOne9iH33mTmzbl4TUSiEmQNzA1oGudMvmKDY99gvZhBPrL4MPo2AwXjAM +BgNVHRMBAf8EAjAAMA4GA1UdDwEB/wQEAwIHgDAdBgNVHQ4EFgQUs440MkLIsN2B +0P9Kvj5jedQ2Cu8wHwYDVR0jBBgwFoAU52xB1U0rpNCw9+lWVQ1ncAmSriYwCgYI +KoZIzj0EAwIDSAAwRQIgFQNsp2NUynSef9YlYgBiDsdI3mW0OmBDMWNxgDvDpssC +IQDsu8AZmSITPZSFXgvBR6nBbpg7p7BPetHkfMDqihEMwg== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_key_usage_missing/dac-Key.der b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_missing/dac-Key.der new file mode 100644 index 00000000000000..69b403ecff3565 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_missing/dac-Key.der differ 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 00000000000000..6fab237acd76e7 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_missing/pai-Cert.der differ 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 00000000000000..4641385277723f Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_key_usage_missing/pai-Key.der differ 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 00000000000000..a921332e0d67d9 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_skid_missing/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_ext_skid_missing/dac-Cert.der b/credentials/development/commissioner_dut/struct_pai_ext_skid_missing/dac-Cert.der new file mode 100644 index 00000000000000..84524b5f60efa0 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_skid_missing/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_ext_skid_missing/dac-Cert.pem b/credentials/development/commissioner_dut/struct_pai_ext_skid_missing/dac-Cert.pem new file mode 100644 index 00000000000000..44f6d331096daa --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_skid_missing/dac-Cert.pem @@ -0,0 +1,11 @@ +-----BEGIN CERTIFICATE----- +MIIBrDCCAVOgAwIBAgIIdJS65d0syWUwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +REFDMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAASIGdeuJxLr1SNsSTzzUjCBvyKLNlkv +k/vUs4ln1Edc9rkXLvPcndbeGhPO/BA7N42ZgxSJx0lHKUBPCfuQQ9MCoz8wPTAM +BgNVHRMBAf8EAjAAMA4GA1UdDwEB/wQEAwIHgDAdBgNVHQ4EFgQUR9C9CtE8h+zx +tcmp5HW9zNQvKmQwCgYIKoZIzj0EAwIDRwAwRAIgbO9jW7/Jq6Id+ud38PRpyfWJ +xfDrlRibH2BfnVuefqoCIFYAvZzYkP4RfPIM3YvCCHSbWx3huoRMVgNdYWfQnjUo +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_skid_missing/dac-Key.der b/credentials/development/commissioner_dut/struct_pai_ext_skid_missing/dac-Key.der new file mode 100644 index 00000000000000..3743f10be217f1 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_skid_missing/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_ext_skid_missing/dac-Key.pem b/credentials/development/commissioner_dut/struct_pai_ext_skid_missing/dac-Key.pem new file mode 100644 index 00000000000000..46a764789db441 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_skid_missing/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEILNq9lfDawglycgUcMNLMgSwmuB8s86qxR7rZgN3tqo1oAoGCCqGSM49 +AwEHoUQDQgAEiBnXricS69UjbEk881Iwgb8iizZZL5P71LOJZ9RHXPa5Fy7z3J3W +3hoTzvwQOzeNmYMUicdJRylATwn7kEPTAg== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_skid_missing/pai-Cert.der b/credentials/development/commissioner_dut/struct_pai_ext_skid_missing/pai-Cert.der new file mode 100644 index 00000000000000..51724719b5d63c Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_skid_missing/pai-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_ext_skid_missing/pai-Cert.pem b/credentials/development/commissioner_dut/struct_pai_ext_skid_missing/pai-Cert.pem new file mode 100644 index 00000000000000..d745c97305edc7 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_skid_missing/pai-Cert.pem @@ -0,0 +1,11 @@ +-----BEGIN CERTIFICATE----- +MIIBnjCCAUWgAwIBAgIIANSNX8sZpmMwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFBMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowMDEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +UEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTBZMBMGByqGSM49AgEGCCqGSM49AwEH +A0IABEUrsIIMGq5ecveW7InljKznWMydqXnfOb9gMA5ofJ3QxNpk7GEQWGkHo3Hh +jHkOsGHhNRB7lAfCd1+b1ZHaacOjRzBFMBIGA1UdEwEB/wQIMAYBAf8CAQEwDgYD +VR0PAQH/BAQDAgEGMB8GA1UdIwQYMBaAFGr9IncfUR/svxZBl2cQ3NwxoXF+MAoG +CCqGSM49BAMCA0cAMEQCIAtR+AZ0H4GQh7j1GPyZveRi1jPC3ZvxlsdZESd9QFiX +AiAbicyO/05bDrd2p3J36hwsG7JBUTpi8HI6iVzytCCRXg== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_skid_missing/pai-Key.der b/credentials/development/commissioner_dut/struct_pai_ext_skid_missing/pai-Key.der new file mode 100644 index 00000000000000..2aaf9d05cad17b Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_skid_missing/pai-Key.der differ 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 00000000000000..cdd2eab340f659 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_subject_alt_name_present/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_ext_subject_alt_name_present/dac-Cert.der b/credentials/development/commissioner_dut/struct_pai_ext_subject_alt_name_present/dac-Cert.der new file mode 100644 index 00000000000000..630e2b126ddd48 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_subject_alt_name_present/dac-Cert.der differ 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 00000000000000..94089a298f4006 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_subject_alt_name_present/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_ext_subject_alt_name_present/dac-Key.pem b/credentials/development/commissioner_dut/struct_pai_ext_subject_alt_name_present/dac-Key.pem new file mode 100644 index 00000000000000..79d94b274342de --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_subject_alt_name_present/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIMPBiiJpljNnkZztb027u+w8yqIR/tLmxl0wJ8omphbNoAoGCCqGSM49 +AwEHoUQDQgAELO5nsrI8WZpyLaOOUj/eeVmX9nE86vJrv7IMBmG/6J6vNC8XUVf7 +aRGzjb51Tw7OS1wTJnetPAuKSTRbpkllZQ== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_subject_alt_name_present/pai-Cert.der b/credentials/development/commissioner_dut/struct_pai_ext_subject_alt_name_present/pai-Cert.der new file mode 100644 index 00000000000000..6e7201c45cc1cd Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_subject_alt_name_present/pai-Cert.der differ 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 00000000000000..c967601a552c0f Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_ext_subject_alt_name_present/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_ext_subject_alt_name_present/pai-Key.pem b/credentials/development/commissioner_dut/struct_pai_ext_subject_alt_name_present/pai-Key.pem new file mode 100644 index 00000000000000..03f526acaae225 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_subject_alt_name_present/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEINHsqy5MaHYZCxMtl8dlAPJokMYb33kXbOsJTCEGevm2oAoGCCqGSM49 +AwEHoUQDQgAEJN5cFR8blDk+BGeKwh48LUXDjA+ysWYGE9Us1lcz/TmmGgGWgO74 +x26Cf0wYd/42UhWksN5DRjLsd71G/lrLRw== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_pai_ext_subject_alt_name_present/test_case_vector.json b/credentials/development/commissioner_dut/struct_pai_ext_subject_alt_name_present/test_case_vector.json new file mode 100644 index 00000000000000..c131de9443191d --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_ext_subject_alt_name_present/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "PAI Test Vector: Certificate includes optional Subject Alternative Name extension", + "is_success_case": "true", + "dac_cert": "308201cd30820174a0030201020208291f87ff0312b178300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d030107034200042cee67b2b23c599a722da38e523fde795997f6713ceaf26bbfb20c0661bfe89eaf342f175157fb6911b38dbe754f0ece4b5c132677ad3c0b8a49345ba6496565a360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e041604144be217cf201396c99489287a84b298aca3b55eb0301f0603551d2304183016801482002751e3feaaa452f4820123f3f84ecb83e35c300a06082a8648ce3d040302034700304402205d667ac88de4ff9a98fe6fc3c8de74d1fa4d47ee0203760c37a5ab9500ab5e9002204bbbf1c59a247c46424dee3551160b284231f6f89a22c75866f6eec0a5cf4028", + "pai_cert": "308201d230820179a0030201020208770101578b73369b300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313059301306072a8648ce3d020106082a8648ce3d0301070342000424de5c151f1b94393e04678ac21e3c2d45c38c0fb2b1660613d52cd65733fd39a61a019680eef8c76e827f4c1877fe365215a4b0de434632ec77bd46fe5acb47a37b307930120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e0416041482002751e3feaaa452f4820123f3f84ecb83e35c301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e30130603551d11040c300a8208746573742e636f6d300a06082a8648ce3d040302034700304402201dcb632dfd6d43f349ec38bf0b8f5d49247d47c6371a572f27d44f15fa02394e02207c1b2e9e460d4abd67f8e33e54e2e389b5a6f8e1e7490d31620cf1e137a7374c", + "certification_declaration": "3081e906092a864886f70d010702a081db3081d8020103310d300b0609608648016503040201304506092a864886f70d010701a0380436152400012501f1ff360205008018250334122c04135a494732303134315a423333303030312d32342405002406002507769824080018317d307b020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d04030204473045022100b181223f6618758a90645410bc26d1774c9bb7fb3cf2e4335bc1815966c484f6022003c0e6d692970ea45b50c8a1c781981a20b191d2ee9df3577f2af78d8171972e", + "dac_private_key": "c3c18a2269963367919ced6f4dbbbbec3ccaa211fed2e6c65d3027ca26a616cd", + "dac_public_key": "042cee67b2b23c599a722da38e523fde795997f6713ceaf26bbfb20c0661bfe89eaf342f175157fb6911b38dbe754f0ece4b5c132677ad3c0b8a49345ba6496565" +} diff --git a/credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha1/cd.der b/credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha1/cd.der new file mode 100644 index 00000000000000..b8a6a322823b31 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha1/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha1/dac-Cert.der b/credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha1/dac-Cert.der new file mode 100644 index 00000000000000..dd7061ebfb1e7a Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha1/dac-Cert.der differ 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 00000000000000..8507d351c0fadc Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha1/dac-Key.der differ 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 00000000000000..6bfd84ae0f54de Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha1/pai-Cert.der differ 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 00000000000000..e04c8442d902c1 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha1/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha1/pai-Key.pem b/credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha1/pai-Key.pem new file mode 100644 index 00000000000000..6829aa710cd997 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha1/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIPabvrJ6dnuldMhN0/htkZvVEcdxiXRgWweIvW0fjgRxoAoGCCqGSM49 +AwEHoUQDQgAEgk7r1zQNvNd3ILGegp9F2A6bSIYXee3+XP4TgCKA/8a8iQY+WfBm +h3BBc5RB6wmqJfWRsBnWcxsZkzhz0FqykQ== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha1/test_case_vector.json b/credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha1/test_case_vector.json new file mode 100644 index 00000000000000..fb9934d3ce23bf --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha1/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "PAI Test Vector: Invalid certificate signature algorithm ECDSA_WITH_SHA1", + "is_success_case": "false", + "dac_cert": "308201ce30820174a0030201020208469599b26374f7ee300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d0301070342000445b605c84d355b48f7a7d678f0d00e3c0b363794eb2cd30ab3e204c1ff7fb38d1efb7ce6e381bd1b05c1cd661cec31bcb09997b37a952c86a7ab08c4ab8b8f49a360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e0416041465c6752504c6e64d033e40f8ab8f82a77e773b31301f0603551d23041830168014148fff5a6379a6394fa758d4db34bd1196621ce0300a06082a8648ce3d0403020348003045022100fc23e0717869b40be202351688fd8c48dc96ce819e34e19036b207f4e75425380220262b3f11b281473c6adacef4dd96a7b5991c115cc14d24fcaf89981d6adbf1cb", + "pai_cert": "308201bb30820163a00302010202086fbdfbb3953a78ec300906072a8648ce3d040130303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313059301306072a8648ce3d020106082a8648ce3d03010703420004824eebd7340dbcd77720b19e829f45d80e9b48861779edfe5cfe13802280ffc6bc89063e59f066877041739441eb09aa25f591b019d6731b19933873d05ab291a366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e04160414148fff5a6379a6394fa758d4db34bd1196621ce0301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300906072a8648ce3d0401034700304402202a77d9ca0266ba61e68043786223955891797ed905c932a30262817ab899ae0502200efe52d2f500c4a672fe669d762e590341167dfd10a164c76b9cdd7f7d6ca930", + "certification_declaration": "3081ea06092a864886f70d010702a081dc3081d9020103310d300b0609608648016503040201304506092a864886f70d010701a0380436152400012501f1ff360205008018250334122c04135a494732303134315a423333303030312d32342405002406002507769824080018317e307c020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d04030204483046022100cf434b9d9a84c72038dfc44729c6a4cada8beaa1482ff1267a57e8b26e95b0c6022100e019f5be8e9a4984348442753c94ee385afb0b0995af502ee9e38a29e997075d", + "dac_private_key": "d471340fcd7573612b86b2b1f20abca4e618210e9109bf36ec2bde69d427dad4", + "dac_public_key": "0445b605c84d355b48f7a7d678f0d00e3c0b363794eb2cd30ab3e204c1ff7fb38d1efb7ce6e381bd1b05c1cd661cec31bcb09997b37a952c86a7ab08c4ab8b8f49" +} diff --git a/credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha256/cd.der b/credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha256/cd.der new file mode 100644 index 00000000000000..f09c63f325f3d4 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha256/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha256/dac-Cert.der b/credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha256/dac-Cert.der new file mode 100644 index 00000000000000..8aab46e8a26207 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha256/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha256/dac-Cert.pem b/credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha256/dac-Cert.pem new file mode 100644 index 00000000000000..87c2c274a8ee9d --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha256/dac-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBzTCCAXSgAwIBAgIIXxWbrEpShi0wCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +REFDMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAARgUxK6QRveTs6JFjAnFF3CTUsiUFQb +4nj3+V875J+CtbQ5Uls+CLQwqLfQDTnnY6WEv3WbQ8c0kqCMC7jCczaEo2AwXjAM +BgNVHRMBAf8EAjAAMA4GA1UdDwEB/wQEAwIHgDAdBgNVHQ4EFgQUNTQkF7W1zHiY +nRTCZg1RIVFQicMwHwYDVR0jBBgwFoAUXViCDgDy7NnurHUCBwdPiCl64ocwCgYI +KoZIzj0EAwIDRwAwRAIgSde644Xtd7GRWFgfpolow4MAB0P0TLXCmztmioCIF8wC +IE+ktjNM7KyxGK41xdrT1GcfcJMyvkjF7F3NB9Oa/h8t +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha256/dac-Key.der b/credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha256/dac-Key.der new file mode 100644 index 00000000000000..3ebceb5b92c5fc Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha256/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha256/dac-Key.pem b/credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha256/dac-Key.pem new file mode 100644 index 00000000000000..0c6f406cce9eb7 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha256/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIAdm/ieRr1rS42XXXbia6Wr5xESqU7ugArMnBQtGeqC1oAoGCCqGSM49 +AwEHoUQDQgAEYFMSukEb3k7OiRYwJxRdwk1LIlBUG+J49/lfO+SfgrW0OVJbPgi0 +MKi30A0552OlhL91m0PHNJKgjAu4wnM2hA== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha256/pai-Cert.der b/credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha256/pai-Cert.der new file mode 100644 index 00000000000000..b75d8cb30b5ffe Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha256/pai-Cert.der differ 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 00000000000000..7e801f752cc552 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha256/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha256/pai-Key.pem b/credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha256/pai-Key.pem new file mode 100644 index 00000000000000..3edec1c8941c58 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha256/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIGzVHc2MmjAhaAob63ROuJIY9ZOENXupevS27dYMwAvJoAoGCCqGSM49 +AwEHoUQDQgAEWfE8qh0VQV3ZV1j+yNrTvQA6MTGjWUt8OkO8dRcPU2UYcfTG57Zm +p8Tbo36pQ3OvCmA8owwehjWkvlyQVc2A3A== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha256/test_case_vector.json b/credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha256/test_case_vector.json new file mode 100644 index 00000000000000..aadd5c964fc07e --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_sig_algo_ecdsa_with_sha256/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "PAI Test Vector: Valid certificate signature algorithm ECDSA_WITH_SHA256", + "is_success_case": "true", + "dac_cert": "308201cd30820174a00302010202085f159bac4a52862d300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004605312ba411bde4ece89163027145dc24d4b2250541be278f7f95f3be49f82b5b439525b3e08b430a8b7d00d39e763a584bf759b43c73492a08c0bb8c2733684a360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e0416041435342417b5b5cc78989d14c2660d5121515089c3301f0603551d230418301680145d58820e00f2ecd9eeac750207074f88297ae287300a06082a8648ce3d0403020347003044022049d7bae385ed77b19158581fa68968c383000743f44cb5c29b3b668a808817cc02204fa4b6334cecacb118ae35c5dad3d4671f709332be48c5ec5dcd07d39afe1f2d", + "pai_cert": "308201be30820164a00302010202083b33672db3ea6d5c300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313059301306072a8648ce3d020106082a8648ce3d0301070342000459f13caa1d15415dd95758fec8dad3bd003a3131a3594b7c3a43bc75170f53651871f4c6e7b666a7c4dba37ea94373af0a603ca30c1e8635a4be5c9055cd80dca366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e041604145d58820e00f2ecd9eeac750207074f88297ae287301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d040302034800304502207578cfad0889b248ab35344e22ac26072630a01b4a6f80d0413b9cbdfb954670022100b10cad814ad576d707674f2dd24e1818a3d9cbd550bb7da43d9c9003f0cfac57", + "certification_declaration": "3081e806092a864886f70d010702a081da3081d7020103310d300b0609608648016503040201304506092a864886f70d010701a0380436152400012501f1ff360205008018250334122c04135a494732303134315a423333303030312d32342405002406002507769824080018317c307a020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d04030204463044022004c86dbcd730665a39ba1cf4ec80b1981a09ee51bb97f309d4ac9199b13b6998022040a500361ce33f370287a36f19828fc9190d226b1439aa8f407be620608581aa", + "dac_private_key": "0766fe2791af5ad2e365d75db89ae96af9c444aa53bba002b327050b467aa0b5", + "dac_public_key": "04605312ba411bde4ece89163027145dc24d4b2250541be278f7f95f3be49f82b5b439525b3e08b430a8b7d00d39e763a584bf759b43c73492a08c0bb8c2733684" +} diff --git a/credentials/development/commissioner_dut/struct_pai_sig_curve_prime256v1/cd.der b/credentials/development/commissioner_dut/struct_pai_sig_curve_prime256v1/cd.der new file mode 100644 index 00000000000000..f686a6e160c1f8 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_sig_curve_prime256v1/cd.der differ 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 00000000000000..ac6d07ba6c3fbc Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_sig_curve_prime256v1/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_sig_curve_prime256v1/dac-Cert.pem b/credentials/development/commissioner_dut/struct_pai_sig_curve_prime256v1/dac-Cert.pem new file mode 100644 index 00000000000000..95eca771d417bd --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_sig_curve_prime256v1/dac-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBzjCCAXSgAwIBAgIIOf04BW6vV8IwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +REFDMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAS4p31037SjtqAf93IgcYaY4ijUvffU +iSf4IIOHzvRArwTTH6NjMbN7kqVXe+ThNNK9L+ewvinyEiIxRTo7s8YNo2AwXjAM +BgNVHRMBAf8EAjAAMA4GA1UdDwEB/wQEAwIHgDAdBgNVHQ4EFgQUGzhAS81hT38G +SnCC9JhWftEdooYwHwYDVR0jBBgwFoAUgHJCndhbTxnc41Mv73ON+paho9kwCgYI +KoZIzj0EAwIDSAAwRQIgKy+8+WbDI+M4EFHjM9/kiuV+ABWxkXzkCimuInuznoUC +IQCt6aBMt/KENPJrRRauBKy5MdDh3FM2OsYWO/RUamqiRQ== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_pai_sig_curve_prime256v1/dac-Key.der b/credentials/development/commissioner_dut/struct_pai_sig_curve_prime256v1/dac-Key.der new file mode 100644 index 00000000000000..e1bf6daa4ea393 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_sig_curve_prime256v1/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_sig_curve_prime256v1/dac-Key.pem b/credentials/development/commissioner_dut/struct_pai_sig_curve_prime256v1/dac-Key.pem new file mode 100644 index 00000000000000..f562b29997c3fd --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_sig_curve_prime256v1/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIFSwLHyK+SWfuHghGI8VXUs8PB8o5tyPyAYcqkb7Zy5OoAoGCCqGSM49 +AwEHoUQDQgAEuKd9dN+0o7agH/dyIHGGmOIo1L331Ikn+CCDh870QK8E0x+jYzGz +e5KlV3vk4TTSvS/nsL4p8hIiMUU6O7PGDQ== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_pai_sig_curve_prime256v1/pai-Cert.der b/credentials/development/commissioner_dut/struct_pai_sig_curve_prime256v1/pai-Cert.der new file mode 100644 index 00000000000000..ad001bd3436d1f Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_sig_curve_prime256v1/pai-Cert.der differ 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 00000000000000..3597daf2bc418d Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_sig_curve_prime256v1/pai-Key.der differ 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 00000000000000..1a2a029375eb2f Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_sig_curve_secp256k1/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_sig_curve_secp256k1/dac-Cert.der b/credentials/development/commissioner_dut/struct_pai_sig_curve_secp256k1/dac-Cert.der new file mode 100644 index 00000000000000..d7032b1c6964db Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_sig_curve_secp256k1/dac-Cert.der differ 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 00000000000000..1193c098aaadb0 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_sig_curve_secp256k1/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_sig_curve_secp256k1/dac-Key.pem b/credentials/development/commissioner_dut/struct_pai_sig_curve_secp256k1/dac-Key.pem new file mode 100644 index 00000000000000..73afe22c8b0da3 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_sig_curve_secp256k1/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEICdnJAw9Rp9pNw9GlvHDQZnvJkMu6qM021syoI+NYjAdoAoGCCqGSM49 +AwEHoUQDQgAEtijVBrycwr48cpCDXHlPTS/3YxgC+u0KIkT6GNy8NCYG0KZ1cWx+ +gHurTR2RfukQWCTPGTYV2SPfwbujyEZrLA== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_pai_sig_curve_secp256k1/pai-Cert.der b/credentials/development/commissioner_dut/struct_pai_sig_curve_secp256k1/pai-Cert.der new file mode 100644 index 00000000000000..8cd27f45a8d810 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_sig_curve_secp256k1/pai-Cert.der differ 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 00000000000000..be539e7decddaf Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_sig_curve_secp256k1/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_sig_curve_secp256k1/pai-Key.pem b/credentials/development/commissioner_dut/struct_pai_sig_curve_secp256k1/pai-Key.pem new file mode 100644 index 00000000000000..e51039f408eaed --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_sig_curve_secp256k1/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHQCAQEEIKslfNmHqlLMobAa2IwmiCnC39fDlfRaUCmBs8LhsIOBoAcGBSuBBAAK +oUQDQgAESdB43KMou7mq4FnsYYnmr9c/GOPuNeUYmawhIqEo+9Jw6u2/fNHKP3Bn +f9arcsGjpK2LVOUgs7SD5aLXwuGf+Q== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_pai_sig_curve_secp256k1/test_case_vector.json b/credentials/development/commissioner_dut/struct_pai_sig_curve_secp256k1/test_case_vector.json new file mode 100644 index 00000000000000..451d759b9db567 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_sig_curve_secp256k1/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "PAI Test Vector: Invalid certificate public key curve secp256k1", + "is_success_case": "false", + "dac_cert": "308201ce30820174a00302010202083093aaa45eb2e34c300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463131143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d03010703420004b628d506bc9cc2be3c7290835c794f4d2ff7631802faed0a2244fa18dcbc342606d0a675716c7e807bab4d1d917ee9105824cf193615d923dfc1bba3c8466b2ca360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e0416041446dddd6a6b71ec92810578c1d3ce80b1fcbc218b301f0603551d23041830168014b9cad6a5239df621c3510670c16a15037256293e300a06082a8648ce3d040302034800304502200fb0ff4f18344526935548d3710b2d9619b320ce79771951a498aff2a4f9fab3022100871f1a6944346a2fe42a33a79ec5c135956c5ec272060ba963bde39071762840", + "pai_cert": "308201ba30820161a0030201020208430fcc053eb8e4bf300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646313056301006072a8648ce3d020106052b8104000a0342000449d078dca328bbb9aae059ec6189e6afd73f18e3ee35e51899ac2122a128fbd270eaedbf7cd1ca3f70677fd6ab72c1a3a4ad8b54e520b3b483e5a2d7c2e19ff9a366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e04160414b9cad6a5239df621c3510670c16a15037256293e301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d040302034700304402207f77962cbf3f3480adfcdfbee1649000fcff176d0393fefb843ba97dffe80801022019a2734e3746eca06d114c57d08c2cb612f65a222d60636e74c026763ab34f99", + "certification_declaration": "3081e906092a864886f70d010702a081db3081d8020103310d300b0609608648016503040201304506092a864886f70d010701a0380436152400012501f1ff360205008018250334122c04135a494732303134315a423333303030312d32342405002406002507769824080018317d307b020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d04030204473045022067c907ca4d5344d2288c15fa8589c7c8bda3080649bf9f7e34c28f236699d4af022100e7755f4a20e7ed726c23637ad273d24b207c20fb94d74344a368e0877b40a4a8", + "dac_private_key": "2767240c3d469f69370f4696f1c34199ef26432eeaa334db5b32a08f8d62301d", + "dac_public_key": "04b628d506bc9cc2be3c7290835c794f4d2ff7631802faed0a2244fa18dcbc342606d0a675716c7e807bab4d1d917ee9105824cf193615d923dfc1bba3c8466b2c" +} diff --git a/credentials/development/commissioner_dut/struct_pai_subject_pid_mismatch/cd.der b/credentials/development/commissioner_dut/struct_pai_subject_pid_mismatch/cd.der new file mode 100644 index 00000000000000..27f1da15567edb Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_subject_pid_mismatch/cd.der differ 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 00000000000000..016ebe730c2aae Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_subject_pid_mismatch/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_subject_pid_mismatch/dac-Cert.pem b/credentials/development/commissioner_dut/struct_pai_subject_pid_mismatch/dac-Cert.pem new file mode 100644 index 00000000000000..4846c1ff63cd06 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_subject_pid_mismatch/dac-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBzjCCAXSgAwIBAgIIAamK7x1cTdIwCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMTAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +REFDMRQwEgYKKwYBBAGConwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBDgwMDEw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAASsbpZbC99s0cVg7Wpsisa0ZTjgqL+u +1HcpY3+nqQaggtbB9P6wiF2SKZPSUrcxCNWWIVt4jkBzi7M+1aBBOJWEo2AwXjAM +BgNVHRMBAf8EAjAAMA4GA1UdDwEB/wQEAwIHgDAdBgNVHQ4EFgQU8uE3iC3hc/uF +lf1OiQJo0+k9DpswHwYDVR0jBBgwFoAU8e4rwqoEwPlrrEKVZyGTY6aAFEkwCgYI +KoZIzj0EAwIDSAAwRQIhAIio3nLqXxVUnJJpoxFla3ED3ivCe09iJI5SsOuALYXA +AiA8mw/vD7IDe/38vmwwzwEFAysv+8/oyXIVR8xfgV2QAw== +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_pai_subject_pid_mismatch/dac-Key.der b/credentials/development/commissioner_dut/struct_pai_subject_pid_mismatch/dac-Key.der new file mode 100644 index 00000000000000..cd26526f364503 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_subject_pid_mismatch/dac-Key.der differ 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 00000000000000..95e60363a7ea3b Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_subject_pid_mismatch/pai-Cert.der differ 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 00000000000000..2e7c073427b3f8 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_subject_pid_mismatch/pai-Key.der differ 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 00000000000000..955eaaa4411922 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_subject_vid_mismatch/cd.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_subject_vid_mismatch/dac-Cert.der b/credentials/development/commissioner_dut/struct_pai_subject_vid_mismatch/dac-Cert.der new file mode 100644 index 00000000000000..586e0f07bc28d3 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_subject_vid_mismatch/dac-Cert.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_subject_vid_mismatch/dac-Cert.pem b/credentials/development/commissioner_dut/struct_pai_subject_vid_mismatch/dac-Cert.pem new file mode 100644 index 00000000000000..12f624dcd22a30 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_subject_vid_mismatch/dac-Cert.pem @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBzTCCAXSgAwIBAgIIEHeVG6XB7dowCgYIKoZIzj0EAwIwMDEYMBYGA1UEAwwP +TWF0dGVyIFRlc3QgUEFJMRQwEgYKKwYBBAGConwCAQwERkZGMjAgFw0yMjA0MjAw +MDAwMDBaGA85OTk5MTIzMTIzNTk1OVowRjEYMBYGA1UEAwwPTWF0dGVyIFRlc3Qg +REFDMRQwEgYKKwYBBAGConwCAQwERkZGMjEUMBIGCisGAQQBgqJ8AgIMBDgwMDAw +WTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAASQq3l+BkwNALllfMIPih5HNElzGeb7 +rCF8HuasmvzkcxMTkgj6ddFl159DjrqQmY1GTqFkPtdAWY6EPSoksX1Co2AwXjAM +BgNVHRMBAf8EAjAAMA4GA1UdDwEB/wQEAwIHgDAdBgNVHQ4EFgQUsSmLZfAw7L2m +5ahK4LNG8YW8sgAwHwYDVR0jBBgwFoAUBU657ArGoG8nagEDRiqfaBW/omwwCgYI +KoZIzj0EAwIDRwAwRAIgH0W/6lDKIYit4IBzA36Vwvwm43EhxiemI/GWbqBt9H0C +IB60LgXIZXX1JF+j5RjeOa+Gqbpivff9eVb4kSjX0eYq +-----END CERTIFICATE----- diff --git a/credentials/development/commissioner_dut/struct_pai_subject_vid_mismatch/dac-Key.der b/credentials/development/commissioner_dut/struct_pai_subject_vid_mismatch/dac-Key.der new file mode 100644 index 00000000000000..6dbd611d1f14d3 Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_subject_vid_mismatch/dac-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_subject_vid_mismatch/dac-Key.pem b/credentials/development/commissioner_dut/struct_pai_subject_vid_mismatch/dac-Key.pem new file mode 100644 index 00000000000000..2e2e4f639d17fc --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_subject_vid_mismatch/dac-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIGoY7JZm4DMvo3JC+xIFQAn26yLOIJ2ZdGd8VQRt/Bw9oAoGCCqGSM49 +AwEHoUQDQgAEkKt5fgZMDQC5ZXzCD4oeRzRJcxnm+6whfB7mrJr85HMTE5II+nXR +ZdefQ466kJmNRk6hZD7XQFmOhD0qJLF9Qg== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_pai_subject_vid_mismatch/pai-Cert.der b/credentials/development/commissioner_dut/struct_pai_subject_vid_mismatch/pai-Cert.der new file mode 100644 index 00000000000000..0b4941fec8ae3f Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_subject_vid_mismatch/pai-Cert.der differ 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 00000000000000..0b61acbcaee36f Binary files /dev/null and b/credentials/development/commissioner_dut/struct_pai_subject_vid_mismatch/pai-Key.der differ diff --git a/credentials/development/commissioner_dut/struct_pai_subject_vid_mismatch/pai-Key.pem b/credentials/development/commissioner_dut/struct_pai_subject_vid_mismatch/pai-Key.pem new file mode 100644 index 00000000000000..289d458d1c645d --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_subject_vid_mismatch/pai-Key.pem @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIMvP12jYFcyGgPUSdW+pZ+UD8xHHHXQVxC85tOKSASz1oAoGCCqGSM49 +AwEHoUQDQgAEWtgJmJhD+sM6TVylOZhCZL8/L5IUfL86QwA0R3McsWQqJz4ACxjP +Ss7Gb6WaZ9b971azdX0reXMie3SJf6rpTg== +-----END EC PRIVATE KEY----- diff --git a/credentials/development/commissioner_dut/struct_pai_subject_vid_mismatch/test_case_vector.json b/credentials/development/commissioner_dut/struct_pai_subject_vid_mismatch/test_case_vector.json new file mode 100644 index 00000000000000..f513af1e28bd83 --- /dev/null +++ b/credentials/development/commissioner_dut/struct_pai_subject_vid_mismatch/test_case_vector.json @@ -0,0 +1,9 @@ +{ + "description": "PAI Test Vector: VID in Subject field doesn't match VID in Issuer field", + "is_success_case": "false", + "dac_cert": "308201cd30820174a00302010202081077951ba5c1edda300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646323020170d3232303432303030303030305a180f39393939313233313233353935395a30463118301606035504030c0f4d617474657220546573742044414331143012060a2b0601040182a27c02010c044646463231143012060a2b0601040182a27c02020c04383030303059301306072a8648ce3d020106082a8648ce3d0301070342000490ab797e064c0d00b9657cc20f8a1e4734497319e6fbac217c1ee6ac9afce47313139208fa75d165d79f438eba90998d464ea1643ed740598e843d2a24b17d42a360305e300c0603551d130101ff04023000300e0603551d0f0101ff040403020780301d0603551d0e04160414b1298b65f030ecbda6e5a84ae0b346f185bcb200301f0603551d23041830168014054eb9ec0ac6a06f276a0103462a9f6815bfa26c300a06082a8648ce3d040302034700304402201f45bfea50ca2188ade08073037e95c2fc26e37121c627a623f1966ea06df47d02201eb42e05c86575f5245fa3e518de39af86a9ba62bdf7fd7956f89128d7d1e62a", + "pai_cert": "308201bf30820164a003020102020826a870eb943ad22a300a06082a8648ce3d04030230303118301606035504030c0f4d617474657220546573742050414131143012060a2b0601040182a27c02010c04464646313020170d3232303432303030303030305a180f39393939313233313233353935395a30303118301606035504030c0f4d617474657220546573742050414931143012060a2b0601040182a27c02010c04464646323059301306072a8648ce3d020106082a8648ce3d030107034200045ad809989843fac33a4d5ca539984264bf3f2f92147cbf3a43003447731cb1642a273e000b18cf4acec66fa59a67d6fdef56b3757d2b7973227b74897faae94ea366306430120603551d130101ff040830060101ff020101300e0603551d0f0101ff040403020106301d0603551d0e04160414054eb9ec0ac6a06f276a0103462a9f6815bfa26c301f0603551d230418301680146afd22771f511fecbf1641976710dcdc31a1717e300a06082a8648ce3d0403020349003046022100859859cd5685eec9f691e3d6798d76243175621c87258eb64997d01cdad2b4ed022100c804fa245599caaaa8c216323ced7b52f0eb1fac643a98de42a9ae45c08ce20f", + "certification_declaration": "3081e806092a864886f70d010702a081da3081d7020103310d300b0609608648016503040201304506092a864886f70d010701a0380436152400012501f2ff360205008018250334122c04135a494732303134315a423333303030312d32342405002406002507769824080018317c307a020103801462fa823359acfaa9963e1cfa140addf504f37160300b0609608648016503040201300a06082a8648ce3d04030204463044022062c35173cf1e5de1cc0d1628638a6328d51d3515fc9a864307b31cce4b154c550220782b47e6aef81ad40acd0c3baa9cc0684a5a65098e085d080992ac1f90e92a10", + "dac_private_key": "6a18ec9666e0332fa37242fb12054009f6eb22ce209d9974677c55046dfc1c3d", + "dac_public_key": "0490ab797e064c0d00b9657cc20f8a1e4734497319e6fbac217c1ee6ac9afce47313139208fa75d165d79f438eba90998d464ea1643ed740598e843d2a24b17d42" +} diff --git a/src/tools/chip-cert/CertUtils.cpp b/src/tools/chip-cert/CertUtils.cpp index 59bac7fa7ad911..60a44544385070 100644 --- a/src/tools/chip-cert/CertUtils.cpp +++ b/src/tools/chip-cert/CertUtils.cpp @@ -749,9 +749,11 @@ bool ResignCert(X509 * cert, X509 * caCert, EVP_PKEY * caKey) 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) { - bool res = true; + bool res = true; + uint16_t vid = certConfig.IsSubjectVIDMismatch() ? static_cast(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())