krille-chan / fluffychat

The cutest instant messenger in the [matrix]
https://fluffychat.im/
GNU Affero General Public License v3.0
1.12k stars 198 forks source link

On self-signed certs, the app does not want to connect #938

Open MajliTech opened 6 months ago

MajliTech commented 6 months ago

Bug Description

When I connect to my internal Matrix server (matrix.serwer.intranet) via HTTPS, I cannot get the login page. Instead, I get the generic "Oops, something went wrong..." image

Steps to Reproduce

  1. Install the latest F-Droid version
  2. Try to connect to a server with self-signed certificate

Expected Behavior

A warning about an invalid SSL certificate, and an option to login into the server.

App Version

1.18.0

Additional Platform Information

Device: moto g72, Android 13

Additional Context

# [WARNING] Something went wrong:  - HandshakeException: Handshake error in client (OS Error: CERTIFICATE_VERIFY_FAILED: self signed certificate(handshake.cc:393))

The issue for me only happens on Android; the web version at fluffychat.com seems to work for me.

Mikaela commented 6 months ago

Shouldn't you be importing the certificate to Android instead?

MajliTech commented 6 months ago

When I imported the certificate, now. I get:

CERTIFICATE_VERIFY_FAILED: unable to get local issuer certificate(handshake.cc:393))
MajliTech commented 6 months ago

The issue also appears in the Flatpak app:

CERTIFICATE_VERIFY_FAILED: unable to get local issuer certificate(handshake.cc:393))
vince090416 commented 6 months ago

You should use free ZeroSSL or let's encrypt, my server is ok.

MajliTech commented 6 months ago

Check my domain, nobody 's veryfing .intranet

vince090416 commented 6 months ago

Maybe you could ignore Certificate Validation in the intranet, and then rebuild it. change matrix_api.dart, request function

github-actions[bot] commented 1 month ago

This issue is stale because it has been open for 120 days with no activity.