Network Error: Chain validation failed

Open
#128 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
28/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
android, apache, debian

Research direction

Start with the reported TLS configuration in /etc/apache2/sites-enabled/nextcloud.conf and compare the fullchain.pem setup with the cert.pem plus SSLCertificateChainFile setup. Reproduce the connection from the Passman Android app against a NextcloudPi instance using the standard Let's Encrypt configuration, then verify that the certificate chain is accepted without manual Apache changes.

Written by the indexing model from the issue text.

Description

My Setup: NextcloudPi Installation on Debian - reachable via freedns-domain, Portforwarding on 443 and 80

My Problem: Passman Android App wouldn't connect to my Nextcloud instance due to "Network Error: Chain validation failed"
Everything else ist working fine, Chrome Extension or normal Access via Browser.

Lets Encrypt Certificates got automaically installed via NextcloudPi's Adminpanel Letsencrypt-App (Certbot?)

I Solved the problem following this instructions, but it might be only temporarily and will be overwritten when the new Certificates are generated.

nano /etc/apache2/sites-enabled/nextcloud.conf

then replaced
SSLEngine on
SSLProxyEngine on
SSLCertificateFile /etc/letsencrypt/live/mynextcloud.domain/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/mynextcloud.domain/privkey.pem

with

SSLEngine on
SSLProxyEngine on
SSLCertificateFile /etc/letsencrypt/live/mynextcloud.domain/cert.pem
SSLCertificateChainFile /etc/letsencrypt/live/mynextcloud.domain/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/mynextcloud.domain/privkey.pem

Maybe Passman is missing support for the Combined Certificates? Could this be added in a future Release, since this is the standard letsencrypt way of installation? This would be great!

I hope my fix helps other

Dominant language
C++
Stars
103
Forks
31
Avg merge
10h 48m
Merged PRs (30d)
13

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from nextcloud/passman-android

All issues in nextcloud/passman-android

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.