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

Support self-signed certificates #62

Open
kabo opened this issue Jan 4, 2019 · 2 comments
Open

Support self-signed certificates #62

kabo opened this issue Jan 4, 2019 · 2 comments

Comments

@kabo
Copy link

kabo commented Jan 4, 2019

I put an nginx in front of the server with a self signed certificate. I'm getting the following message in the android client:

Server test failed, please verify your configuration. - (java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.)

I'm running a local server on an internal IP, not exposed to the internet, so can't get a LetsEncrypt cert.

@kabo
Copy link
Author

kabo commented Jan 4, 2019

If I add verify=False to line 96 of photobackup.py it says the request was successful. So I know the server is set up correctly.

@kabo
Copy link
Author

kabo commented Jan 4, 2019

DAVx5 also uses okhttp but it pops up a confirmation window allowing me to manually verify that the certificate presented it the correct one. DAVx5 seems to have created a lib for this behaviour.

https://gitlab.com/bitfireAT/cert4android

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

1 participant