quartiq / minimq

Minimal no_std MQTT v5.0 client implementation
MIT License
143 stars 16 forks source link

Add TLS support #121

Open ryan-summers opened 1 year ago

ryan-summers commented 1 year ago

Add support for a TLS-based connection with the broker.

This may necessitate the development of new embedded-nal traits for the TCP stack.

embedded-tls can provide the necessary TLS components.

teovillanueva commented 10 months ago

Hello! Is TLS support planned?

ryan-summers commented 10 months ago

It is indeed planned eventually, but much of minimq development is driven by the user needs of https://github.com/quartiq/stabilizer and https://github.com/quartiq/booster. Given that we don't have any immediate need yet, it's not yet on my priority list and is more of a fun project I'd like to get to later.

cc @jordens

Ddystopia commented 5 months ago

Hello, I want to mention https://github.com/drogue-iot/embedded-tls here. It allows to wrap any tcp stream into tls. Maybe it would be useful for someone

ryan-summers commented 5 months ago

Yeah, the intent would be to leverage embedded-tls (or rustls when no-std support is complete) to facilitate this. Is your comment about wrapping a TCP stream with a TLS mechanism and then treating it opaquely as a "TCP stream"? That would alos be an interesting approach.