Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Unable to connect to server using self signed cert #1836

Closed
xgdgsc opened this issue Mar 6, 2020 · 15 comments
Closed

[BUG] Unable to connect to server using self signed cert #1836

xgdgsc opened this issue Mar 6, 2020 · 15 comments
Labels

Comments

@xgdgsc
Copy link

xgdgsc commented Mar 6, 2020

  • Your Rocket.Chat Experimental app version: #### 4.4.0
  • Your Rocket.Chat server version: #### 2.4.1
  • Device (or Simulator) you're running with: #### Android and ios

Is it possible to support this?
https://stackoverflow.com/questions/36289125/react-native-fetch-from-https-server-with-self-signed-certificate
my url is something like https://DOMAIN.com:12222/ I tried ios and android import cert but none works.

@djorkaeffalexandre djorkaeffalexandre changed the title unable to connect to site using self signed cert [BUG] Unable to connect to server using self signed cert Mar 6, 2020
@djorkaeffalexandre
Copy link
Collaborator

djorkaeffalexandre commented Mar 6, 2020

Hey @xgdgsc, can you reach me on https://open.rocket.chat?
My username is djorkaeff.alexandre.
It should be fixed by #1310 .
But let's talk to see what can be your problem.
Thanks.

@djorkaeffalexandre
Copy link
Collaborator

@xgdgsc created a certificate using Lets encrypt and all works fine, maybe it was a mistake with the creation of the self signed certificate.
Closing.

@adrastest
Copy link

invalid URL or unable to establish a secure connection
I want to connect from Android rocket chat react native version 4.5.0 to my local rocket chat server but it alert me the above error.
my server is https://10.20.... with self signed certificate.
anyone help me.
thanks in advance

@diegolmello
Copy link
Member

@adrastest we worked on certificate issues on last versions of the app (We're on 4.14.0 now).
Update it and try again.
If the problem persists, open a new issue for you.
Thanks.

@adrastest
Copy link

@diegolmello when i run version (4.14.0) it show me this error
app:installExperimentalPlayDebug?
nay help

@yash-rajpal
Copy link
Member

@adrastest Can you share what commands are you using to run app?

@adrastest
Copy link

adrastest commented Feb 4, 2021

@yash-rajpal I use yarn android

@yash-rajpal
Copy link
Member

Can you share more error logs?

@adrastest
Copy link

@yash-rajpal I clean the cache and run again it worked but
can not to connect with my local https server which has self signed certificate.

@yash-rajpal
Copy link
Member

What's the problem? Just use your system's IP address and port on which server is running like this

http://IP:port -> Enter this url when it asks for server url.

@adrastest
Copy link

@yash-rajpal the problem is when I want to connect rocket chat server via Android rocket chat react native 4.14.0
it alert me (Java.security.cert.certpahtvalidatorException
trust anchor for certification path not found)
my server is like https://10.20.1.111:5000

@adrastest
Copy link

@yash-rajpal and it is working via http URL but not working with https
however I install server certificate in Mobile app.

@adrastest
Copy link

@yash-rajpal @diegolmello
self signed certificate still not solved any new suggestion ?

@diegolmello
Copy link
Member

@adrastest I'm sorry about the silence here, but I asked you to open a new issue if the problem persists #1836 (comment)

Self signed certificate is quite hard for us to be able to help (requires access to server, certificate, user, etc).
What we do every release is to QA on our configured servers.

@adrastest
Copy link

adrastest commented Feb 27, 2021

thank you @diegolmello
I created a new issue( self signed certificate not supported?).
#2879

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants