dotnet / MQTTnet

MQTTnet is a high performance .NET library for MQTT based communication. It provides a MQTT client and a MQTT server (broker). The implementation is based on the documentation from http://mqtt.org/.
MIT License
4.44k stars 1.06k forks source link

Does this support client TLS-PSK? #2027

Open a80093119 opened 3 months ago

a80093119 commented 3 months ago

Describe your question

A clear and concise description of what you want to know.

Hi, I search a lot but it seems not supported. Only found Python (I tried, it's worked) and Java version. How can I use this for client TLS-PSK, thank you very much.

Which project is your question related to?

rido-min commented 3 months ago

MQTTnet TLS Support is based on .NET SslStream, from this page

https://learn.microsoft.com/en-us/dotnet/core/extensions/sslstream-best-practices#select-cipher-suites

seems it's not fully supported; it will be better to ask this question in the dotnet/runtime repo