-
Notifications
You must be signed in to change notification settings - Fork 5
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
Username and password authentication to remote broker #13
Comments
@bruniii you can specify the username and password as part of the Connect method. That is where you add the username, password, will topic and messages... Along with the session flags. (And this is the right place to ask those questions... When one person asks, ten others will find the answer here in the future and won't need to ask) 🙂 |
Thank you! Now it's working. Also, to any future reader: remember to change to True the respective booleans in the "Connect flags" variable of the same VI "Connect to server" |
The domain is determined by the server's certificate. It cannot be an IP address, so it usually looks like "www.my-domain.com" or something of the sort. It is the domain where the certificate is valid (you cannot reuse the same certificate on a different server, so you can be certain, as a client, that the certificate you have will identify the server you are targeting). The pfx file will not work. It is a format that includes both the certificate and the private key(s), so you must extract the raw certificate from there. The certificate is usually a .cer or. crt file. The private key is usually saved as a .pem or a .key file, and should be kept secret. You would use the key/pem only if LabVIEW is the broker. This resource might be helpful: There is more, if you need to identify yourself with the server through mutual TLS, then the client must use a private key and the server must have installed the client certificate, but in this case, I think you need only the server's certificate to establish communication. Maybe this can help: It contains the broker part and how to create self signed certificates, so you can skip those parts... |
I'm sorry to use this "issues" section for something that's more asking for help, and perhaps it's even a stupid question. If there is any other way to get help without opening a fake issue here, please let me know.
I need to use a username/password to connect the LabVIEW MQTT client to a remote broker; no SSL/TLS autentication, only the credentials. I cannot find any input variables of any VIs in you libraries (MQTT Client, Connection, TCP Connection, MQTT Secured TCP Connection, Websockets Connection) that looks like a username/password.
Can you help me? am I missing the right vi/class?
Thank you!
Marco.
The text was updated successfully, but these errors were encountered: