How to connect to Solace broker using truststore credentials using Python
[Deleted User]
Posts: 0 ✭
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