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

Self-Signed MQTT Server Connection Fails #759

Open
skellycode opened this issue Apr 2, 2023 · 3 comments
Open

Self-Signed MQTT Server Connection Fails #759

skellycode opened this issue Apr 2, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@skellycode
Copy link

Describe the bug
Connections to Secure MQTT server (i.e. port 8883) fail for self-signed certificates

Firmware:

  • Version: 1.15.642
  • Chip/model: BK7231T

To Reproduce
Steps to reproduce the behavior:

  1. Go to MQTT settings and add the credentials for an MQTTS server that is running a self-signed certificate
  2. See connection error on main summary page ('disconnected')

Recommendations

  • Perhaps adding an 'ignore security errors' flag in the MQTT settings as a check-box. This would allow users to choose whether they wish to accept the security errors associate with self-signed certificates. Users who do not use self-signed certificates would be able to leave the box unchecked.
@openshwprojects openshwprojects added the bug Something isn't working label Apr 3, 2023
@skellycode
Copy link
Author

Any update on this @openshwprojects?
This is breaking for me as I cannot use my OpenBK devices without an MQTTS connection...

@openshwprojects
Copy link
Owner

Hello @skellycode , I apologize for the delay, I keep in mind this feature request, but I have already a backlog of requested in queue waiting to be processed, not to mention some requests from the direct contributors/donators (for example, a guy sent me a PIR sensor....).
Do you have any C knowledge? Maybe we could look into that MQTTS together, that could be faster.

So you basically need a MQTT secure connection? So we would need to enable TLS support in the SDK?

Our MQTT library resides in LWIP, it is both present in BK7231T and BK7231N SDKs.

@skellycode
Copy link
Author

thanks for the reply - unfortunately I do not know any C (I mainly write R/Python). I tried looking at the project for LWIP but I don't know what it is and got lost pretty quickly 😆

So you basically need a MQTT secure connection? So we would need to enable TLS support in the SDK?

Yes that's right - it would be a case of enabling secure connections for MQTT - AND allowing 'insecure' connections (i.e. self-signed certificates)

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