How to connect to Solace broker using truststore credentials using Python
[Deleted User] Posts: 0 ✭
edited February 2022 in Connectors & Integrations #1
So you want to connect to the broker using MQTT over TCP/TLS?
You'll need to look at the
tls_set()method here - https://www.eclipse.org/paho/clients/python/docs/, specifically the
ca_certsparameter. 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-server
tls_set()also supports parameters to set up client certificate authentication.1