🎄 Happy Holidays! 🥳
Most of Solace is closed December 24–January 1 so our employees can spend time with their families. We will re-open Thursday, January 2, 2024. Please expect slower response times during this period and open a support ticket for anything needing immediate assistance.
Happy Holidays!
Please note: most of Solace is closed December 25–January 2, and will re-open Tuesday, January 3, 2023.
How to connect to Solace broker using truststore credentials using Python
Comments
-
Hi,
So you want to connect to the broker using MQTT over TCP/TLS?
You'll need to look at thetls_set()
method here - https://www.eclipse.org/paho/clients/python/docs/, specifically theca_certs
parameter. If you are using Solace cloud you can download the truststore (Digicert Root CA) from the "Connect" tab of your service in the "SMF" section. You may need to provide the full certificate chain - in this case you can get the additional certs in the chain from a TLS port on the broker via open ssl - https://stackoverflow.com/questions/7885785/using-openssl-to-get-the-certificate-from-a-servertls_set()
also supports parameters to set up client certificate authentication.1