hivemq / hivemq-mqtt-client

HiveMQ MQTT Client is an MQTT 5.0 and MQTT 3.1.1 compatible and feature-rich high-performance Java client library with different API flavours and backpressure support
https://hivemq.github.io/hivemq-mqtt-client/
Apache License 2.0
860 stars 159 forks source link

[Question] Does it support TLS-PSK? #501

Closed Technoboy- closed 3 years ago

Technoboy- commented 3 years ago

I take a look at the test case and doc but there is no TLS-PSK test or configuration example. Could someone help if I go wrong or really not supported currently?

SgtSilvio commented 3 years ago

Hi @Technoboy- I never used TLS-PSK, but if the JDK supports it, then it should work. JDK 11 seems to support it with the TLS 1.3 implementation (https://bugs.openjdk.java.net/browse/JDK-8202625) I guess you need to initialize and set the KeyManagerFactory and TrustManagerFactory with the right KeyStores.

Technoboy- commented 3 years ago

Hi @Technoboy- I never used TLS-PSK, but if the JDK supports it, then it should work. JDK 11 seems to support it with the TLS 1.3 implementation (https://bugs.openjdk.java.net/browse/JDK-8202625) I guess you need to initialize and set the KeyManagerFactory and TrustManagerFactory with the right KeyStores.

Many thanks for your reply. I will try to read the doc to find some information.