I have noticed a similar issue with openjdk-9 on Ubuntu 18.04 alpha and
getting errors in java applications with exception message:

java.lang.RuntimeException: Unexpected error:
java.security.InvalidAlgorithmParameterException: the trustAnchors
parameter must be non-empty

This is due to the default cacerts for java installed in
/etc/ssl/certs/java/cacerts being in the jks format where the default
keystore.type for OpenJDK-9 is pkcs12.

A simple work around is to edit
/etc/java-9-openjdk/security/java.security and change
"keystore.type=pkcs12" to "keystore.type=jks"

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1739631

Title:
  Fresh install with JDK 9 can't use the generated PKCS12 cacerts
  keystore file

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ca-certificates-java/+bug/1739631/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to