得到 java.security.InvalidAlgorithmParameterException: 使用 cas 时 trustAnchors 参数必须为非空
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6633164/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
got java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty when using cas
提问by Jimmy1980
we get the following exception in our application under tomcat which is using cas.
我们在使用 cas 的 tomcat 下的应用程序中遇到以下异常。
java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
java.security.InvalidAlgorithmParameterException:trustAnchors 参数必须非空
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:
这是我们的 tomcat server.xml 文件的一部分:
<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.
我们指向我们生成的密钥库。
回答by user207421
This bizarre error message usually means that your specified truststore was not found where you said it was.
这个奇怪的错误消息通常意味着在您所说的位置找不到您指定的信任库。