-
Notifications
You must be signed in to change notification settings - Fork 38
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
Certificate signed by unknow authority #184
Comments
Hello, |
What fields should contain server name? My certificate does contain server name in CN and DNS fields. |
@Artiom-M then it's good... hmm did you use a CA ? |
Yes. And CA's certificate is loaded into Android and trusted. |
I'm also experiencing this with a certificate signed by my own CA. The root and intermediate CA certificates are loaded into the android trust store (as User CAs, the phone is not rooted). |
Are there any plans to get it running with self signed certificates? |
I implemented a workaround for this problem. In this version I used a checkbox to disable ssl certificate checks. This is not the best way to do it, the best option would be to accept the self signed certificate after inspection and do this for every new self signed certificate. But to do this would require to edit the ncsmsgo files and since I don't know anything about the GO language that was not an option. |
I'm using a letsencrypt cert and i'm encountering the same problem. |
I'm not sure what you want me to do, as i have ssl certs configured and working perfectly well for all other applications. Nextcloud SMS is the only app which complains about certificates. |
@swedneck i'm using letsencrypt too with nginx and it works just well (before i got an apache with it and it worked too, but if you miss the SSLCertificateChain it doesn't work, because it cannot validate) |
My bad, turns out nginx was using cert.pem instead of fullchain.pem for some reason. |
Hello. |
@nerzhul The version I modified was pulled directly from the master branch. I don't see why I would be using an old version? |
@SiteMaster1 i have the same problem : No problem with the application nextcloud & nextcloud talk from F-DROID @nerzhul wildcard let's encrypt is not supported by Nextcloud SMS (2.04)? |
@Disciplus86 it's supported because it's golang library support and i'm sure it works, else many binaries in the world will not work, but you should configure the SSLCertificateChain on your server side |
Thx @nerzhul but my reverse proxy on my firewall (pfsense) generate the wildcard let's encrypt certificate, not the nextcloud, nextcloud use an autogenerate certificats. |
Hi, it can't work with self signed certificates at the moment, it has to be allowed in the AndroidManifest. in AndroidManifest.xml insert a new line after 37:android:allowBackup="true": and a new file res/xml/network_security_config.xml with his content:
This gives Android the permission to use self installed certificates, too :-) And if it is working, I will purchase the app in the Store :-) Best regards, |
I am still having this issue. |
Looks like this issue is still relevant, even after a year and a half... You can see my issue/details above ^ Note that the Nextcloud/php versions are higher than they were at that time I posted. |
I have find the solution (for me) with the self signed certificate: do not use reverse proxy (squid) with pfsense, use HAproxy pfsense, and now : all working!!! XD (for me) i have use this tutorial 👍 https://blog.devita.co/pfsense-to-proxy-traffic-for-websites-using-pfsense/ |
@Disciplus86 I'm actually not using those proxies (using Apache). I ended up implementing @cpu20's fix at this commit of his: Just cloned this project down, merged his change into it, gradle built it, and then put it on my phone. Logs me in like a charm. Thank you cpu20! Now if I can figure out how to get it to actually sync and work like an SMS app lol. edit: Note it just takes a little while to sync. There wasn't really any UI iindication of a sync happening. Also wish it would show my messages within the app itself... But maybe I'm asking for too much ;) It seems to work though - I can see all my SMS on the server. So much happier now that I have these things backed up somewhere. |
On the login screen Low level error is shown (see screenshot)
I have the authority certificate for this server loaded into the phone nextcloud app and various sync apps are working without any issue.
Server configuration
Nextcloud version:
13
Android version:
6
Phone:

Samsung
Nextcloud SMS app version:
Latest from F-Droid
The text was updated successfully, but these errors were encountered: