1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/*
*
* Copyright (c) 2026 Project CHIP Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
//! Test PAA (Product Attestation Authority) certificates for development/testing.
//!
//! These are the test certificates from the C++ SDK:
//! `connectedhomeip/credentials/development/paa-root-certs/`
//!
//! Two PAAs are provided:
//! - `TEST_PAA_FFF1_CERT`: Vendor-scoped PAA for test vendor 0xFFF1
//! - `TEST_PAA_NOVID_CERT`: Non-vendor-scoped PAA (no Vendor ID)
/// DER-encoded test PAA certificate for vendor 0xFFF1 (449 bytes).
///
/// Subject: CN=Matter Test PAA, VID=FFF1
/// SKID: 6A:FD:22:77:1F:51:1F:EC:BF:16:41:97:67:10:DC:DC:31:A1:71:7E
///
/// Source: connectedhomeip/credentials/development/paa-root-certs/Chip-Test-PAA-FFF1-Cert.der
pub const TEST_PAA_FFF1_CERT: & = include_bytes!;
/// Expected SKID for TEST_PAA_FFF1_CERT.
pub const TEST_PAA_FFF1_SKID: KeyId = ;
/// DER-encoded test PAA certificate with no Vendor ID (405 bytes).
///
/// Subject: CN=Matter Test PAA
/// SKID: 78:5C:E7:05:B8:6B:8F:4E:6F:C7:93:AA:60:CB:43:EA:69:68:82:D5
///
/// Source: connectedhomeip/credentials/development/paa-root-certs/Chip-Test-PAA-NoVID-Cert.der
pub const TEST_PAA_NOVID_CERT: & = include_bytes!;
/// Expected SKID for TEST_PAA_NOVID_CERT.
pub const TEST_PAA_NOVID_SKID: KeyId = ;
/// Test trust store containing both test PAAs.
///
/// Use this for development and testing. For production, use
/// [`FileAttestationTrustStore::from_directory`](super::trust_store::FileAttestationTrustStore::from_directory)
/// (std) or a `&[&[u8]]` slice with real PAA certificates.
pub const TEST_PAA_STORE: & = &;