-
Notifications
You must be signed in to change notification settings - Fork 52
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
GMQTT with TLS: ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed #77
Comments
Hi @nicoCalvo
|
Hi @Lenka42 you're right! That was the problem, actually I made it work this way:
Thanks for your help. |
Hi I would also like to know how to implement TLS over gmqtt. Could you please provide a example? DOes gmqtt supports tls? I know that paho-mqtt does |
Yes, gmqtt support SSL/TLS Does the code about is not working for you (because it's using TLS ver1.2 proto)? If you will look through the paho.mqtt code you will see, that they make a SSL/TLS connection by building SSLContext object, like as example above as; If you faced with some problem - please create a new issue and write more information about it (os version, python version, which broker do you use, which version of TLS and example of your code); |
Hi @Mixser I'm new to this and exploring tls/ssl on gmqtt. I just want to know how can we generate this mosquitto_client.crt and mosquitto_client.key which is being used in the above code. |
TLS option is not working as expected. I can only set ssl to True but I cannot provide a path to the cert file.
Mosquitto configuration is working ok with TLS both publisher and subscriber:
If I try to apply same configuration for gmqtt I get the error on the title
ERROR FILE
gmqtt/mqtt/connection.py
ERROR LINE
transport, protocol = await loop.create_connection(MQTTProtocol, host, port, ssl=ssl)
ERROR MESSAGE
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1076)
I would like to know how to implement TLS over gmqtt. Could you provide a quick example?
Thanks
The text was updated successfully, but these errors were encountered: