# Cannot login into Android Rocket.Chat App

**URL:** <https://forums.rocket.chat/t/cannot-login-into-android-rocket-chat-app/5261>\
**Category:** Mobile Apps\
**Created:** [December 10, 2019, 3:11pm UTC](https://forums.rocket.chat/t/cannot-login-into-android-rocket-chat-app/5261 "2019-12-10T15:11:41Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![epsup](https://avatars.discourse-cdn.com/v4/letter/e/f9ae1b/32.png) [@epsup](https://forums.rocket.chat/u/epsup)\
**Post date:** [December 10, 2019, 3:11pm UTC](https://forums.rocket.chat/t/cannot-login-into-android-rocket-chat-app/5261/1 "2019-12-10T15:11:41Z")

</div>

Hi There

I’ve installed rocket.chat on Ubuntu 18.04.3 LTS. For SSL I’ve installed NGNIX as a Reverse Proxy with the following Config:

# Upstreams

upstream backend {  
server 127.0.0.1:3000;  
}

#HTTP to HTTPS Redirect  
server {  
listen 80;  
listen [::]:80;  
server\_name [mydoamin.com](http://mydoamin.com);  
return 301 https://mydoamin.com$request\_uri;  
}

# HTTPS Server

server {  
listen 443;  
server\_name [mydoamin.com](http://mydoamin.com);

```
# You can increase the limit if your need to.
client_max_body_size 200M;

error_log /var/log/nginx/rocketchat.access.log;

ssl on;
ssl_certificate /etc/nginx/certificate.crt;
ssl_certificate_key /etc/nginx/certificate.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # don’t use SSLv3 ref: POODLE

location / {
    proxy_pass http://backend/;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
    proxy_set_header Host $http_host;

    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forward-Proto http;
    proxy_set_header X-Nginx-Proxy true;

    proxy_redirect off;
}

```

}

So everything works fine on the browser with rocket.chat and SSL as well. The Problem ist I cannot login to rocket.chat via the android app. It keep saying the URL is wrong eventhough I can open rocket.chat via the smartphone’s browser. On IPhone I’m able to login to Rocket.Chat via the App.

Does anyone know what the problem is?

Thanks for your help!

---

<div class="post-metadata">

**Author:** ![mcpcyber](https://avatars.discourse-cdn.com/v4/letter/m/c77e96/32.png) [@mcpcyber](https://forums.rocket.chat/u/mcpcyber)\
**Post date:** [December 24, 2019, 11:52am UTC](https://forums.rocket.chat/t/cannot-login-into-android-rocket-chat-app/5261/3 "2019-12-24T11:52:33Z")

</div>

Hello @epsup  
i have the same problem as well , my Reverse Proxy is Microsoft IIS with Application Request Routing .  
there is no problem with Browser and Certificate , just on Android app when i supply credential nothing happened … i try to test with iPhone as soon.

---

<div class="post-metadata">

**Author:** ![mcpcyber](https://avatars.discourse-cdn.com/v4/letter/m/c77e96/32.png) [@mcpcyber](https://forums.rocket.chat/u/mcpcyber)\
**Post date:** [December 24, 2019, 2:36pm UTC](https://forums.rocket.chat/t/cannot-login-into-android-rocket-chat-app/5261/4 "2019-12-24T14:36:10Z")

</div>

on iPhone same issue

---

<div class="post-metadata">

**Author:** ![mcpcyber](https://avatars.discourse-cdn.com/v4/letter/m/c77e96/32.png) [@mcpcyber](https://forums.rocket.chat/u/mcpcyber)\
**Post date:** [December 24, 2019, 2:36pm UTC](https://forums.rocket.chat/t/cannot-login-into-android-rocket-chat-app/5261/5 "2019-12-24T14:36:58Z")

</div>

curl “[https://chat.XYZ.com/api/info](https://chat.XYZ.com/api/info)”  
{“version”:“2.3.2”,“success”:true}

---

<div class="post-metadata">

**Author:** ![epsup](https://avatars.discourse-cdn.com/v4/letter/e/f9ae1b/32.png) [@epsup](https://forums.rocket.chat/u/epsup)\
**Post date:** [January 7, 2020, 1:12pm UTC](https://forums.rocket.chat/t/cannot-login-into-android-rocket-chat-app/5261/6 "2020-01-07T13:12:31Z")

</div>

I’ve managed to fix it.

The problem was NGNIX as the Reverse Proxy. It has for some reason problems with websockets.  
I uninstalled NGNIX and installed Apache as my reverse proxy and followed the instructions here:  
[https://rocket.chat/docs/installation/manual-installation/configuring-ssl-reverse-proxy/](https://rocket.chat/docs/installation/manual-installation/configuring-ssl-reverse-proxy/)

And after that everything worked fine.

I hope this helps someone else that run into this problem.

---

<div class="post-metadata">

**Author:** ![s.m.dehqani](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@s.m.dehqani](https://forums.rocket.chat/u/s.m.dehqani)\
**Post date:** [January 19, 2020, 11:53am UTC](https://forums.rocket.chat/t/cannot-login-into-android-rocket-chat-app/5261/7 "2020-01-19T11:53:20Z")

</div>

Hi

I have same problem too. my revers proxy server is Apache and I have been configured it with best practice that was wrote in RocketChat Docs. when I use my URL that same as [https://chat.company.com](https://chat.company.com) I see “Invalid URL or unable to establish a secure connection…” on **Android Mobile App** but this URL work on browsers and Windows App correctly! If I use [http://chat.company.com:3000](http://chat.company.com:3000),my Mobile Android App connect to server correctly.  
I couldn’t understand whats that.  
Thanks,

---

<div class="post-metadata">

**Author:** ![Flazeh](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/flazeh/32/1615_2.png) [@Flazeh](https://forums.rocket.chat/u/Flazeh)\
**Post date:** [March 24, 2020, 6:25pm UTC](https://forums.rocket.chat/t/cannot-login-into-android-rocket-chat-app/5261/8 "2020-03-24T18:25:27Z")

</div>

I´ve got the same issue than you. I got to solve it adding the intermediate certificate in the /etc/nginx/certificate.crt file (refering the nginx session in the official how to [https://rocket.chat/docs/installation/manual-installation/configuring-ssl-reverse-proxy/](https://rocket.chat/docs/installation/manual-installation/configuring-ssl-reverse-proxy/) )  
Copy and paste it after the certificate data of the certificate file.  
The apache approach works because it adds the intermediate certificate in the procedure.

---

<div class="post-metadata">

**Author:** ![itasp](https://avatars.discourse-cdn.com/v4/letter/i/b9bd4f/32.png) [@itasp](https://forums.rocket.chat/u/itasp)\
**Post date:** [March 24, 2020, 11:27pm UTC](https://forums.rocket.chat/t/cannot-login-into-android-rocket-chat-app/5261/9 "2020-03-24T23:27:23Z")

</div>

Thank You!! works like a charm!🙂

---

<div class="post-metadata">

**Author:** ![capone](https://avatars.discourse-cdn.com/v4/letter/c/6a8cbe/32.png) [@capone](https://forums.rocket.chat/u/capone)\
**Post date:** [May 23, 2022, 8:45pm UTC](https://forums.rocket.chat/t/cannot-login-into-android-rocket-chat-app/5261/10 "2022-05-23T20:45:15Z")

</div>

Please, How did you get intermediate certificate file ?
