Hi,
I have
mosquitto_sub version 1.2.3 running on libmosquitto 1.2.3.
my mosquitto.conf is:
# Place your local configuration in /etc/mosquitto/conf.d/
pid_file /var/run/mosquitto.pid
persistence true
persistence_location /var/lib/mosquitto/
log_dest file /var/log/mosquitto/mosquitto.log
include_dir /etc/mosquitto/conf.d
The certificates are generated by the man mosquitto-tls-7.
While generating the certificates for the client I changed the CN and Organisational Unit like you described here:
https://<email address hidden>/msg00076.html
1391196703: mosquitto version 1.2.3 (build date 2014-01-06 11:53:51+0000) starting
1391196703: Config loaded from /etc/mosquitto/mosquitto.conf.
1391196703: Opening ipv4 listen socket on port 1883.
1391196703: Opening ipv6 listen socket on port 1883.
1391196703: Warning: Address family not supported by protocol
1391196705: New connection from 95.117.127.121 on port 1883.
1391196707: OpenSSL Error: error:14094418:SSL routines:SSL3_READ_BYTES:tlsv1 alert unknown ca
1391196707: OpenSSL Error: error:140940E5:SSL routines:SSL3_READ_BYTES:ssl handshake failure
1391196707: Socket read error on client (null), disconnecting.
1391196712: New connection from 95.117.127.121 on port 1883.
1391196714: OpenSSL Error: error:14094418:SSL routines:SSL3_READ_BYTES:tlsv1 alert unknown ca
1391196714: OpenSSL Error: error:140940E5:SSL routines:SSL3_READ_BYTES:ssl handshake failure
1391196714: Socket read error on client (null), disconnecting.
1391196728: mosquitto version 1.2.3 terminating
1391196728: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
That means I sorted out the 'tlsv1 alert protocol version' issue. but now I got a new one, can someone give me hints, please?
Hi,
I have
mosquitto_sub version 1.2.3 running on libmosquitto 1.2.3.
my mosquitto.conf is:
# Place your local configuration in /etc/mosquitto/ conf.d/ mosquitto. pid location /var/lib/mosquitto/ mosquitto/ mosquitto. log conf.d
pid_file /var/run/
persistence true
persistence_
log_dest file /var/log/
include_dir /etc/mosquitto/
conf.d/ mosquitto. conf:
require_certificate false ca_certificates /ca.crt certs/server. crt certs/server. key
cafile /etc/mosquitto/
certfile /etc/mosquitto/
keyfile /etc/mosquitto/
tls_version tlsv1
The certificates are generated by the man mosquitto-tls-7. /msg00076. html
While generating the certificates for the client I changed the CN and Organisational Unit like you described here:
https://<email address hidden>
mosquitto_sub -h ip-adress -t "#" -d --cafile /etc/mosquitto/ ca_certificates /ca.crt --key /etc/mosquitto/ client/ client. key --cert /etc/mosquitto/ client/ client. crt --tls-version tlsv1 32020-raspberry sending CONNECT SSL3_GET_ SERVER_ CERTIFICATE: certificate verify failed
Enter PEM pass phrase:
Client mosqsub/
OpenSSL Error: error:14090086:SSL routines:
Error: Protocol error
mosquitto_pub -h ip-adress -t "test" -m hello --cafile /etc/mosquitto/ ca_certificates /ca.crt --tls-version tlsv1 --key /etc/mosquitto/ client/ client. key --cert /etc/mosquitto/ client/ client. crt -d 32030-raspberry sending CONNECT SSL3_GET_ SERVER_ CERTIFICATE: certificate verify failed
Enter PEM pass phrase:
Client mosqpub/
OpenSSL Error: error:14090086:SSL routines:
Error: Protocol error
/var/log/ mosquitto/ mosquitto. log:
1391196703: mosquitto version 1.2.3 (build date 2014-01-06 11:53:51+0000) starting mosquitto. conf. SSL3_READ_ BYTES:tlsv1 alert unknown ca SSL3_READ_ BYTES:ssl handshake failure SSL3_READ_ BYTES:tlsv1 alert unknown ca SSL3_READ_ BYTES:ssl handshake failure mosquitto/ mosquitto. db.
1391196703: Config loaded from /etc/mosquitto/
1391196703: Opening ipv4 listen socket on port 1883.
1391196703: Opening ipv6 listen socket on port 1883.
1391196703: Warning: Address family not supported by protocol
1391196705: New connection from 95.117.127.121 on port 1883.
1391196707: OpenSSL Error: error:14094418:SSL routines:
1391196707: OpenSSL Error: error:140940E5:SSL routines:
1391196707: Socket read error on client (null), disconnecting.
1391196712: New connection from 95.117.127.121 on port 1883.
1391196714: OpenSSL Error: error:14094418:SSL routines:
1391196714: OpenSSL Error: error:140940E5:SSL routines:
1391196714: Socket read error on client (null), disconnecting.
1391196728: mosquitto version 1.2.3 terminating
1391196728: Saving in-memory database to /var/lib/
That means I sorted out the 'tlsv1 alert protocol version' issue. but now I got a new one, can someone give me hints, please?
dabozz