eclipse / paho.mqtt.rust

paho.mqtt.rust
Other
511 stars 102 forks source link

Is there support for mTLS? #187

Closed dulataldazharov closed 1 year ago

dulataldazharov commented 1 year ago

Is there a way to specify mTLS options when connecting to a broker? For example, the mosquitto client in Rust has it: https://docs.rs/mosquitto-client/latest/mosquitto_client/struct.Mosquitto.html#method.tls_set Is there something similar in the API of this library?

fpagliughi commented 1 year ago

Yes. Use the SslOptions and add them to the ConnectOptions. Although it uses the term SSL, it’s really TLS

dulataldazharov commented 1 year ago

Thanks a lot!