Prerequisites
You applied for an ACK project and Amazon assigned an ACK support engineer to your project. You installed the Matter tools in your development environment. For more details, see Build Matter tools.Steps to generate certificates
Complete the following steps to generate testing certificates used to join a Matter network.- Generate a PAI certificate.
- Generate a certification declaration.
- Create the provisioning file.
- Provision the device with Matter credentials.
Step 1: Generate a PAI certificate
In this step, you generate a PAI certificate and private key by using the Product Attestation Authority (PAA) root certificate that comes with the SDK. The PAI is an X.509 v3 intermediate certificate used to sign the device attestation certificate (DAC) used in commissioning. For prototype devices, you store the PAI in the Amazon Web Services (AWS) IoT cloud. For production devices, you use a hardware security module (HSM) to generate a PAI from the Amazon PAA root certificate. To generate a PAI certificate and private key- In an Ubuntu VM terminal window, navigate to the
Cyprus-SDK/toolsdirectory. - To generate the certificate, at the command prompt, enter the following command.
Set Matter Device Type ID to0x010Cwhich represents the device type ID for a Color Temperature Light.
- If you receive the following error, update your python cryptography module, and then repeat Step 2.
- For prototype products, you register the PAI certificate with AWS IoT. Please contact your ACK support engineer and provide the device type and
pai.pemfile. This step is required for prototype products.
Step 2: Generate a certification declaration
In this step, you generate a Matter certification declaration (CD) for testing purposes. A CD is a digital document issued by the Connectivity Standards Alliance (CSA) that confirms a smart home device complies with Matter protocol standards. After your product receives CSA certification, the CSA generates a CD for your production product. You embed this document in the device firmware to verify device authenticity. For more examples, see gen-test-cds on GitHub. To generate a CD for testing- In a terminal window, navigate to the Matter tools directory.
You defined the directory name when you installed Matter tools. - At the command prompt, enter the following command.
- To verify that the command succeeded, you should see the following generated CD file in the current directory.
- In a convenient place, such as Notepad on Windows or TextEdit on Mac, paste the directory path and CD file name.
Step 3: Create the provisioning file
To provision your device, create a provisioning configuration file that contains Matter and Frustration-Free Setup (FFS) data. To create the provisioning file- Create a file called
ProvisioningInfo_<device_type>.conf. - Copy the following key-value pairs, and then paste them into the file. Leave a single space following the key.
The example contains the prototype values for Matter VID and PID.
-
To get the
amazon_device_type_id,apid, andauth_material_public_keyvalues, sign in to the Frustration-Free Setup console with your Amazon developer account - Navigate to Frustration-Free Setup > Products, and then, under Your FFS Products, choose your product.
-
Under FFS Product Details, copy and paste the following values to the
ProvisioningInfo_<device_type>.conffile.- Under Device Type ID, copy the ID, and then paste after
amazon_device_type_id. - Under Advertised Product Id, copy the ID, and then paste after
apid. - Under Device Cryptographic Material, to view the key, select Show.
You might have to log in again with your Amazon developer account. - Copy the key without the
BEGINheader andENDfooter, and then paste afterauth_material_public_key.
For example, if you see the following key information:
-----BEGIN PUBLIC KEY----- MABCDEF...XYZ -----END PUBLIC KEY-----
auth_material_public_key MABCDEF...XYZ - Under Device Type ID, copy the ID, and then paste after
- To provision production devices, update the file with your CSA-issued Matter VID and PID.
- Save and close the file.
Step 4: Provision the device with Matter credentials
In this step, you provision the device into a Matter commission-ready state by using ACK SDK for Matter tools. You can provision the device using one of the following methods:- Local file-based provisioning – A provisioning method used to test prototype products. This method requires the Matter PAI certificate and key files generated in Step 1.
- Client-server provisioning – A provisioning method used for production products. This method requires a YubiHSM from Amazon.
Local provisioning for prototype products
Provisioning generates a new DSN and then writes the certificates and DSN to the development kit. This step uses local provisioning, appropriate to prototype products only. Before you start, make sure that you installed theACK_SDK_Tools-matter package. For more details, see Install ACK SDK tools.
To provision the device locally
-
Connect your host machine to the development kit.
For details, see Connect your host machine to the development kit. -
In a terminal window, navigate to the
Cyprus-SDKdirectory. -
At the command prompt, enter the following command.
- Set
<port>to the serial port, such as/dev/ttyUSB0on Ubuntu,/dev/cu.usbserial-USB0on Mac, orCOM9on Windows.
- Set
- To verify that the command succeeded, you should see the following response.

