oelison / ioBroker.matrix-org

Adapter for matrix push messages
MIT License
7 stars 3 forks source link

matrix-org kann nicht auf Server zugreifen #20

Open Chiller2019 opened 1 year ago

Chiller2019 commented 1 year ago

Describe the bug
Fehler in Log sichtbar allerdings nicht nachvollziehbar.

To Reproduce

  1. Erstelle Nutzer
  2. Logge dich ein mit den Nutzer, geh in den Raum
  3. Credentials in ioBroker eingeben
  4. Log sehen

1Expected behavior
Adapter funktioniert nicht obwohl mit Sicherheit die Creds korrekt sind. Ping auf dem Matrix-Server funktioniert einwandfrei. Keine Fehler zu erkennen.

Screenshots & Logfiles

1. ConnectionError: request failed: connect ECONNREFUSED 192.168.XXX:8008 (auch 8448 probiert)
2. Server or room not found. Check port (443/8448), room name and server.

Versions:

Chiller2019 commented 1 year ago

Neuer Fehler auf Port 443

ConnectionError: request failed: unable to verify the first certificate

Leider fehlt hier die Option das rootCA einzufügen oder das Zertifikat schlichtweg zu ignorieren. Wird das in Zukunft vielleicht umgesetzt?

Ähnliches Problem hatte ich bei uptime-kuma, dort funktionierte es aber das Zertifikat hinzuzufügen bzw. zu ignorieren.

Fehler auch nicht behoben nach import des rootCA. Mithilfe der Abfrage über SSH des ioB's: curl -XPOST -d '{"type": "m.login.password", "identifier": {"user": "XXX", "type": "m.id.user"}, "password": "XXX"}' "https://XXX/_matrix/client/r0/login" sieht man das, dass rootCA erfolgreich importiert wurde und es Systemweit funktioniert.

oelison commented 1 year ago

Hey! Sprich mit mir auf Element: https://matrix.to/#/@oelschle:sciphy.de Ich habe da noch ein paar Fragen und ich habe keinen Testserver mit selbst signierter Zertifikaten.

oelison commented 1 year ago

I have set this as enhancement. The first part is not the bug. I think a flag for ignoring the SSL root chain will be a feature request.

oelison commented 1 year ago

matrix-js-sdk is used in the adapter. First search show this old issue: https://github.com/matrix-org/matrix-js-sdk/issues/250

fir3drag0n commented 1 year ago

is there a solution?

oelison commented 1 year ago

is there a solution?

No. Don't use a self signed certificate. You need an official chain of trust. No other solution is wanted.