使用 Apache Axis 通过 SSL 进行客户端 Web 服务调用
我正在使用 Apache Axis 1.5.1 编写通过 SSL 连接到服务的 Web 服务客户端。我的应用程序在 Tomcat 中运行,并在 JKS 中设置 SSL 配置。但是,当我连接到服务器时,连接失败,因为来自客户端的证书没有发送到服务器。这是必须在客户端通过代码设置的东西吗?另请注意,服务器不需要任何用户名或密码验证。关闭 SSL 后,一切正常。
谢谢,
I'm using Apache Axis 1.5.1 to code a web service client connecting to a service over SSL. My application is running in Tomcat with SSL configuration setup in JKS. However, when I connect to the server, the connection is failing because the cert from our client is not being sent to the server. Is this something that has to be set in the client through code? Also note that the server does not need any user name or password authentication. With SSL turned off, everything works fine.
Thanks,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这里有两种常见的方法:
http://ws.apache.org/xmlrpc/ssl.html
WebLogic 有自己的东西:
http://download.oracle.com/docs /cd/E12840_01/wls/docs103/security/SSL_client.html#wp1029670
Two common approaches here:
http://ws.apache.org/xmlrpc/ssl.html
WebLogic has its own stuff:
http://download.oracle.com/docs/cd/E12840_01/wls/docs103/security/SSL_client.html#wp1029670
只要您在 Tomcat 可以访问的信任存储中正确配置了证书,Apache Axis HTTP 代码就不会发生任何更改。
As long as you have the certificates configured correctly in your trust store accessible to Tomcat, there are no changes to Apache Axis HTTP code.