-
-
Notifications
You must be signed in to change notification settings - Fork 75
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
Bug: MQTT SSL certificate error #82
Comments
Hey @DeerMaximum, Don't actually use certs myself, so it's hard for me to determine exactly what's going wrong. I'll setup a test environment with mqtt certs, and see if I can reproduce/fix it :) |
Can you please show me the exact tls configuration of the working broker, ie. what certificates have you configured where? Perhaps a screenshot of the entire config. Thanks! |
Here is the config:
The functioning broker is this one: Link |
Well I can't for the life of me get it working with my staging setup, but that one's pretty messed up config-wise anyway. I've made some changes in the mqtt connector, that should allow for self-signed certs when Could you please follow these steps:
|
With the test version it works if |
Ok, glad it's working. I presume the cert is self-signed, seeing as how you're using Closing this, but feel free to reopen if you think it should be implemented differently. |
I have imported the CA certificate into Windows and also imported it in the agent and in the other broker as root certificate. The certificate is validated and recognized in the other broker, but not in the agent. |
Can confirm as well,
The message from OpenSSL seems to be a client error. I'm able to verify the certificate chain using Maybe something down the MQTTnet stack uses OpenSSL which doesn't use the Windows certificate store? |
@Flightkick, did you install the latest beta? https://github.com/LAB02-Research/HASS.Agent/releases/tag/2022.13.0-beta2 |
@LAB02-Admin, no I replaced the binaries with the test version as per your previous instructions. |
As a test, yes please |
Test results with the latest beta 2022.13.0-beta2
The MQTT module doesn't seem to use the Windows certificate store in which the self signed root CA and intermediate certificates are installed. The Home Assistant API module however does seem to honor the Windows certificate store, as unchecking the |
Hi, Is this issue resolved? I have the same problem. |
I have the same issue as well. I am using mqtts with clients using only username and password auth but Home Assistant is using a self signed cert to secure the auth. The root cert is trusted in Windows and works everywhere else, but not in HASS Agent. I also see |
Can't make work self-signed cert on latest stable agent version. MQTT Explorer and MQTTX work fine with mosquito broker. Please fix if possible. |
Describe the bug
When I want to connect the agent via MQTT and SSL to a MQTT broker the connection fails with a certificate error. If I enter the same login data and settings in another MQTT client the connections work without problems.
I use self created certificates. With and without the setting "allow untrusted certificates" this error occurs.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Successful connection to the MQTT broker
Screenshots
MQTT settings:
Other MQTT Broker:
Misc info (please complete the following information):
winver.exe
output):Please check what's applicable (multiple answers possible):
Logs
The text was updated successfully, but these errors were encountered: