java 使用 Apache Axis 通过 SSL 调用客户端 Web 服务
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2336497/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Client Web Service call over SSL using Apache Axis
提问by java_pill
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.
我正在使用 Apache Axis 1.5.1 对通过 SSL 连接到服务的 Web 服务客户端进行编码。我的应用程序在 Tomcat 中运行,并在 JKS 中设置了 SSL 配置。但是,当我连接到服务器时,连接失败,因为来自我们客户端的证书没有发送到服务器。这是必须通过代码在客户端设置的东西吗?另请注意,服务器不需要任何用户名或密码验证。关闭 SSL 后,一切正常。
Thanks,
谢谢,
回答by Mykhaylo Adamovych
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
这里
有两种常见的方法:
http: //ws.apache.org/xmlrpc/ssl.html
WebLogic 有自己的东西:http:
//download.oracle.com/docs/cd/E12840_01/wls/docs103/security/SSL_client。 html#wp1029670
回答by java_pill
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.
只要您在 Tomcat 可访问的信任库中正确配置了证书,Apache Axis HTTP 代码就不会发生变化。

