Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No way to provide ca_certs, certfile, and keyfile for TLS #33

Open
Shulyaka opened this issue Jun 17, 2021 · 0 comments
Open

No way to provide ca_certs, certfile, and keyfile for TLS #33

Shulyaka opened this issue Jun 17, 2021 · 0 comments

Comments

@Shulyaka
Copy link

There is an option to enable TLS, but there is no way to provide a certificate for it. I use a cert-based auth and a self-signed cert for my mqtt broker. The paho-mqtt documentation (https://pypi.org/project/paho-mqtt/#client) suggests to put these parameters to tls_set function:

tls_set(ca_certs=None, certfile=None, keyfile=None, cert_reqs=ssl.CERT_REQUIRED, tls_version=ssl.PROTOCOL_TLS, ciphers=None)

While the tls_version and ciphers might not be so important, the first 3 arguments are more common to be set.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant