TeamCity GitHub Error: javax.net.ssl.SSLException Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
Hi guys,
I've attempted to setup TeamCity 2018.1 on a fresh Ubuntu 18.04 Desktop install. When I attempt to create a new project from GitHub and login, I receive the error:
Error: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty (full trace uploaded as teamcityerror.txt).
I've tried to use both openjdk and Sun Java 8 as the engine, as well as tried the command 'sudo update-ca-certificates -f' to ensure that my certificates are present but I've made no headway and it's now getting quite frustrating.
Any ideas how I can move forwards?
Many thanks
Please sign in to leave a comment.
Hi,
This is pretty strange, I haven't really found any recent instance of this issue, so I'm assuming there has to be something wrong in your environment, as we test github extensively, and have large amounts of users who use it.
I've managed to find this: https://stackoverflow.com/questions/6784463/error-trustanchors-parameter-must-be-non-empty
Could you check that your truststore meets the requirements?
Hi Denis,
I've resolved the issue, as your link mentioned, it's a bug in Ubuntu 18.04's default keystore format. This will be fixed in the 18.04.1 release, but until then it can be fixed by updating from the proposed repository.