Cannot connect to MQTT when using TLS. Error BadDER

Hi,
I’ve installed Snips and it runs fine without TLS. Trying to use TLS generates the followig error:

Could not start MQTT client on localhost:8883

  • -> caused by: invalid certificate: BadDER*

I cannot figure out whats wrong. The PEM file includes the CA RSA Key and CA certificate and seems to be OK.

Configuration:

[snips-common]

bus = “mqtt”

mqtt = “localhost:8883”

audio = ["+@mqtt"]

assistant = “/usr/share/snips/assistant”

user_dir = “/var/lib/snips”

MQTT authentication

mqtt_username = “xxxxxxx”
mqtt_password = “yyyyyy”

MQTT TLS configuration

mqtt_tls_hostname = “raspberrypi”
mqtt_tls_disable_root_store = true
mqtt_tls_cafile = “/home/homeassistant/.homeassistant/certs/ca.pem”
mqtt_tls_capath = “/home/homeassistant/.homeassistant/certs”

mqtt_tls_client_cert = “”

mqtt_tls_client_key = “”

Regards,

Hi all,
I’m facing the same problem.
What I tried is to convert the certificates from PEM format (needed) for Mosquitto to DER.
However that does not help.

Does snips support TLS on the mqtt broker?

BR Thomas