Solace Community is getting a facelift!
On March 3rd we will be starting the process of migrating Solace Community to a new platform. As a result, Solace Community will go in to a temporary read-only state. You will still be able to come onto Solace Community and search through posts to find answers, but you won't be able to ask questions, post comments, or react in any way.
We hope to have the migration complete by Wednesday March 5th (or sooner), so please keep an eye out!
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