CSDN博客

img yuzhouhenan

axis使用ssl传输协议实现保密性

发表于2008/9/30 10:57:00  539人阅读

 tomcat:server.xml


port="8443" minProcessors="5" maxProcessors="75"
enableLookups="false"
acceptCount="10" debug="0" scheme="https" secure="true">

clientAuth="true" protocol="TLS"
keystoreFile="c:/tomcat 4.0.6/conf/server_keystore" keystorePass="allcom"/>


客户端:
Endpoint变为 "https://localhost:8443/axis/services/HelloWorld";

再在main()里加上:
System.setProperty("javax.net.ssl.trustStore", "D://Tomcat5.5//client.truststore");
System.setProperty("javax.net.ssl.trustStorePassword","changeit");
System.setProperty("javax.net.ssl.keyStore","D://Tomcat5.5//client.keystore")
0 0

相关博文

我的热门文章

img
取 消
img