我正在尝试访问应用程序中的网址,但收到此错误。
1771426 [http-bio-8180-exec-15] ERROR gadget.GadgetValidatorServlet - wsdl.exception.WSInvokerException: wsdl.exception.WSInvokerException: javax.xml.ws.soap.SOAPFaultException: 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
1771426 [http-bio-8180-exec-15] ERROR gadget.GadgetPortalValidatorServlet - gadget.exception.GadgetValidatorException: wsdl.exception.WSInvokerException: wsdl.exception.WSInvokerException: javax.xml.ws.soap.SOAPFaultException: 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
我尝试应用所有这些修复,但没有成功:http://www.mkyong.com/webservices/jax-ws/suncertpathbuilderexception-unable-to-find-valid-certification-path-to-requested-target/
很快它需要运行 InstallCert 应用程序 (java InstallCert my.domain.com) 并生成文件 jssecacerts。之后,我将此文件复制并粘贴到 /opt/java/jdk1.7.0_45/jre/lib/security/jssecacerts 中
我还将我的证书(与我的 ssl url (httpd) 中使用的证书相同)导入到 tomcat 使用的密钥库中。
即使在那之后我仍然收到这个错误。
有什么想法吗?
我过去已经能够通过设置来解决这个问题javax.net.ssl.trustStore
运行时的系统属性指向jssecacerts
文件。只是把它放在“正确”的地方对我来说从来没有用;我必须明确设置位置。无论如何,这更便携,所以如果您的应用程序需要移动,我一般推荐它。
System.setProperty("javax.net.ssl.trustStore", "/path/to/jssecacerts");
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)