在Eclipse中PKIX路径构建失败
问题描述:
我正在使用Liferay,并使用eclipse,并使用加密套接字(SSL)运行客户端/服务器模型。在Eclipse中PKIX路径构建失败
目前,我的应用程序运行在客户端/服务器连接正常,当我运行在批处理模式下的应用程序,但是当我尝试启动Eclipse中的服务器的应用程序是给我的错误
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
at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
我已经使用在InstallCert.java和jssecacerts复制到
%JAVA_HOME%/ jdk_version/JRE/lib/security中
但为s直到给我错误。我还检查了证书(keytool -v -list)并在根CA中信任地手动安装。可能是什么问题?谢谢!
答
尝试传递certifacate路径VM参数在Eclipse中运行时
-Djavax.net.ssl.trustStore="PATH_TO_jssecacerts"
我试过了,但仍然是相同的错误 – El0din