【发布时间】:2015-03-30 10:11:47
【问题描述】:
我有一个在 ubuntu 12.04 上使用 java 7 和 tomcat 6 的 Web 应用程序。它使用 apache cxf 通过 https 对不同服务器上的 Web 服务进行 REST 调用。直到今天上午 11 点左右,它一直运行良好。然后对于每个 REST 调用,无论是 GET 还是 POST,我都会收到
javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
Caused by: 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 errors in catalina.out.
证书在
jdk/jre/lib/security/cacerts
直到2018年才到期。当我重新启动tomcat时,程序运行正常。
知道什么会触发这个吗?
提前致谢
兰迪
【问题讨论】: