processing-mqtt icon indicating copy to clipboard operation
processing-mqtt copied to clipboard

Any implementation to use wss over TLS?

Open dattasaurabh82 opened this issue 3 years ago • 3 comments

How can I use a broker that uses wss://.. and has a cert file associated with it with this library? For using ws://.. and mqtt://.., no problem.. :) But to use tcp/tls or wss, I didn't see any implementation requiring ca.cert file in the MQTTClient.java . Am I correct that this has not been implemented yet and if so, is there any future plan to accomodate secure connections?

dattasaurabh82 avatar May 05 '21 09:05 dattasaurabh82

TLS is supported and can be used with mqtts:// and wss://. What you're requesting is connecting to a broker that is using a self-signed certificate. This has not been implemented yet. Unfortunately, I do not have time at the moment, but I'm happy to accept contributions.

256dpi avatar May 05 '21 21:05 256dpi

TLS is supported and can be used with mqtts:// and wss://. What you're requesting is connecting to a broker that is using a self-signed certificate. This has not been implemented yet. Unfortunately, I do not have time at the moment, but I'm happy to accept contributions.

Awesome. I can give it a try. Is there the java project somewhere with the build instructions? Then I can edit the source files, compile, test etc in my environment .

A good starter to use SslUtil.java following https://gist.github.com/saumilsdk/1e17e30e33d0a18f44ce4e2b5841b281 which uses BouncyCastle library to handle pem

dattasaurabh82 avatar May 08 '21 02:05 dattasaurabh82

Hey! Any update on this feature?

renaudfv avatar Feb 07 '23 14:02 renaudfv