-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Darwin: Try to use our own certificates failed during GenerateNOCChain - no nocSigner #26240
Comments
@robinmo You're using the init method meant to be used for the "This controller will not have a way to sign its own certificates" case, which is why it requires you to provide the controller's certificates. If you then use this controller to commission things, it will not be able to sign a NOC for the commissionee itself, since it has no way to sign certificates. I will adjust the documentation to make this clearer. You have two options here:
|
👍Many thanks, @bzbarsky-apple By the way, as the old day you mentation here we try to use CHIP matter framework below 15.4, and change some code, it can commission sucess. I am a litter curious about what is the demand of this limitation of 15.4 ? |
@robinmo I don't know how to answer that question without knowing exactly what "change some code" entailed. |
Wait a moment. I am clone this repo on my personal mac. If done, I will show the code changed. |
@bzbarsky-apple |
@bzbarsky-apple |
OK, but how are you starting your controllers there, etc? |
@bzbarsky-apple same as the sample code |
So you are saying that:
If that's not what you are saying, then what exactly are you saying? |
@bzbarsky-apple |
@robinmo I don't see how that's physically possible. Commissioning involved handing out an operational certificate, and a controller initialized as above has no way to do that... |
Maybe it's not the right way, however it make sense and works well. (For controller to control and even open commission Windows)So after Labor holiday I could create a sample app reconstruted with chip and pull the real code to make it more clearly
… On Apr 27, 2023, at 02:21, Boris Zbarsky ***@***.***> wrote:
@robinmo I don't see how that's physically possible. Commissioning involved handing out an operational certificate, and a controller initialized as above has no way to do that...
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.
|
nocstartup params |
@robinmo That's the same screenshot twice, and apart from showing that you're using the same key for the root and icac (?) I'm not sure what it's supposed to show. I'm also not sure why you're attaching code screenshots instead of just attaching text files.... |
@bzbarsky-apple As the doc
We just want to make our certificates(RAC, ICAC, NOC) in matter ecosystem. |
@bzbarsky-apple
for TAUDeviceControllerStartupParams
|
I had commented here, but that comment seems to be missing... this bit:
|
@bzbarsky-apple |
See #26240 (comment)
Things stop working. You need to update the NOC before then. See also #26403 |
The certificate properties on the startup params are writable. You init the startup params (which only requires the smallest set of values that might be needed to get proper functioning), then you can set those certificate properties to whatever you want. If you set them in a way that is not compatible with the I did clearly say "You can then still provide explicit certificates if you want to, by just setting the relevant fields of the startup params." above, no?
Well, if by "unpair" you mean "remove my fabric from the device", then yes: you get the fabric index the device is using for your fabric and then you RemoveFabric that index. |
Got it. Sorry for ignoring that and many thanks for your reply👍 |
Reproduction steps
During commissioning process we create MTRDeviceControllerStartupParams through method
failed with the log
Read the source code and found:
in the init function implementation, forget to set the value for _nocSigner
we try to fix this by add the follow code and it works
Could you please help to fix this issue?
Bug prevalence
Whenever I do this
GitHub hash of the SDK that was being used
9c0ca13 - Fix Linux standalone job. (#23897)
Platform
darwin
Platform Version(s)
iOS 16.2
Anything else?
No response
The text was updated successfully, but these errors were encountered: