azavea / ansible-java

An Ansible role for installing Java.
Apache License 2.0
4 stars 15 forks source link

Link JAVA SSL certificates after installing OpenJDK #26

Closed tnation14 closed 6 years ago

tnation14 commented 6 years ago

When installing OpenJDK, the postinstall step responsible for populating /etc/ssl/certs/java/cacerts fails, leading to error messages like the one described in WikiWatershed/model-my-watershed#2167:

Unable to execute HTTP request: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty

The solution, from the ca-certificates-java bug, is to run /var/lib/dpkg/info/ca-certificates-java.postinst after installing the JDK.