Git Product home page Git Product logo

Comments (5)

kamilfb avatar kamilfb commented on June 28, 2024

Hi. No, you shouldn't need any extra tools.

Have a look at https://github.com/kamilfb/mqtt-spy/blob/development/mqtt-spy-common/src/test/java/pl/baczkowicz/mqttspy/connectivity/ConnectionTestingWithMosquitto.java and https://github.com/kamilfb/mqtt-spy/tree/development/mqtt-spy-common/src/test/resources. These are unit/integration tests for TLS/SSL & mosquitto. Most are with a local instance of mosquitto and some with the public test server. There are also scripts for generating those keys and certificates.

Let me know if that works for you.

from mqtt-spy.

tottka avatar tottka commented on June 28, 2024

Hi Kamil, thanks for responding to my question. I am pretty sure that I have generated the ca/key files correctly because I can get messages to flow when I use mosquitto_pub & mosquitto_sub on port 8883. I have no knowledge of java so I've attempted to read your code but not really sure what I'm looking at or what I am suppose to do with the links you sent me. thanks for trying to help

from mqtt-spy.

tottka avatar tottka commented on June 28, 2024

Closed by mistake

from mqtt-spy.

kamilfb avatar kamilfb commented on June 28, 2024

Hi. I recall having a similar issue, with mosquitto_pub & sub working, but mqtt-spy not, and vice versa.

How do you generate those ca/key files?

Have a look at:
https://github.com/kamilfb/mqtt-spy/blob/development/mqtt-spy-common/src/test/resources/mosquitto/ssl/bouncy_castle/generate-client.sh
and
https://github.com/kamilfb/mqtt-spy/blob/development/mqtt-spy-common/src/test/resources/mosquitto/ssl/mosquitto_sub/generate-client.sh

Not using "-addtrust clientAuth" when generating these files made it work for mqtt-spy. I didn't spend much time looking into it though - something I'm hoping to do in the coming months. In the meantime, if you still can't get mqtt-spy to work, maybe try MQTT.fx - it's got extensive SSL/TLS support.

from mqtt-spy.

tottka avatar tottka commented on June 28, 2024

Hi Kamil, thank you for trying to help with my problem. I regenerated my files following the instructions on this website and my prolem was cleared up.
thanks again
Cyn

http://lukse.lt/uzrasai/2015-02-internet-of-things-messaging-mqtt-1-installing-mosquitto-server/

Date: Mon, 17 Aug 2015 15:49:29 -0700
From: [email protected]
To: [email protected]
CC: [email protected]
Subject: Re: [mqtt-spy] Just a question about mqtt-spy with TLS (#42)

Hi. I recall having a similar issue, with mosquitto_pub & sub working, but mqtt-spy not, and vice versa.

How do you generate those ca/key files?

Have a look at:

https://github.com/kamilfb/mqtt-spy/blob/development/mqtt-spy-common/src/test/resources/mosquitto/ssl/bouncy_castle/generate-client.sh

and

https://github.com/kamilfb/mqtt-spy/blob/development/mqtt-spy-common/src/test/resources/mosquitto/ssl/mosquitto_sub/generate-client.sh

Not using "-addtrust clientAuth" when generating these files made it work for mqtt-spy. I didn't spend much time looking into it though - something I'm hoping to do in the coming months. In the meantime, if you still can't get mqtt-spy to work, maybe try MQTT.fx - it's got extensive SSL/TLS support.


Reply to this email directly or view it on GitHub.

from mqtt-spy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.