nextcloud / talk_matterbridge

This app brings the Matterbridge binary to your server to connect Nextcloud Talk with other chat services
https://apps.nextcloud.com/apps/talk_matterbridge
GNU Affero General Public License v3.0
39 stars 7 forks source link

Starting gateway failed: certificate signed by unknown authority #64

Open mstyp opened 2 years ago

mstyp commented 2 years ago

I need to disable the tls check. All of my stuff lives on a LAN, there is no need for anything more then a self signed cert (dont even use domain names, just local IP addresses).

I am trying to bridge matrix and xmpp and another nextcloud talk instence.

gary-kim commented 2 years ago

Going to need something like this for Matrix and Nextcloud Talk: https://github.com/nextcloud/spreed/pull/5997

It should already be possible to toggle TLS verification on XMPP bridges (and Matrix, actually).

mstyp commented 2 years ago

It should already be possible to toggle TLS verification on XMPP bridges (and Matrix, actually).

Ok, neat. How do I do this?

sirdrakeistda commented 2 years ago

According to this: https://github.com/42wim/matterbridge/blob/5bc18fb7805e246b8193bd190751fbdb19825364/matterbridge.toml.sample#L1482 You can disable TLS Verification for nctalk. You can copy the line and add it to this file in Nextcloud Spreed (not in talk_matterbridge): https://github.com/nextcloud/spreed/blob/b87198f7228c444a0115b93caff081a5c5172da9/lib/MatterbridgeManager.php#L394-L398

Note: Your changes will be overwritten with every update of Nextcloud Talk/Spreed.

sirdrakeistda commented 2 years ago

I think someone should move this issue to spreed. I think here is the wrong place to discuss a change. Maybe a solution would be to skip TLS verification if server address is an IP address, but that's just an idea.