Prerequisites
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 and provision testing certificates used to join a Matter network.- Generate a PAI certificate.
- Generate a certification declaration.
- Create the provisioning configuration file.
- Provision the device with Matter credentials.
Step 2.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 DAC during provisioning. For prototype devices, you store the PAI in the Amazon Web Services (AWS) IoT cloud. 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.2: Generate a certification declaration
In this step, you generate a test Certification Declaration (CD) for the smart light. The generation process uses a test certificate and private key from the Matter SDK to sign the CD. You embed the CD in the device firmware during provisioning. 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 2.3: Create the provisioning configuration file
To provision your device, create a provisioning configuration file that contains Matter and Frustration-Free Setup (FFS) data. To create the provisioning file- Navigate to the
Cyprus-SDK\smartlight-mtr-appdirectory. - Create a file called
ProvisioningInfo_color_light.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 Vendor and Product IDs.
-
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 Matter Color Light.
-
Under FFS Product Details, copy and paste the following values to the
ProvisioningInfo_color_light.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:Set the value as:
auth_material_public_key MABCDEF...XYZ
-
Under Device Type ID, copy the ID, and then paste after
- Save and close the file.
Step 2.4: Provision the device with Matter credentials
In this step, you provision the device into a Matter commission-ready state. Provisioning generates a device attestation certificate (DAC) and a new device serial number (DSN), and then writes these, along with the CD, to the development kit. This step uses local provisioning which is appropriate for 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.

