简体   繁体   English

如何使用密钥库和信任库配置Spring Ws?

[英]How to configure Spring Ws with keystore and trustore?

Where do I place these commands in Spring Ws 我在哪里将这些命令放在Spring Ws中

-Djavax.net.ssl.keyStore=tomcat.keystore
-Djavax.net.ssl.keyStorePassword=tomcat
-Djavax.net.ssl.trustStore=tomcat.keystore
-Djavax.net.ssl.trustStorePassword=tomcat
-Djavax.net.debug=SSL

Do i have to place it as arguments or specify the properties in some class.I have Spring WS annotation based configuration can I configure the properties in the application itself. 我是否必须将其作为参数放置或在某个类中指定属性。我有基于Spring WS注释的配置我可以在应用程序本身中配置属性。

I got the solution I can either set the properties using 我得到了解决方案,我可以使用设置属性

System.setproperty("-Djavax.net.debug","SSL");

Or I can specify these arguments with tomcat7 when the server starts running. 或者我可以在服务器开始运行时使用tomcat7指定这些参数。 Go to eclipse->right click on project->click run configuration->select tomcat ->select arguments->paste the property->click apply And then restart tomcat 转到eclipse->右键单击项目 - >单击运行配置 - >选择tomcat - >选择参数 - >粘贴属性 - >单击应用然后重启tomcat

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM