got java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty when using cas

44,906

This bizarre error message usually means that your specified truststore was not found where you said it was.

Share:
44,906
Admin
Author by

Admin

Updated on August 19, 2022

Comments

  • Admin
    Admin almost 2 years

    we get the following exception in our application under tomcat which is using cas.

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

    when I google for it I found some guess and solutions but no one can help me .

    here is a part of our tomcat server.xml file:

    <Connector SSLEnabled="true" clientAuth="false" keystoreFile="conf/.keystore" maxThreads="150" port="8443" protocol="HTTP/1.1" scheme="https" secure="true" sslProtocol="TLS"/>
    

    we point to our generated keystore.

  • user207421
    user207421 over 12 years
    @downvoter kindly explain your problem with this answer
  • Tim Post
    Tim Post over 12 years
    Got your flag. Ran a check, nothing showing but will monitor.
  • Fayaz
    Fayaz over 7 years
    Thanks, your answer helped. My JVM was pointed to a different location with Java Options.
  • Rahul Kadukar
    Rahul Kadukar over 7 years
    @EJP I never "messed" with your answer. I edited the answer that was changed by somebody else.
  • user207421
    user207421 about 7 years
    @Mr.Napik Post your own answer if you like, but don't mess with mine thanks.