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

Debian stretch/Ubuntu 18.04: Couldn't reach URL / Trust anchors must be non-empty #2

Open
raabf opened this issue Jul 24, 2018 · 0 comments

Comments

@raabf
Copy link
Contributor

raabf commented Jul 24, 2018

When you run CommunitiesParser on Debian stretch or Ubuntu 18.04 it could happen that the following error appears:

Couldn't reach URL https://www.peeringdb.com/api/netfac

However the real reason is not displayed in the output. A deeper investigation shows that the real problem is the following:

java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty

That again is caused by a malformed local trusted keys store. And the reason why it is malformed is, that Debian stretch and Ubuntu 18.04 generate by default this trusted store in a file format which is only supported by newer versions of java.
It is not something that has to be fixed by CommunitiesParser, but can occur for some users depending on the OS and java version.

The matching bug report is here: https://bugs.launchpad.net/ubuntu/+source/ca-certificates-java/+bug/1739631

A workaround is basically to correctly generate this trusted store manually. There are many posts out there describing this. However a more extended and a good one is here:
https://stackoverflow.com/questions/6784463/error-trustanchors-parameter-must-be-non-empty

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