linux – Unable to get connect to MQTT broker using OpenSSL certificates
I am trying to add certificate access on port 8883. I have generated the certificate using OpenSSL by following this blog.
This is my mosquitto.conf
file:
# Certificate listener
listener 8883
cafile /etc/mosquitto/certs/ca.crt
certfile /etc/mosquitto/certs/server.crt
keyfile /etc/mosquitto/certs/server.key
require_certificate true
use_identity_as_username false
tls_version tlsv1.3
persistence true
persistence_location /var/lib/mosquitto/
log_dest file /var/log/mosquitto/mosquitto.log
This is what I get in the log file when I try to connect to port 8883:
1731342042: OpenSSL Error[0]: error:0A000102:SSL routines::unsupported protocol
1731342042: Client disconnected: Protocol error.
1731342043: Client connection from 172.25.32.1 failed: error:0A000102:SSL routines::unsupported protocol.
This is my OpenSSL version:
OpenSSL 3.0.13 30 Jan 2024 (Library: OpenSSL 3.0.13 30 Jan 2024)
Is same certificated are required on client side?
Read more here: Source link