Replies: 2 comments 2 replies
-
You need to add the name of the ca file, rc95fb8c.ala.us-east-1.emqxsl.com uses "ISRG Root X1" as ca so |
Beta Was this translation helpful? Give feedback.
2 replies
-
mqtt2sql MQTT connections are made by Eclipse Paho MQTT Python client library, is does not make the connections by themself, it simply push the parameter given to the library function and returns their result. Also TLS connections are fully handled by the library itself. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
please can you give a try to connect to a broker with TLS enabled and username and password?
Indifferent with or without certificate validation, it works in both way (I changed personal data of MySql server) :
./mqtt2sql.py --mqtt mqtts://mqtt2sql:[email protected]/# --sql-type mysql --sql-host localhost --sql-username user--sql-password 'password' --sql-db mqtt -v -dd
I'm able to connect to the broker, subscribe and post, with MQTT Explorer and with MQTTX, with TLS on the port 8883, with or without certificate validation.
But it seems that's a problem with the Python script.
This is the only output i receive, but the script doesn't write in the DB :
Moreover with my personal broker on the LAN, with certificate usage but without validation, I have different error, for this I moved to an external certified one, to avoit server misconfiguration:
ERROR:__main__:failed to receive on socket: [Errno 104] Connection reset by peer
Also in this case I have not any kind of problem with MQTT Explorer and MQTTX client, with TLS enabled.
If you want, also in this case, I can provide you (better in private message) an access to try to connect with your script
Beta Was this translation helpful? Give feedback.
All reactions