-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
Add support for certificate connection via mqtt #804
Comments
It should be possible, as I am using MqttNET for MQTT connections. (Note for me: dotnet/MQTTnet#115 (comment)). But as I am currently pretty busy and this is a lot of work to do (adding file upload for certificate upload), this is nothing that will be implemented in the near future. I recommend you use Modbus TCP (should work on Victron) or any other Middleware for that, e.g., HomeAssistant or something like that. If you could create a PR for that, the Solar MQTT Authentication is here from line 49 to 54. |
Yeah, I have a very dirty implementation for that here but it works for me. I think a quick implementation could be to store the cert in a folder, same as the docker-compose and then maybe add a checkbox in the UI that selects What you think about that basic implementation |
Little dirty, yes, but easily fixable: Add the file to the docker volume and implement the file name pattern like baseConfig.json. To do that follow these steps:
When done, you can create a pull request, and I will do the UI and file upload things when I have time to do it. But you can already use that feature when you manually copy your certificate in your Docker Volume and get all future updates. |
I'll close this issue as I ended using local mqtt and that works for me. |
I'm using victron and to connect to public mqtt one needs to pass in a certificate. This is currently not possible.
Is it possible to add this functionality?
Thanks for the work
The text was updated successfully, but these errors were encountered: