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

Secure Connection to the library server failed for Ettlingen #577

Closed
dentes-purgo opened this issue Feb 23, 2020 · 8 comments
Closed

Secure Connection to the library server failed for Ettlingen #577

dentes-purgo opened this issue Feb 23, 2020 · 8 comments

Comments

@dentes-purgo
Copy link
Contributor

dentes-purgo commented Feb 23, 2020

See attached Image:
grafik
Yes, i know that Ettlingen has no support contract (see screenshot, ettlingen.json). Maybe I will try to fix it myself.

@dentes-purgo
Copy link
Contributor Author

dentes-purgo commented Feb 23, 2020

It's the following error:

java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.

thrown at

RealConnection.java:319 => sslSocket.startHandshake();
i think ...

maybe this might be helpful...

@dentes-purgo
Copy link
Contributor Author

Seems to be a generall problem concerning all librarys listed here: https://web-opac.kivbf.de/ (tried some, all terminating with the same error)

@dentes-purgo
Copy link
Contributor Author

seems that they have a new certificate which is not trusted by the app
comes from Sectigo limited
which itself is signed by USERTrust RSA Certification Authority

@johan12345
Copy link
Collaborator

Then the certificate authority is probably not included in Android's default trust store (it might still work in e.g. the Chrome for Android browser, but that is updated separately).

We have a script for downloading a certificate and adding it to the app's own trust store - that should help.

@johan12345
Copy link
Collaborator

Why not? It's running one bash command, testing if it works, and sending a Pull request.

@dentes-purgo
Copy link
Contributor Author

Sorry. I deleted my comment by mistake. And I needed a little bit of time to grasp that I have to ommit the https:// in the name of the server.
And it would have been helpful if I had known that I have to run it from the opacclient directory and not from the tools directory to prevent me from getting

ClassNotFoundException: org.bouncycastle.jce.provider.BouncyCastleProvider

Now I added it and the app seems to work again in the emulator.

@johan12345
Copy link
Collaborator

That sounds good! Sorry that there is not too much documentation about these things. But keeping the app working for thousands of libraries not a trivial task, and that's exactly why we have switched to the support contract model after all...

If your updated keystore works, we would gladly accept this change as a Pull Request and include it into the next app release.

@dentes-purgo
Copy link
Contributor Author

Seems that im lacking the authorisation to push ...

17:19 Push failed
Remote: Permission to raphaelm/opacclient.git denied to dentes-purgo.
unable to access 'https://github.com/raphaelm/opacclient.git/': The requested URL returned error: 403

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

No branches or pull requests

2 participants