Skip to content
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] How can i sign noc bymyself to finish commissioning #29615

Closed
freemanspace opened this issue Oct 6, 2023 · 1 comment
Closed

[BUG] How can i sign noc bymyself to finish commissioning #29615

freemanspace opened this issue Oct 6, 2023 · 1 comment
Labels
bug Something isn't working needs triage

Comments

@freemanspace
Copy link

Reproduction steps

i use chiptool-Android-master project to do this
i want sign noc by myself ,so i set NOCChainIssuer to do this
but don't work,
please help!

code as below=======================================

deviceController.setNOCChainIssuer { csrInfo, attestationInfo ->
var controllerParams = ControllerParams.newBuilder()
.setControllerVendorId(deviceInfo.vendorId)
.setRootCertificate(byteArrayOf(rootCertificate))
.setIntermediateCertificate(byteArrayOf(intermediateCertificate))
.setOperationalCertificate(byteArrayOf(operationalCertificate))
.setIpk(byteArrayOf(opk))
.build()
Log.d(TAG,"finish init controllerParams")
Log.d(TAG,"start onNOCChainGeneration")
deviceController.onNOCChainGeneration(controllerParams) <----it will lock no log to print
Log.d(TAG,"end onNOCChainGeneration")
}

log as below=============================================
2023-10-06 15:04:48.563 7989-8012 CTL com.google.chip.chiptool D Received certificate signing request from the device
2023-10-06 15:04:48.564 7989-8012 CTL com.google.chip.chiptool D Successfully finished commissioning step 'SendOpCertSigningRequest'
2023-10-06 15:04:48.564 7989-8012 CTL com.google.chip.chiptool D Commissioning stage next step: 'SendOpCertSigningRequest' -> 'ValidateCSR'
2023-10-06 15:04:48.564 7989-8012 CTL com.google.chip.chiptool D Performing next commissioning step 'ValidateCSR'
2023-10-06 15:04:48.618 7989-8012 CTL com.google.chip.chiptool D Successfully finished commissioning step 'ValidateCSR'
2023-10-06 15:04:48.618 7989-8012 CTL com.google.chip.chiptool D Commissioning stage next step: 'ValidateCSR' -> 'GenerateNOCChain'
2023-10-06 15:04:48.618 7989-8012 CTL com.google.chip.chiptool D Performing next commissioning step 'GenerateNOCChain'
2023-10-06 15:04:48.618 7989-8012 CTL com.google.chip.chiptool D Getting certificate chain for the device from the issuer
2023-10-06 15:04:48.618 7989-8012 CTL com.google.chip.chiptool D Parsing Certificate Signing Request
2023-10-06 15:04:48.642 7989-8012 TOO com.google.chip.chiptool D VerifyCertificateSigningRequest
2023-10-06 15:04:48.643 7989-8012 DeviceProv...ngFragment com.google.chip.chiptool D finish init controllerParams
2023-10-06 15:04:48.643 7989-8012 DeviceProv...ngFragment com.google.chip.chiptool D start onNOCChainGeneration

Bug prevalence

every time

GitHub hash of the SDK that was being used

29574

Platform

android

Platform Version(s)

No response

Anything else?

No response

@freemanspace freemanspace added bug Something isn't working needs triage labels Oct 6, 2023
@bzbarsky-apple
Copy link
Contributor

Duplicate of #29616

@bzbarsky-apple bzbarsky-apple marked this as a duplicate of #29616 Oct 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage
Projects
None yet
Development

No branches or pull requests

2 participants