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

Multiple device registration causes KID error #80

Open
rashedtalukder opened this issue Oct 18, 2021 · 1 comment
Open

Multiple device registration causes KID error #80

rashedtalukder opened this issue Oct 18, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@rashedtalukder
Copy link
Collaborator

If the registration script is run for a second+ device after the first one, it results in a kid error due to the manifest handler only accepting 1 file in the output_files path. Solution is to 1/ reuse signer cert if it exists 2/ generate unique cert names using the serial number and match against manifest name.

Traceback (most recent call last):
  File "/Core2-for-AWS-IoT-EduKit/Blinky-Hello-World/utilities/AWS_IoT_registration_helper/registration_helper.py", line 215, in <module>
    main() 
  File "/Core2-for-AWS-IoT-EduKit/Blinky-Hello-World/utilities/AWS_IoT_registration_helper/registration_helper.py", line 211, in main
    upload_manifest()
  File "/Core2-for-AWS-IoT-EduKit/Blinky-Hello-World/utilities/AWS_IoT_registration_helper/registration_helper.py", line 166, in upload_manifest
    invoke_import_manifest('Default', manifest_data, signer_cert_bytes)
  File "/Core2-for-AWS-IoT-EduKit/Blinky-Hello-World/utilities/AWS_IoT_registration_helper/../trustplatform/TrustnGO/Microchip_manifest_handler.py", line 238, in invoke_import_manifest
    manifest_item = ManifestItem(next(iterator), verification_cert)
  File "/Core2-for-AWS-IoT-EduKit/Blinky-Hello-World/utilities/AWS_IoT_registration_helper/../trustplatform/TrustnGO/Microchip_manifest_handler.py", line 176, in __init__
    self.run()
  File "/Core2-for-AWS-IoT-EduKit/Blinky-Hello-World/utilities/AWS_IoT_registration_helper/../trustplatform/TrustnGO/Microchip_manifest_handler.py", line 195, in run
    raise ValueError('kid does not match certificate value')
ValueError: kid does not match certificate value
@rashedtalukder rashedtalukder added the bug Something isn't working label Oct 18, 2021
@rashedtalukder rashedtalukder self-assigned this Oct 18, 2021
@mstfldmr
Copy link

deleting IoT thing and IoT certificate also works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants