mosquitto_sub -t \$SYS/broker/bytes/\# -v --cafile ca.crt --tls-version tlsv1 -p 8883
and get this error:
Connection Refused: not authorised.
and:
mosquitto_pub --cafile ca.crt -t "test" -m "message" -p 8883 --tls-version tlsv1 -h localhost
get this error:
Connection Refused: not authorised.
Error: The connection was refused.
When i check the broker with this openssl command, seems everything is ok:
openssl s_client -connect localhost:8883 -CAfile ca.crt -tls1
....
Verify return code: 0 (ok)
Does your configuration allow anonymous login? Are you supplying credentials?
I am not certain but this seems to be the authentication problem rather than a connection problem; even though the error message says connection refused (it may not be the tcp connection that is refused but an mqtt connection that is refused).
Does your configuration allow anonymous login? Are you supplying credentials?
--
To learn more about MQTT please visit http://mqtt.org
---
You received this message because you are subscribed to the Google Groups "MQTT" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mqtt+unsubscribe@googlegroups.com.
To post to this group, send email to mq...@googlegroups.com.
Visit this group at https://groups.google.com/group/mqtt.
For more options, visit https://groups.google.com/d/optout.
Hi,port should be 8883.
Tomy Technology
Tomoaki YAMAGUCHI
2016-09-14 12:56 GMT+09:00 V Z <uvzu...@gmail.com>:
I am not certain but this seems to be the authentication problem rather than a connection problem; even though the error message says connection refused (it may not be the tcp connection that is refused but an mqtt connection that is refused).
Does your configuration allow anonymous login? Are you supplying credentials?
--
To learn more about MQTT please visit http://mqtt.org
---
You received this message because you are subscribed to the Google Groups "MQTT" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mqtt+uns...@googlegroups.com.