My mosquitto TLS config:
Code: Select all
# MQTT over TLS/SSL
listener 8883
cafile /etc/mosquitto/ca_certificates/ca.crt
certfile /etc/mosquitto/ca_certificates/server.crt
keyfile /etc/mosquitto/ca_certificates/server.key
require_certificate false
tls_version tlsv1 # = tlsv1.0 tlsv1.1 tlsv1.2
Code: Select all
mosquitto_pub -h server.example.net -p 8883 -t test/pokus -m 'abc' --cafile /ca.crt -u 'test' -P 'test'
An in mosquitto log:
Code: Select all
1509365431: New connection from ::1 on port 8883.
1509365431: OpenSSL Error: error:1409442E:SSL routines:ssl3_read_bytes:tlsv1 alert protocol version
1509365431: OpenSSL Error: error:140940E5:SSL routines:ssl3_read_bytes:ssl handshake failure
1509365431: Socket error on client <unknown>, disconnecting.
Code: Select all
mosquitto_pub -h server.example.net -p 8883 -t test/pokus -m 'abc' --cafile /ca.crt -u 'test' -P 'test' --tls-version tlsv1
Code: Select all
1509365981: New connection from 127.0.0.1 on port 8883.
1509365981: OpenSSL Error: error:1409442E:SSL routines:ssl3_read_bytes:tlsv1 alert protocol version
1509365981: OpenSSL Error: error:140940E5:SSL routines:ssl3_read_bytes:ssl handshake failure
1509365981: Socket error on client <unknown>, disconnecting.
1509365981: New connection from 127.0.0.1 on port 8883.
1509365981: OpenSSL Error: error:1409442E:SSL routines:ssl3_read_bytes:tlsv1 alert protocol version
1509365981: OpenSSL Error: error:140940E5:SSL routines:ssl3_read_bytes:ssl handshake failure
1509365981: Socket error on client <unknown>, disconnecting.
1509365981: New connection from 127.0.0.1 on port 8883.
1509365981: OpenSSL Error: error:1409442E:SSL routines:ssl3_read_bytes:tlsv1 alert protocol version
1509365981: OpenSSL Error: error:140940E5:SSL routines:ssl3_read_bytes:ssl handshake failure
1509365981: Socket error on client <unknown>, disconnecting.
Domoticz v3.8153
Ubuntu 16.04 (armbian, orange pi)
mosquitto 1.4.12-1