Using Google Home with SonOff Tasmoda

#1

Hello i would like to use google home with sonOff with tasmoda fw.
I try to use gBridge with MQTT server.
But i work in windows 7.

I follow the istructions in
https://doc.gbridge.io/firstSteps/mqttServer.html

Using own Mosquitto as a Bridge

and i make the follow mosquitto.conf:

connection kappelt-gbridge
address mqtt.gbridge.io:8883
bridge_attempt_unsubscribe true
bridge_protocol_version mqttv311
cleansession true
remote_username gbridge-uxxxx
remote_password kstl1970
remote_clientid gbridge-uxxxx-qwerty

topic gBridge/uxxxx/+/+ both 0 “” “”
topic gBridge/uxxxx/+/+/set both 0 “” “”
topic cmnd/# in 0 sonoff/ gBridge/uxxxx/
topic cmnd/# out 0 sonoff/ gBridge/uxxxx/
bridge_capath /usr/local/share/certs
bridge_tls_version tlsv1.2

i make the file ca.crt and server.crt following this istructions

Certificate Authority

Generate a certificate authority certificate and key.

  • openssl req -new -x509 -days -extensions v3_ca -keyout ca.key -out ca.crt

Server

Generate a server key.

  • openssl genrsa -des3 -out server.key 2048
    Generate a certificate signing request to send to the CA.
  • openssl req -out server.csr -key server.key -new
    When prompted for the CN (Common Name), please enter either your server (or broker) hostname or domain name.
    Send the CSR to the CA, or sign it with your CA key:
  • openssl x509 -req -in server.csr -CA ca.crt -CAkey ca.key -CAcreateserial -out server.crt -days

and place all the file generated in the directory
C:\usr\local\share\certs

but when i try to start mosquitto

the log file report a error…
1577819683: mosquitto version 1.6.8 starting
1577819683: Config loaded from C:\Program Files\mosquitto/mosquitto.conf.
1577819683: Opening ipv4 listen socket on port 1883.
1577819683: Connecting bridge kappelt-gbridge (mqtt.gbridge.io:8883)
1577819683: OpenSSL Error: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
1577819683: Socket error on client local.gbridge-u4538-qwerty, disconnecting.

What i wrong ?
help me please…

0 Likes