I’m using the MQTT add-on but running into this problem even if I set the certificate to the same file.
MQTT Add-on Config
logins:
- username: '!secret mqtt_username'
password: '!secret mqtt_password'
customize:
active: false
folder: mosquitto
certfile: fullchain.pem
keyfile: privkey.pem
require_certificate: false
configuration.yaml:
mqtt:
certificate: /ssl/fullchain.pem
broker: !secret mqtt_ip
port: !secret mqtt_port
username: !secret mqtt_username
password: !secret mqtt_password
tls_insecure: true
I’ve also tried setting:
mqtt:
client_cert: /ssl/fullchain.pem
client_key: /ssl/privkey.pem
broker: !secret mqtt_ip
port: !secret mqtt_port
username: !secret mqtt_username
password: !secret mqtt_password
tls_insecure: true
but doesn’t help. For both the logs of MQTT show that it is finding the cert:
[02:49:40] INFO: Setting up user homeassistant
[02:49:40] INFO: Certificates found: SSL is available
But then the version error on connection:
1626688294: New connection from 172.30.32.1 on port 8883.
1626688294: OpenSSL Error[0]: error:1408F10B:SSL routines:ssl3_get_record:wrong version number
1626688294: Socket error on client <unknown>, disconnecting.
1626688296: Client connection from 172.30.32.1 failed: error:1408F10B:SSL routines:ssl3_get_record:wrong version number.