psk tls python
Asked by
adamant
hey guys.
I'm a greenhand of mosquitto ,my question is how to use the psk file to communicate between the client and the broker
the broker configuration is as follows:
listener 8883
psk_file /etc/mosquitto/
psk_hint hint
tls_version tlsv1
pskfile:
greenhand:123890
now I don't know how to use the python client of mosquitto to connect to the broker and I find an API (member function of class mosquitto) like :
tls_set(self, ca_certs, certfile=None, keyfile=None, cert_reqs=2, tls_version=3, ciphers=
should I use this and how to fill the parameter.what is necessary?
thank you so much
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- mosquitto Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Roger Light
- Solved:
- Last query:
- Last reply:
To post a message you must log in.