使用 WebSphere、Spring-WS 和 WSS4J 进行 WebService 证书验证
我正在开发一个使用 Spring-WS 2.0 提供 SOAP WebServices 的 Web 应用程序。 WebService 请求需要使用证书进行签名,该证书当然会在服务器上进行验证。为了做到这一点,使用 WSS4J 并使用信任库 - 这里是 spring-config:
<bean class="org.springframework.ws.soap.security.wss4j.Wss4jSecurityInterceptor">
<property name="validationActions" value="Signature" />
<property name="validationSignatureCrypto">
<bean class="org.springframework.ws.soap.security.wss4j.support.CryptoFactoryBean">
<property name="keyStorePassword" value="pass"/>
<property name="keyStoreLocation" value="location"/>
</bean>
</property>
</bean>
应用程序应该部署到 WebSphere 7,主要要求是信任库不应随应用程序一起提供,而应由应用程序服务器提供。 有谁知道我如何实现WebSphere 提供信任库或如何配置WebSphere 来执行安全授权?主要的挑战似乎是使用 Spring-WS,而不是使用 WebSphere 的 WebServices 工具......
i'm working on a webapp offering SOAP WebServices using Spring-WS 2.0. The WebService Requests need to be signed with a certificate which is of course validated on the server. In order to do this WSS4J and a truststore is used - here the spring-config:
<bean class="org.springframework.ws.soap.security.wss4j.Wss4jSecurityInterceptor">
<property name="validationActions" value="Signature" />
<property name="validationSignatureCrypto">
<bean class="org.springframework.ws.soap.security.wss4j.support.CryptoFactoryBean">
<property name="keyStorePassword" value="pass"/>
<property name="keyStoreLocation" value="location"/>
</bean>
</property>
</bean>
The application should be deployed to WebSphere 7 and the major requirement is, that the truststore should not be shipped with the application but be provided by the Application Server.
Does anybody know how i can achieve, that WebSphere either provides the truststore or how WebSphere can be configured to perform the security authorization ? The major challenge seems to be, that Spring-WS is used instead of using the WebSphere's facility for WebServices...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不使用 Spring-WS 所以不知道它的细节。
WAS 有一个信任库,用于存储受信任的签名者证书列表。
如果您愿意,密钥库和信任库可以保留多个级别(例如节点、单元等)。
有关详细信息,您可以查看公开的 PPT
http:// www.websphereusergroup.org.uk/wug/files/presentations/25/25_3_WAS61SecUpdate.pdf。
我不知道您使用的WAS版本是WAS 6.1和WAS 7.x是目前使用最广泛的版本!
华泰
曼鲁
I don't work with Spring-WS so don't know the details of it.
WAS has a truststore which is where the list of trusted signer certificates are stored.
THe keystores and truststores can kept @ multiple levels if you desire (e.g node,cell etc).
For detailed info you can look at a publicly available PPT
http://www.websphereusergroup.org.uk/wug/files/presentations/25/25_3_WAS61SecUpdate.pdf.
I don't know the version of WAS that you are using WAS 6.1 and WAS 7.x are the most widely used ones these days!
HTH
Manglu