Trust anchor for certification path not found

Summary*
Android mobile app not can’t connect

Steps to reproduce
I am testing Mattermost 9.5.2 with Mysql on Ubuntu 22.04. The web access and desktop app work fine.

The Android app version 2.19.0 got the error ‘java.security.cert.CertPathValidatorException: Trust anchor for the certification path not found’. I can access the using the browser on the cell without issues.

I read some posts that the SSL certificate needs to have the full chain included. As far as I can tell, it is.

Others resolved the issue using a web server reverse proxy to include cert and the intermediate/root certificate, which I have not tested yet.

Any other suggestions are greatly appreciated.

Thanks

Richard

I don’t think this will fix this particular issue, but 9.5.8 is available and will have a lot of bug and security fixes. Version archive - Mattermost documentation

Oh, and MySQL support will be ended in version 11. You’ll need to migrate to PostGres sooner rather than later. Migration guidelines from MySQL to PostgreSQL - Mattermost documentation

Hi John,

Thanks for the prompt replies. Does upgrading to 9.5.8 fix the mobile client issue?

This is only a test, I will make sure to use PostgreSQL when I deploy the production later.

Thanks,

Richard

I doubt it. There is a new version of the Android app that just got released Mobile apps changelog - Mattermost documentation But I think this issue is based on how Android handles certificates, and that you need to make sure the entire trust chain is installed on the device.