question

emence avatar image
emence asked

How do I create a bridge.conf between the venus mqtt broker and mosquitto

In home assistant I can config a MQTT broker to have access to the venus_mqtt items:

mqtt:
  broker: mqtt.victronenergy.com
  port: 8883
  certificate: venus-ca.crt
  client_id: mark
  username: <MyUserneme>
  password: <MyPassword>

but because i already have a mqtt broker (mosquitto) i have to make a bridge:

connection victron
address mqtt.victronenergy.com:8883
remote_username <MyUsername>
remote_password <MyPassword>
clientid mark
require_certificate true
bridge_cafile /etc/ssl/certs/ca-certificates.crt
try_private true
start_type automatic
topic # in 0
topic # out 0

in my logfile i find:

1567354421: Connecting bridge (step 1) victron (mqtt.victronenergy.com:8883)
1567354421: Connecting bridge (step 2) victron (mqtt.victronenergy.com:8883)
1567354421: OpenSSL Error: error:1416F086:SSL routines:tls_process_server_certificate:certiicate verify failed
1567354421: Socket error on client local.mark, disconnecting.

What can I do to correct this?


Venus GX - VGXMQTT
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

1 Answer
russ avatar image
russ answered ·

I believe the bridge config will require the victron certificate as you showed for the direct connection.

1 comment
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

emence avatar image emence commented ·

Thank you for your response

The problem is still the same. This is what is in the log file

1567404578: Connecting bridge (step 1) victron (mqtt.victronenergy.com:8883)
1567404578: Connecting bridge (step 2) victron (mqtt.victronenergy.com:8883)
1567404579: OpenSSL Error: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
1567404579: Socket error on client local.mark, disconnecting.
1567404581: mosquitto version 1.6.4 terminating

I think the problem is in the 'bridge_cafile' Is this the wright one? If not, where do I find it?

0 Likes 0 ·