PROBLEM:
I would get the following when running 'lein deps' within one of my project directories:
-------------------------------------------
Could not transfer artifact lein-cljsbuild:lein-cljsbuild:pom:1.0.3 from/to central (
https://repo1.maven.org/maven2/): java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
This could be due to a typo in :dependencies or network issues.
If you are behind a proxy, try setting the 'http_proxy' environment variable.
-------------------------------------------
Some searches suggested I might have an empty java keystore which turned out to be the case:
-------------------------------------------
keytool -list -keystore /usr/lib/jvm/java-1.8.0-openjdk-amd64/jre/lib/security/cacerts -v
Enter keystore password:
...
Keystore type: JKS
Keystore provider: SUN
Your keystore contains 0 entries
-------------------------------------------
SOLUTION:
An explanation of the root problem with a resolution can be found here:
In short, it appears the keystore generation script that should run after a jdk ubuntu+debian package is installed doesn't end up running when it needs to, so one must:
-------------------------------------------
root@gl:~# rm /etc/ssl/certs/java/cacerts
root@gl:~# /var/lib/dpkg/info/ca-certificates-java.postinst configure
-------------------------------------------
Again, all credit to 'justus.berlin' for this fix.
- - -
Sidenote - I had an unrelated problem with wget and curl connecting to /any/ SSL website under Debian Jessie, even with 'ca-certificates' package installed. That's just lame.