Skip to main content

Error: the trustAnchors parameter must be non-empty (Ubuntu 18.04)

Invalid truststore certificate for SSL communication on Ubuntu 18.04

Written by Petr Pech

How the issue manifests

On Ubuntu 18.04, the following error is displayed:

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

Cause

Java does not have a valid truststore (certificates) available for SSL communication.

👉 this is typically a Java configuration issue on the given system

Solution

Edit the configuration file:

/etc/default/flexibee

and add the following parameter:

FLEXIBEE_ARGS="-Djavax.net.ssl.trustStorePassword=changeit"

Steps

  1. edit the file /etc/default/flexibee

  2. save the changes

  3. restart the ABRA Flexi service

Did this answer your question?