← Back to team overview

openjdk team mailing list archive

[Bug 1743139] Re: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty

 

Sam Uong's recommendation of switching the PKCS12 keystore type to JKS
fixes the InvalidAlgorithmParameterException.

I experienced this bug while using both openjdk-1.8-jdk and default-jdk
package installs on Ubuntu 18.04. For those that might similarly
discover this bug when attempting to run their gradle builds, you need
to:

1. Follow Sam Uong's post above
2. Kill all gradle processes
3. Re-run your gradle build scripts

I figure this small bit of text may be indexed and help others that
narrow their search on gradle.

-- 
You received this bug notification because you are a member of OpenJDK,
which is subscribed to openjdk-9 in Ubuntu.
https://bugs.launchpad.net/bugs/1743139

Title:
  java.security.InvalidAlgorithmParameterException: the trustAnchors
  parameter must be non-empty

Status in openjdk-9 package in Ubuntu:
  Confirmed

Bug description:
  When trying to access anything using Java + HTTPS, the process is
  terminated with an java.security.InvalidAlgorithmParameterException.
  Adding -Djavax.net.ssl.trustStorePassword=changeit to the command line
  flags of java fixes this problem.

  Either the trust store's password should be changed, or this flag
  sould be added by default.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openjdk-9/+bug/1743139/+subscriptions


References