In the meanwhile I:
* got the latest version from the source repository
* made a fresh compile
* ran all the tests
* used gen.sh to generate new keys and certificates
The mosquitto.conf I use looks like that:
listener 8883 0.0.0.0
tls_version tlsv1.2
cafile /home/myuser/CA/all-ca.crt
certfile /home/myuser/CA/server.crt
keyfile /home/myuser/CA/server.key
require_certificate false
After running mosquito I get:
./mosquitto -c ../../../mosquitto.conf
1410793490: mosquitto version 1.3.4 (build date 2014-09-15 16:02:36+0200) starting
1410793490: Config loaded from ../../../mosquitto.conf.
1410793490: Opening ipv4 listen socket on port 8883.
The client call is:
mosquitto_sub --key /home/myuser/CA/client.key --cert /home/myuser/CA/client.crt -h 10.0.134.44 -p 8883 -t 'fancysub' --tls-version tlsv1.2 -d
Client mosqsub/13678-Mosquitto sending CONNECT
Client mosqsub/13678-Mosquitto sending CONNECT
Client mosqsub/13678-Mosquitto sending CONNECT
Client mosqsub/13678-Mosquitto sending CONNECT
Client mosqsub/13678-Mosquitto sending CONNECT
Client mosqsub/13678-Mosquitto sending CONNECT
Client mosqsub/13678-Mosquitto sending CONNECT
Client mosqsub/13678-Mosquitto sending CONNECT
Client mosqsub/13678-Mosquitto sending CONNECT
Client mosqsub/13678-Mosquitto sending CONNECT
No the Broker log looks like:
1410793583: New connection from 10.0.1.44 on port 8883.
1410793583: OpenSSL Error: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number
1410793583: Socket error on client (null), disconnecting.
1410793584: New connection from 10.0.1.44 on port 8883.
1410793584: OpenSSL Error: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number
1410793584: Socket error on client (null), disconnecting.
1410793585: New connection from 10.0.1.44 on port 8883.
1410793585: OpenSSL Error: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number
1410793585: Socket error on client (null), disconnecting.
1410793586: New connection from 10.0.1.44 on port 8883.
1410793586: OpenSSL Error: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number
1410793586: Socket error on client (null), disconnecting.
1410793587: New connection from 10.0.1.44 on port 8883.
1410793587: OpenSSL Error: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number
1410793587: Socket error on client (null), disconnecting.
1410793588: New connection from 10.0.1.44 on port 8883.
1410793588: OpenSSL Error: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number
1410793588: Socket error on client (null), disconnecting.
1410793589: Client connection from 10.0.1.44 failed: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number.
1410793590: Client connection from 10.0.1.44 failed: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number.
1410793591: Client connection from 10.0.1.44 failed: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number.
1410793592: Client connection from 10.0.1.44 failed: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number.
Anybody any idea?