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 TLS Management #6

Closed
alexmc1510 opened this issue Nov 28, 2023 · 6 comments
Closed

MQTT TLS Management #6

alexmc1510 opened this issue Nov 28, 2023 · 6 comments
Assignees
Labels
enhancement New feature or request

Comments

@alexmc1510
Copy link

Hello,

First of all, congratulations on your code. It is a really nice idea.
I am testing it deeply and I would like to know in a more deeper detail how to manage the TLS on MQTT side with the certificates. In my case I have a MQTT broker with its client certificate but I don't know how to install or deploy the CA on client side...
Can you explain how it is managed internally and how can I use it?

Regards

@barnstee barnstee self-assigned this Nov 29, 2023
@barnstee barnstee added the enhancement New feature or request label Nov 29, 2023
@barnstee
Copy link
Owner

barnstee commented Nov 29, 2023

Hi @alexmc1510. I'm glad you like it! MQTT broker auth with a broker-supplied cert is currently not implemented. :-) Only client-provided cert auth and username and password auth are. For the client-provided cert auth, I simply use the OPC UA client cert and this is why I display the OPC UA client cert thumbprint in the config page, so you can provide this info to your broker. If that doesn't work for you, it would be relatively trivial to add a file open dialog and upload a broker-supplied cert to UA Cloud Publisher and add an if to the MqttClientCertificatesProvider:GetCertificates() method to load that cert instead of the OPC UA client cert. Leave it with me for a couple of hours... ;-)

@alexmc1510
Copy link
Author

alexmc1510 commented Nov 29, 2023 via email

@barnstee
Copy link
Owner

I beat you to it: 4562fd5
:-)

@barnstee
Copy link
Owner

To use it, make sure you check the Use custom certificate to authenticate with the Broker:
image

@alexmc1510
Copy link
Author

alexmc1510 commented Nov 29, 2023 via email

@barnstee
Copy link
Owner

:-)

Yes, there is a Telegraf connector for Azure Event Hubs and it can be used to send the data to InfluxDB and then use the built-in Grafana dashboard functionality. However, I found the free version of Azure Data Explorer to be easier to use for creating dashboards: https://dataexplorer.azure.com/freecluster

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

No branches or pull requests

2 participants