HTTPS证书问题
我在使用证书文件时遇到以下错误,我已生成相同的信任库并将其传递给 XmlRpcCommonsTransportFactory
org.apache.xmlrpc.XmlRpcException:与 HTTP 服务器通信时出现 I/O 错误:sun.security.validator.ValidatorException:PKIX 路径构建失败:sun.security.provider.certpath.SunCertPathBuilderException:无法找到有效的证书路径到请求的目标
I am getting following error while using certificate file, I have generated truststore of the same and passing it to XmlRpcCommonsTransportFactory
org.apache.xmlrpc.XmlRpcException: I/O error while communicating with HTTP server: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为您正在处理的是证书链问题,而不是 XML-RPC 特定问题。
您将需要了解如何让您的 XML-RPC 客户端隐式信任该证书,并且只进行粗略的验证。
有这样的例子,我只是不确定如何将它绑定到您的特定 XML-RPC 客户端。
What I think you're dealing with is a certificate chain issue and not an XML-RPC specific issue.
You will need to look up how to get your XML-RPC client to implicitly trust the certificate and not do more than a cursory validation.
There are examples of this, I'm just not sure how to tie it to your particular XML-RPC client.
这里的问题是您的信任库不信任对等方提供的证书。
这到底是什么意思?
The issue here is that your truststore doesn't trust the certificate provided by the peer.
What exactly do you mean by that?