Quantcast
Channel: The Middleware Shop » WebSphere Shell Script
Viewing all articles
Browse latest Browse all 14

javax.net.ssl.SSLException: ERROR: trustAnchors parameter must be non-empty on WebSphere Liberty

$
0
0

When running a Jython script to manage a Liberty Collective, we face the following error:

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

 

Executing CMD: jython startServer.py --serverName=member1 --serverHost=192.168.0.40 --serverUsrdir=/var/apps/wasnd855_lp/usr --truststore=/var/apps/wasnd855_lp/usr/controller1/resources/security/trust.jk --truststorePassword=secureme --host=192.168.0.40 --port=9443 --user=wasadmin --password=

 Result:

Connecting to the server... An exception was caught while processing the startServer command javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
 

I then tried to see if the trust store existed for example:

ls /var/apps/wasnd855_lp/usr/controller1/resources/security/trust.jk

Result:

ls: cannot access /var/apps/wasnd855_lp/usr/controller1/resources/security/trust.jk: No such file or directory

So, we know that there is a path errors, the solution is to change path to the trust store

/var/apps/wasnd855_lp/usr/servers/

as opposed to:

/var/apps/wasnd855_lp/usr/

facebooktwittergoogle_plusredditpinterestlinkedinmail

Viewing all articles
Browse latest Browse all 14

Latest Images

Trending Articles





Latest Images