project-chip / connectedhomeip

Matter (formerly Project CHIP) creates more connections between more objects, simplifying development for manufacturers and increasing compatibility for consumers, guided by the Connectivity Standards Alliance.
https://buildwithmatter.com
Apache License 2.0
7.34k stars 1.97k forks source link

[BUG] Matter Google SDK says Not a Matter-certified device - Apple works GOOD #25743

Open dhdanh opened 1 year ago

dhdanh commented 1 year ago

Reproduction steps

Steps

  1. Build the FW with Matter cert test VID - 0xFFF1 (This is Matter default value)
  2. The Google Home app able to Commission the device successfully
  3. Build the FW with my company VID - 0xFAKEVALUE (I am not sharing the real value here for security consideration)
  4. The Google Home app says error "Not a Matter-certified device"
  5. The Apple Home app is able to commission the device successfully
  6. How do I build the FW with the company VID - 0xFAKEVALUE? Please see below

In order to use vendor VID/PID instead of standard SDK (0xFFF1/0x8001) we need to replace chip::Credentials::Examples::ExampleDACProvider with our own implementation

This means we need to create our own certificates (PAA/PAI/DAC) and CD

PAA/PAI/DAC - https://github.com/project-chip/connectedhomeip/blob/72f0471509f9bcba783940055975bd438b7d6e68/credentials/test/gen-test-attestation-certs.sh

CD - https://github.com/project-chip/connectedhomeip/blob/master/credentials/test/gen-test-cds.sh

CD should be signed with connectedhomeip/credentials/test/certification-declaration/Chip-Test-CD-Signing-Key.pem

Bug prevalence

all the time

GitHub hash of the SDK that was being used

c1810b6d95cb2a946fc0ba71c6e63e88b15554cd

Platform

esp32

Platform Version(s)

No response

Anything else?

No response

hare-siterwell commented 1 year ago

https://developers.home.google.com/matter/integration/create?hl=en

bzbarsky-apple commented 1 year ago

CD should be signed with connectedhomeip/credentials/test/certification-declaration/Chip-Test-CD-Signing-Key.pem

That might not be trusted by Google Home as a CD signing key. The in-SDK CD for VID=0xFFF1 is signed by an official CSA key, not the test key, which is why Google Home accepts that.

But fundamentally, this is an issue to file on Google Home, not the Matter SDK....

Spacefish commented 1 year ago

I don't get it why they would artificially limit their Matter Platform to certified devices. I mean, isn't having the most versatile / most supported devices in your platform the name of the game / the thing that gets your platform adopted?

stale[bot] commented 11 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.