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

Trust anchor for certification path not found when trying to connect via https #46

Open
adocampo opened this issue Jan 16, 2018 · 6 comments

Comments

@adocampo
Copy link

adocampo commented Jan 16, 2018

Hi there,

After reinstalling the custom ROM on my mobile device (same ROM, new version) passman alpha stopped working properly. If I recall correctly, it did work just fine before.
The fact is, I can't connect to my NC via HTTPS, HTTP connects just fine.
I have a dockerized NC with and one apache reverse proxy with the Let's Encrypt certs. Usual nextcloud clients and web is working as expected, even other apps like notes, calendars, contacts, etc... just passman fails to connect.

The error it gives is:
Network error: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.

Don't know how to debug more to give you something to see. By the way, you can see my let's encrypt certificate on https://cloud.docampo.net
Best,
Angel

@brantje
Copy link
Member

brantje commented Jan 16, 2018

Afaik, this happens because Android is missing the root cert of LE.
Can you try importing the cert into your phone and try again?

@adocampo
Copy link
Author

adocampo commented Jan 16, 2018

Nop, even downloading the cert and installing it on android works. Now the error doesn't pops up, but... nothing. The app doesn't start either.

PS: I can create an account for you to test if you want to dig in...

@mich04
Copy link

mich04 commented Mar 7, 2018

updatedscreenshoot
I think I might be having the same issue. I have a self signed certificate. I can access my server through any web browser okay after adding the exception as well as the Nextcloud app and desktop client. I exported the crt from one of my Linux machines and installed it. I can see it in my user certificates on the device. I am running Android 8.1.0 and Passman 0.14-NIGHTLY.

@mich04
Copy link

mich04 commented Mar 8, 2018

I got a new certificate from Let's Encrypt which resolved this for me. It would seem that self sign certs are just trouble.

@nightduck
Copy link

I was able to correct this error by installing an intermediate certificate on my apache server. See this page for instructions on how to do that.

@IBBoard
Copy link

IBBoard commented May 8, 2019

This looks like a duplicate of #25, which I'm still having problems with ☹

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

No branches or pull requests

5 participants