Skip to content
Discussion options

You must be logged in to vote

Thanks, just some background.

For CRA, we can only allow secure connections.

In the past, I also developed my own MQTT broker/bridge, and I'm now porting that application to mqtt-lib. I intentionally hide most of the low-level broker configuration from the end user and expose only a YAML configuration file, since those settings are specific to how the system is deployed.

For example:

tcp_config:
bind_addresses:
- "127.0.0.1:1883"

tls_config:
cert_file: "./rootca/server.crt"
key_file: "./rootca/server.key"
ca_file: "./rootca/rootCA.crt"
require_client_cert: false
bind_addresses:
- "0.0.0.0:8883"

This allows deployments to configure either:

TCP only,
TLS only, or
both TCP and TLS,

without e…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by DenvE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants