[QUESTION] Not able to connect to server
Description
I am having trouble connecting to my self-hosted instance of RocketChat via the mobile Android App.
When I open the app, it prompts me for the server URL, which I provide. But after clicking "submit", it returns the error: "An error has occurred while checking your server version, please try again".
I am able to connect to the server from the same mobile phone via browser. I am also able to connect from the desktop and the RocketChat+ desktop program. I also checked with a colleague, and she is able to connect via the iPhone iOS app.
This server that I'm connecting to is using a GoDaddy SSL wildcard cert, with a PEM Phrase.
I had previously provisioned another RocketChat server (same version) with a LetsEncrypt SSL cert. I am able to connect to that server via the mobile app (or at least, I'm prompted for a login).
In both instances, the method of installation was roughly following this: https://rocket.chat/docs/installation/paas-deployments/aws/
I have also confirmed that the Nginx settings are correct.
Devices and Versions
Rocket Chat Version: 0.64.2 Android App Version: 2.1.1
@earlng Can you share your server URL? And what version is it? If you wanna share in private with me: rafael.kellermann at rocket.chat.
Hi @rafaelks, unfortunately, i'm not at liberty to share the URL of the server/grant you access. But I've mentioned that the rocketchat version is 0.64.2
It's also a problem.
Rocket Chat Version: 0.64.2 Android App Version: 2.2
"An error has occurred while checking your server version, please try again"
@perchibald What's your server URL?
do I need to grant access?
@perchibald I believe you're having issues to access because of your SSL:

what's wrong with the certificate? in the browser works, in the native application on Linux works, and on Windows too
@perchibald Your server is lacking the Intermediate Certificates configuration (or is misconfigured) (https://developer.android.com/training/articles/security-ssl#MissingCa)
https://knowledge.geotrust.com/support/knowledge-base/index?page=content&actp=CROSSLINK&id=SO17664

@earlng I'm almost sure you have the same problem. If you could run https://www.sslchecker.com/sslchecker on your domain to check.
This is an example of a misconfigured host
And here what you should get for a host with the Intermediate Certificates configured

You are able to connect via iPhone probably because iOS already trusts this intermediate certificate, and the web browser caches them. So if you ever accessed a url that uses the same certificate chain, it will work even with misconfigured hosts...
http://nginx.org/en/docs/http/configuring_https_servers.html#chains
thanks guys! everything worked out))
Yeap! We fixed our certs on our end, the vendor signed is now yes, and the Android app is now able to connect to server. Closing issue.
HI, I am having the same problem connecting andriod app to
https://ebcweb.certissecurity.com
We're also experiencing this issue on private server. Certificate is from Let's Encrypt and passes all SSL tests. Some Android versions seems to be working ok but e.g. mine gives the same error, "error checking while checking the server version". Android version 7.0, Rocket.chat client version 2.6.1 and server 0.69.2.
Rocket chat installed with dockerc-compose and located behind Nginx-proxy. Web version works fine.
Fixed it in my case by removing
ssl_ecdh_curve secp384r1;
from nginx configuration. Not sure why this is issue for some Androids but looks like it is.
i don't have this line in my Nginx configuration. ssl_ecdh_curve secp384r1;
how can i resolve the same problem?
Have you checked from any included configuration files? In my case I found it out by simply disabling all ssl-related configuration parameters (except the critical ones, ie. cert paths etc.) and then re-enabling them one by one while reloading configuration every time and testing. Ended up with this line that broke it.
@earlng How did you solve this?
I got lost ROOT 1 missing at the last circle
@earlng How did you solve this? I got lost
ROOT 1 missingat the last circle
Same here, I have a feeling it's got something to do with ROOT_URL variable.