I want to establish secure communication over mqtt using PSK. I explored a lot but everywhere they are using certificates.
Asked
Active
Viewed 389 times
0
-
I'm not aware of any Java MQTT library that supports TLS-PSK at this time. – hardillb Dec 07 '16 at 09:53
-
Is it. Can't we use SSLContext for PSK or bouncy castle library? – Meg Dec 07 '16 at 10:07
-
I meant out of the box, but looking at Paho, you should be able to attach a SocketFactory from a SSLContext with a custom KeyManager. I'll try and have a play later – hardillb Dec 07 '16 at 11:21
-
ok let me know how u r doing it as i m new to all this. Thanks. – Meg Dec 07 '16 at 12:06
1 Answers
0
A solution could be to put stunnel in front of your MQTT client.
stunnel would act as a reverse proxy for connections.
The config options would be PSKidentity
and PSKsecrets
.

Alexander Farber
- 21,519
- 75
- 241
- 416