-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Conversation
Added possibility to configure Wi-Sun root certificate, own certificate and own certificate keys to mesh api.
@mikaleppanen, thank you for your changes. |
@@ -153,6 +153,22 @@ | |||
"wisun-uc-dwell-interval": { | |||
"help": "Unicast dwell interval. Range: 15-255 milliseconds", | |||
"value": 0 | |||
}, | |||
"certificate-header": { | |||
"help": "Certificate header", |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check added
@artokin @SeppoTakalo Updated pull request according to comments. |
CI started |
Test run: SUCCESSSummary: 11 of 11 test jobs passed |
Description
Add possibility to configure Wi-Sun root certificate, own certificate
and own certificate keys to mesh api.
Pull request type
Reviewers
@mikter