java.security.InvalidAlgorithmParameterException:使用cas时,trustAnchors参数必须为非空 [英] got java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty when using cas
问题描述
我们在使用cas的tomcat下的应用程序中得到以下异常。
we get the following exception in our application under tomcat which is using cas.
java.security.InvalidAlgorithmParameterException:
trustAnchors参数必须是
非空
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 .
这是tomcat server.xml文件的一部分:
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.
推荐答案
这个奇怪的错误消息通常意味着您找不到指定的信任库。
This bizarre error message usually means that your specified truststore was not found where you said it was.
这篇关于java.security.InvalidAlgorithmParameterException:使用cas时,trustAnchors参数必须为非空的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!