I have a project with tests that call a web service via https. The web service (https://html5.validator.nu/) uses an Let’s Encrypt issued SSL certificate and the Java 8 version used by CircleCI does not trust it.
This results in
sbt.ForkMain$ForkError: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
As far as I know this is resolved by using the latest Java 8 (8u101).
Is there a way to choose to use a particular Java 8 release?