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

MQTT plugin doesn't show an error when TLS certificate validation fails #136

Open
nickrbogdanov opened this issue Jul 4, 2023 · 0 comments

Comments

@nickrbogdanov
Copy link

If the MQTT plugin connects to a TLS MQTT server, and it is able to validate the certificate, everything works as expected.

However, if certificate validation fails (e.g. because a custom/enterprise CA certificate isn't properly installed under /etc/ssl/certs) then the plugin will not log an error, even if DEBUG logging is enabled. I don't see any mentions of MQTT at all in the octoprint log, beyond octoprint.pligin.core - INFO - 24 plugin(s) registered with the system. This makes it unnecessarily difficult to debug the failure.

It would be nice if there were more DEBUG prints in this plugin so that it's easier to see what went wrong if the MQTT messages aren't getting published.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant