我有一个从CAS服务器重定向到的web应用程序。但是我得到了一个例外:
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target所以我用谷歌搜索了一下,发现了很多关于它的帖子。我发现我自己创建的证书必须在javas cacerts中。所以我想出了如何添加它:
keytool -import -alias tomcat -file tomcat.crt -keystore {path to cacerts}\cacerts但是,我收到以下错误消息(德语/英语):
德语:
Keytool-Fehler: java.lang.Exception: Public Keys in Antwort und Keystore stimmen nicht überein英文(译文):
Keytool-Error: java.lang.Exception: Public Keys in the answer and keystore does not match如何匹配公钥?
发布于 2016-09-08 20:49:26
keytool -import -alias tomcat -file tomcat.crt -keystore {path to cacerts}\cacerts您遗漏了-trustcacerts参数。
https://stackoverflow.com/questions/39390956
复制相似问题