# Untrusted Certificate on Android Mattermost app

**URL:** <https://forum.mattermost.com/t/untrusted-certificate-on-android-mattermost-app/10229>\
**Category:** Mobile Apps\
**Created:** [August 3, 2020, 1:01pm UTC](https://forum.mattermost.com/t/untrusted-certificate-on-android-mattermost-app/10229 "2020-08-03T13:01:37Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![greavette](https://avatars.discourse-cdn.com/v4/letter/g/6a8cbe/32.png) [@greavette](https://forum.mattermost.com/u/greavette)\
**Post date:** [August 3, 2020, 1:01pm UTC](https://forum.mattermost.com/t/untrusted-certificate-on-android-mattermost-app/10229/1 "2020-08-03T13:01:37Z")

</div>

Mattermost version 5.25.1  
Mattermost Android App - Updated to latest on July 15, 2020

Hello,

I’m attempting to connect to our Mattermost Team Edition server through an Android app. My Mattermost server is hosted locally and we use HAProxy to provide certificates. I’ve configured HAProxy for our Mattermost and from my Phone Browsers and my Desktop Browsers I can connect through https with no issues securely.

But using the Android Mattermost app I receive an “Untrusted Certificate” error?

I’ve tested our cert using sslshopper and there are no issues found.

Is there something I’m missing when using the Android app for Mattermost? Any information this forum can provide for me would be greatly appreciated.

Thank you.

---

<div class="post-metadata">

**Author:** ![greavette](https://avatars.discourse-cdn.com/v4/letter/g/6a8cbe/32.png) [@greavette](https://forum.mattermost.com/u/greavette)\
**Post date:** [August 3, 2020, 1:33pm UTC](https://forum.mattermost.com/t/untrusted-certificate-on-android-mattermost-app/10229/2 "2020-08-03T13:33:30Z")

</div>

I’ll chock this one up to user error. I fixed my problem by reloading my haproxy config file. This has solved my problem with not being able to connect using my Android app.

Case closed. Cheers!

---

<div class="post-metadata">

**Author:** ![MicMac](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/micmac/32/4406_2.png) [@MicMac](https://forum.mattermost.com/u/MicMac)\
**Post date:** [December 30, 2020, 6:46pm UTC](https://forum.mattermost.com/t/untrusted-certificate-on-android-mattermost-app/10229/3 "2020-12-30T18:46:14Z")

</div>

Hello,  
I have installed a Mattermost server on my QNAP nas, I have no problem to connect to it in local and external network via a browser. On the other hand, when I want to connect to it via the android application I have an error message: “Untrusted Certificate”  
I have already tried restarting the server and reinstalling everything but it still does not work.

Can you help me ?

---

<div class="post-metadata">

**Author:** ![ahmaddanial](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/ahmaddanial/32/2938_2.png) [@ahmaddanial](https://forum.mattermost.com/u/ahmaddanial)\
**Post date:** [January 1, 2021, 2:30pm UTC](https://forum.mattermost.com/t/untrusted-certificate-on-android-mattermost-app/10229/4 "2021-01-01T14:30:06Z")

</div>

Hi, @MicMac

Can you please run the [SSL Labs](https://www.ssllabs.com/ssltest/index.html) certificate test against your hostname and share the output here?

That might help us to understand the potential reason behind the issue such as an incomplete certificate chain (which includes root, intermediate, and end user) or other issues.

---

<div class="post-metadata">

**Author:** ![MicMac](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/micmac/32/4406_2.png) [@MicMac](https://forum.mattermost.com/u/MicMac)\
**Post date:** [January 1, 2021, 5:05pm UTC](https://forum.mattermost.com/t/untrusted-certificate-on-android-mattermost-app/10229/5 "2021-01-01T17:05:22Z")

</div>

Hi,  
Thank you for your reply,  
Here is a link to view a pdf containing the test results  
In advance thanks for the help

> **[SSL Server Test\_ avietatechnique.ddns.net (Powered by Qualys SSL Labs).pdf](https://drive.google.com/file/d/1VTW282hAJHhDcw_BrFhAZd_TUVBsHzu5/view?usp=sharing)**
>
> Google Drive file.

---

<div class="post-metadata">

**Author:** ![ahmaddanial](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/ahmaddanial/32/2938_2.png) [@ahmaddanial](https://forum.mattermost.com/u/ahmaddanial)\
**Post date:** [January 1, 2021, 5:10pm UTC](https://forum.mattermost.com/t/untrusted-certificate-on-android-mattermost-app/10229/6 "2021-01-01T17:10:12Z")

</div>

Hello, @MicMac

You are welcome. I checked `avietatechnique.ddns.net` on my end and based on the result, I can see that the certificate is `NOT TRUSTED` which could be due to the following potential issues:

> **[SSL Server Test: avietatechnique.ddns.net (Powered by Qualys SSL Labs)](https://www.ssllabs.com/ssltest/analyze.html?d=avietatechnique.ddns.net#whyNotTrusted)**

Can we start by going through each of them and verify the reason behind the issue you are getting on the Android app?

---

<div class="post-metadata">

**Author:** ![MicMac](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/micmac/32/4406_2.png) [@MicMac](https://forum.mattermost.com/u/MicMac)\
**Post date:** [January 1, 2021, 6:21pm UTC](https://forum.mattermost.com/t/untrusted-certificate-on-android-mattermost-app/10229/7 "2021-01-01T18:21:31Z")

</div>

Thanks for the leads, the certificate issue is resolved, indeed I host Mattermost on my nas and the certificates for my nas were expired. However I have another problem now 😒

“Unsupported server version”

---

<div class="post-metadata">

**Author:** ![ahmaddanial](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/ahmaddanial/32/2938_2.png) [@ahmaddanial](https://forum.mattermost.com/u/ahmaddanial)\
**Post date:** [January 1, 2021, 6:29pm UTC](https://forum.mattermost.com/t/untrusted-certificate-on-android-mattermost-app/10229/8 "2021-01-01T18:29:21Z")

</div>

Hi, @MicMac

You are most welcome. The `Unsupported server version` potentially mean that you are running on an older version of Mattermost Server.

Can you please confirm that you are running on at least Mattermost Server **5.25** based on the [mobile changelog](https://docs.mattermost.com/administration/mobile-changelog.html#release) documentation that we have here?

> - Server Versions Supported: Server v5.25+ is required, Self-Signed SSL Certificates are not supported unless the user installs the CA certificate on their device
