New: the AI firewall watches the whole platform and explains each incident in plain words. See how it works

Reply To: Windows'ta mosquitto_pub ile Hermetry'ye bağlanırken TLS hatası, ayrıntılı log nasıl alınır?

Translated from Türkçe by AI ·

If you’re not getting CONNACK, you’re stuck in the TLS handshake. There are two things in your command, and both cause that.First, you’re connecting by IP. Hermetry requires SNI, meaning the client has to send the server name during the handshake; when you connect by IP this doesn’t happen and the handshake fails. Use the host name from the Connection details card of your device, the address for your own region.Second, the mosquitto client on Windows does not use the system certificate store by default. In version 2.x there is --tls-use-os-certs, or you can pass a CA bundle you have with --cafile. On my first try I had forgotten both, and got exactly the same message.

mosquitto_pub -d -h <connection details'teki host> -p 8883 --tls-use-os-certs ^
  -i test-pc-01 -u <token> -t v1/telemetry -q 1 -m "{"t":21.4}"

Once the connection opens, you’ll see the following errors (such as CONNACK 4, 5) in the device’s Log tab, along with their causes; the cause for 5 is never sent to the device, it is only written there. The table is here: Cihaz bağlanmıyor.

Accepted solution♥ 7