[Android] Self-hosted instance discovery fails with user-installed CA (CERTIFICATE_VERIFY_FAILED)

(#4126) Bug Open: Confirmed Priority: P2 mobile self-hosting

Thread

Comment by Wolfae
Wolfae OP1 vote
Update — 6 November 2026: Still reproducible on latest Android beta and freshly updated self-hosted instance I've retested this issue after updating both the server and Android client. Current environment:
  • Android client: 2026.11.100-beta.4
  • Device: Samsung Galaxy S25 Ultra
  • Android version: 17
  • Server: Freshly updated Fluxer self-hosted deployment (5 November 2026 Compose release)
  • Instance: https://(LAN URL)
  • TLS: Private CA, installed and trusted by Android's user certificate store
Observed behaviour: The Android application now displays a different frontend error: Failed to reach https://(LAN URL)/api/.well-known/fluxer (unknown) However, ADB Logcat reveals that the underlying failure is unchanged:
[InstanceDiscovery] Request failed for
https://(LAN URL)/api/.well-known/fluxer
type=DioExceptionType.unknown status=unknown message=null

DioException [unknown]: null
Error: HandshakeException: Handshake error in client
(OS Error: CERTIFICATE_VERIFY_FAILED:
self signed certificate in certificate chain
(handshake.cc:319))
The exception originates from InstanceDiscoveryService._fetchWellKnown at instance_discovery_service.dart:96. Conclusion: Despite updating both the server and Android application, the original certificate verification failure remains reproducible. The frontend error presentation has changed, but the underlying Flutter/Dart TLS handshake failure has not. This appears consistent with the original report concerning certificate trust for privately hosted instances. I can provide additional ADB diagnostics if useful.