Skip to content

Add Wi-Sun certificate options to mesh api configuration json #10598

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

Merged
merged 2 commits into from
May 21, 2019
Merged

Add Wi-Sun certificate options to mesh api configuration json #10598

merged 2 commits into from
May 21, 2019

Conversation

mikaleppanen
Copy link

@mikaleppanen mikaleppanen commented May 16, 2019

Description

Add possibility to configure Wi-Sun root certificate, own certificate
and own certificate keys to mesh api.

Pull request type

[ ] Fix
[ ] Refactor
[ ] Target update
[X] Functionality change
[ ] Docs update
[ ] Test update
[ ] Breaking change

Reviewers

@mikter

Added possibility to configure Wi-Sun root certificate, own certificate
and own certificate keys to mesh api.
@ciarmcom ciarmcom requested review from mikter and a team May 16, 2019 13:00
@ciarmcom
Copy link
Member

@mikaleppanen, thank you for your changes.
@mikter @ARMmbed/mbed-os-ipcore @ARMmbed/mbed-os-maintainers please review.

@@ -153,6 +153,22 @@
"wisun-uc-dwell-interval": {
"help": "Unicast dwell interval. Range: 15-255 milliseconds",
"value": 0
},
"certificate-header": {
"help": "Certificate header",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the type or range of the value field? Please document that as well.

Others have already documentation.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Corrected

arm_certificate_chain_entry_s chain_info;
memset(&chain_info, 0, sizeof(arm_certificate_chain_entry_s));
chain_info.cert_chain[0] = (const uint8_t *) MBED_CONF_MBED_MESH_API_ROOT_CERTIFICATE;
chain_info.cert_len[0] = strlen((const char *) MBED_CONF_MBED_MESH_API_ROOT_CERTIFICATE) + 1;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you check configuration validity at compile time to avoid hard fault caused by illegal configuration?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check added

@mikaleppanen
Copy link
Author

@artokin @SeppoTakalo Updated pull request according to comments.

@0xc0170 0xc0170 changed the title Added Wi-Sun certificate options to mesh api configuration json Add Wi-Sun certificate options to mesh api configuration json May 20, 2019
@0xc0170
Copy link
Contributor

0xc0170 commented May 20, 2019

CI started

@mbed-ci
Copy link

mbed-ci commented May 20, 2019

Test run: SUCCESS

Summary: 11 of 11 test jobs passed
Build number : 1
Build artifacts

@0xc0170 0xc0170 merged commit 5f36041 into ARMmbed:master May 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants