<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Failed to commission the Matter device using official credentials.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/120763/failed-to-commission-the-matter-device-using-official-credentials</link><description>I have already written the factory data to the device, and commissioning via Apple TV is successful. 
 It also works when using the --bypass-attestation-verifier 1 parameter on a Raspberry Pi. 
 However, it fails when using the --paa-trust-store-path</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 30 Apr 2025 02:53:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/120763/failed-to-commission-the-matter-device-using-official-credentials" /><item><title>RE: Failed to commission the Matter device using official credentials.</title><link>https://devzone.nordicsemi.com/thread/533486?ContentTypeID=1</link><pubDate>Wed, 30 Apr 2025 02:53:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88465fe6-2fc0-447b-8161-843ce50839d1</guid><dc:creator>SunHuang</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It works, thanks for the info&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to commission the Matter device using official credentials.</title><link>https://devzone.nordicsemi.com/thread/533402?ContentTypeID=1</link><pubDate>Tue, 29 Apr 2025 12:47:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72f65760-34f0-4c85-929e-47de3eb2ccb0</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="AHaug"]If you dont have&amp;nbsp;&lt;span&gt;--include_passcode when generating the factory data, then the passcode won&amp;#39;t be written to the device. Meaning that you either have to ommitt --passcode in the factory data (it is optional and you can use spake2_verifier instead), or you will have to build with&amp;nbsp;&lt;em&gt;--include_passcode&lt;/em&gt; instead. The latter should generate a qr code that matches the uart as well.&lt;/span&gt;[/quote]
&lt;p&gt;The above section refers to the arguments you call the python script with&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to commission the Matter device using official credentials.</title><link>https://devzone.nordicsemi.com/thread/533328?ContentTypeID=1</link><pubDate>Tue, 29 Apr 2025 08:54:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1349463f-01ba-4f7a-9641-b343ccc1f5e8</guid><dc:creator>SunHuang</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Do you mean setting the passcode in &lt;code data-start="49" data-end="59"&gt;prj.conf&lt;/code&gt;, and then not using the &lt;code data-start="84" data-end="96"&gt;--passcode&lt;/code&gt; option when generating the factory data with &lt;code data-start="142" data-end="184"&gt;generate_nrfconnect_chip_factory_data.py&lt;/code&gt;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to commission the Matter device using official credentials.</title><link>https://devzone.nordicsemi.com/thread/533017?ContentTypeID=1</link><pubDate>Fri, 25 Apr 2025 12:58:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8bae908-3a32-41e9-8a54-33a1ef5c3cde</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Great, then we&amp;#39;re progressing a bit.&lt;/p&gt;
&lt;p&gt;W.r.t the second issue you see:&lt;/p&gt;
[quote user="SunHuang"]&lt;p&gt;owever, I discovered another issue: when I generate the factory data using &amp;quot;&lt;code&gt;generate_nrfconnect_chip_factory_data.py&amp;quot;&lt;/code&gt;, the resulting QR code(build.txt) is different from the UART log.&lt;/p&gt;
&lt;p&gt;Only when I configure it through&amp;nbsp;&lt;code&gt;prj.conf(CONFIG_CHIP_DEVICE_VENDOR_ID,CONFIG_CHIP_DEVICE_PRODUCT_ID,CONFIG_CHIP_DEVICE_DISCRIMINATOR,CONFIG_CHIP_DEVICE_SPAKE2_PASSCODE)&lt;/code&gt; does the UART log match the &lt;code&gt;build.txt&lt;/code&gt;.&lt;/p&gt;[/quote]
&lt;p&gt;A colleague of mine had some thoughts w.r.t this and were able to reproduce the issue and find a solution that worked for them to generate matching QR codes.&lt;/p&gt;
&lt;p&gt;If you dont have&amp;nbsp;&lt;span&gt;--include_passcode when generating the factory data, then the passcode won&amp;#39;t be written to the device. Meaning that you either have to ommitt --passcode in the factory data (it is optional and you can use spake2_verifier instead), or you will have to build with&amp;nbsp;&lt;em&gt;--include_passcode&lt;/em&gt; instead. The latter should generate a qr code that matches the uart as well.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If that does not work, then you can also use&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;./chip-tool payload generate-qrcode [--existing-payload] [--discriminator] [--setup-pin-code] [--version] [--vendor-id] [--product-id] [--commissioning-mode] [--allow-invalid-payload] [--rendezvous] [--tlvBytes], for instance as&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;span&gt;./chip-tool payload generate-qrcode --discriminator 1234 --setup-pin-code 13243546 --vendor-id 0x123 --product-id 0x123&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;and then attach the resulting QR code URL at the end of this url&amp;nbsp;&lt;a href="https://project-chip.github.io/connectedhomeip/qrcode.html?data="&gt;https://project-chip.github.io/connectedhomeip/qrcode.html?data=&lt;/a&gt;, which will result in&amp;nbsp;&lt;a href="https://project-chip.github.io/connectedhomeip/qrcode.html?data=MT:GWQS0POG02A48B1OA00"&gt;https://project-chip.github.io/connectedhomeip/qrcode.html?data=MT:GWQS0POG02A48B1OA00&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The last suggestion requires some manual work, so I hope the first suggestion with&amp;nbsp;&lt;em&gt;--include_passcode&lt;/em&gt; works for you.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to commission the Matter device using official credentials.</title><link>https://devzone.nordicsemi.com/thread/532730?ContentTypeID=1</link><pubDate>Thu, 24 Apr 2025 06:45:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37039011-536a-4a5c-a5f8-b2bdf451e9a3</guid><dc:creator>SunHuang</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Yes, your assumption is correct. I did not write the CD into the device.&lt;/p&gt;
&lt;p&gt;However, I discovered another issue: when I generate the factory data using &amp;quot;&lt;code data-start="206" data-end="248"&gt;generate_nrfconnect_chip_factory_data.py&amp;quot;&lt;/code&gt;, the resulting QR code(build.txt) is different from the UART log.&lt;/p&gt;
&lt;p&gt;Only when I configure it through&amp;nbsp;&lt;code data-start="337" data-end="347"&gt;prj.conf(CONFIG_CHIP_DEVICE_VENDOR_ID,CONFIG_CHIP_DEVICE_PRODUCT_ID,CONFIG_CHIP_DEVICE_DISCRIMINATOR,CONFIG_CHIP_DEVICE_SPAKE2_PASSCODE)&lt;/code&gt; does the UART log match the &lt;code data-start="376" data-end="387"&gt;build.txt&lt;/code&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to commission the Matter device using official credentials.</title><link>https://devzone.nordicsemi.com/thread/532629?ContentTypeID=1</link><pubDate>Wed, 23 Apr 2025 14:05:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05ab2202-54cd-48ec-bcb8-788a720441dd</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Apologies for the delayed response, we&amp;#39;ve been out of office due to Easter.&lt;/p&gt;
[quote user="SunHuang"]Is the &amp;quot;&lt;code&gt;--paa-trust-store-path&amp;quot;&lt;/code&gt;&lt;code&gt;&lt;/code&gt; parameter only supposed to include &lt;code&gt;PAA.der&lt;/code&gt;, or does it also need &lt;code&gt;CD.der&lt;/code&gt;?[/quote]
&lt;p&gt;This should be the path to the directory itself, i.e from the docs:&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/matter/chip_tool_guide.html#attestation-related_flags"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/matter/chip_tool_guide.html#attestation-related_flags&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;code&gt;--paa-trust-store-path&lt;/code&gt; - Use to provide the path to the directory that contains the information about Product Attestation Authority (PAA) certificates. The path can be absolute or relative to the current working directory. With this flag, the CHIP Tool looks for the PAA certificate that matches the PAI and the DAC certificates programmed on the device. Without this flag, the CHIP Tool uses the built-in test PAA certificate.&lt;/em&gt;&lt;/p&gt;
[quote user="SunHuang"]Am I doing something wrong?[/quote]
&lt;p&gt;It could be that you&amp;#39;re overwiting some certificate when you program the factory data, or that you&amp;#39;re missing to program the CD to the device. Could you refer to&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/protocols/matter/end_product/configuring_cd.html"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/protocols/matter/end_product/configuring_cd.html&lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to commission the Matter device using official credentials.</title><link>https://devzone.nordicsemi.com/thread/532207?ContentTypeID=1</link><pubDate>Mon, 21 Apr 2025 08:48:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9681bdee-e493-4249-8eec-e009419075ef</guid><dc:creator>SunHuang</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Has there been any progress?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to commission the Matter device using official credentials.</title><link>https://devzone.nordicsemi.com/thread/532155?ContentTypeID=1</link><pubDate>Fri, 18 Apr 2025 04:43:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c879198-92fb-4c7d-b797-d7e3a373658b</guid><dc:creator>SunHuang</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I have tried using the default vendorID(0xFFF1) and was able to successfully debug it using &amp;quot;--paa-trust-store-path&amp;quot;.&lt;/p&gt;
&lt;p&gt;Therefore, I believe there might be some errors in the factory data.&lt;/p&gt;
&lt;p&gt;In my &lt;code data-start="236" data-end="246"&gt;prj.conf&lt;/code&gt;, I have set &lt;code data-start="259" data-end="287"&gt;CONFIG_CHIP_FACTORY_DATA=y&lt;/code&gt; and &lt;code data-start="292" data-end="326"&gt;CONFIG_CHIP_FACTORY_DATA_BUILD=n&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;In my &lt;code data-start="334" data-end="349"&gt;sysbuild.conf&lt;/code&gt;, I have set&amp;nbsp; SB_CONFIG_MATTER_FACTORY_DATA_GENERATE=n.&lt;/p&gt;
&lt;p&gt;Finally, I updated my factory data through command &amp;quot;&lt;code class="code-line" dir="auto" data-line="397"&gt;nrfjprog -f nrf53 --program&lt;/code&gt;&amp;quot;.&lt;/p&gt;
&lt;p&gt;Am I doing something wrong?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to commission the Matter device using official credentials.</title><link>https://devzone.nordicsemi.com/thread/532106?ContentTypeID=1</link><pubDate>Thu, 17 Apr 2025 07:40:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c17d3312-08b0-4e06-886e-bc2187ca1306</guid><dc:creator>SunHuang</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;My version is 2.9.0. According to the logs, the VendorID being used is 0xFFF1.&lt;br data-start="129" data-end="132" /&gt; Is the &amp;quot;&lt;code data-start="139" data-end="163"&gt;--paa-trust-store-path&amp;quot;&lt;/code&gt;&lt;code data-start="139" data-end="163"&gt;&lt;/code&gt; parameter only supposed to include &lt;code data-start="199" data-end="208"&gt;PAA.der&lt;/code&gt;, or does it also need &lt;code data-start="231" data-end="239" data-is-only-node=""&gt;CD.der&lt;/code&gt;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to commission the Matter device using official credentials.</title><link>https://devzone.nordicsemi.com/thread/532053?ContentTypeID=1</link><pubDate>Wed, 16 Apr 2025 15:24:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:286ad4e9-39c9-45a7-b6fc-810f9e7cb915</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I will look into the logs, but in the meanwhile, could you let me know about what SDK version you&amp;#39;re working with?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>