passman-android
passman-android copied to clipboard
Trust anchor for certification path not found when trying to connect via https
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
Afaik, this happens because Android is missing the root cert of LE. Can you try importing the cert into your phone and try again?
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...
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.
I got a new certificate from Let's Encrypt which resolved this for me. It would seem that self sign certs are just trouble.
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.
This looks like a duplicate of #25, which I'm still having problems with ☹