-
Notifications
You must be signed in to change notification settings - Fork 145
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
feat(console): Added component with mqtt command #502
feat(console): Added component with mqtt command #502
Conversation
espressif-abhikroy
commented
Jan 31, 2024
•
edited
Loading
edited
1bf8668
to
1ab05bb
Compare
components/console_cmd_mqtt/examples/mqtt-basic/main/mqtt-basic.c
Outdated
Show resolved
Hide resolved
components/console_cmd_mqtt/examples/mqtt-basic/pytest_mqtt_basic.py
Outdated
Show resolved
Hide resolved
components/console_cmd_mqtt/examples/mqtt-basic/main/mqtt-basic.c
Outdated
Show resolved
Hide resolved
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.
Nice a simple implementation of the mqtt client's CLI, just left few nitpicks, LGTM otherwise
components/console_cmd_mqtt/examples/mqtt-basic/main/mqtt-basic.c
Outdated
Show resolved
Hide resolved
components/console_cmd_mqtt/examples/mqtt-basic/main/mqtt-basic.c
Outdated
Show resolved
Hide resolved
Probably it's because of draft, just missing CI |
09c5880
to
d8b483d
Compare
d8b483d
to
95eb046
Compare
components/console_cmd_mqtt/examples/ssl_mutual_auth/pytest_ssl_mutual_auth.py
Outdated
Show resolved
Hide resolved
extern const uint8_t g_client_cert_pem_end[] asm("_binary_client_crt_end"); | ||
extern const uint8_t g_client_key_pem_start[] asm("_binary_client_key_start"); | ||
extern const uint8_t g_client_key_pem_end[] asm("_binary_client_key_end"); | ||
extern const uint8_t g_server_cert_pem_start[] asm("_binary_mosquitto_org_crt_start"); |
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.
We could switch to use certificate bundle here.
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.
Added Certificate bundle option.
Now a broker verification can be performed with certificate bundle.
But I was not able to make ssl mutual authentication work with certificate bundle.
I have added a restriction for that.
fb2622b
to
74ad20a
Compare
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.
One last comment, we have client cert and keys added as empty files. Is that correct?
Yes, the client cert and keys are empty. I am only providing the mosquitto.org.crt same as idf example. |
6b67fde
to
dcc9e61
Compare
dcc9e61
to
bffb74b
Compare
c98d9bb
to
232d21e
Compare
Note: Auto-registration of a specific plugin command can be disabled from menuconfig. | ||
|
||
### Certificate Integration for Mutual Authentication | ||
To enhance security and enable secure communication over MQTT, three functions have been added to the API, allowing users to set client certificates, client keys, and broker certificates separately. |
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.
In the idf examples, we have the mutual authentication example that explain how to generate certificates for testing. We could add similar explanation or a pointer here.
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.
I have added the steps for certificate generation in the README file of the example.
7ec4f76
to
2be9f71
Compare
2be9f71
to
6894db6
Compare
6894db6
to
8ef6cbb
Compare
1.0.0 Features - Added component with mqtt command (1fcc5b1)
8ef6cbb
to
2e9bb6e
Compare