Java webservice(soap)客户端 - 使用证书 [英] Java webservice (soap) client - use certificates

查看:157
本文介绍了Java webservice(soap)客户端 - 使用证书的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试通过ssl与客户端证书连接到webservice。除了将javax.net.ssl.keyStore推送到System.properties中之外,还有一种优雅的方法。

I am trying to connect to a webservice over ssl with a client certificate. Is there an elegant way of doing this apart from shoving things like "javax.net.ssl.keyStore" into System.properties.

任何指向代码示例的指针都将被赞赏。

Any pointers to code examples would be appreciated.

推荐答案

您可以将证书安装到系统密钥库中。 (位置因平台而异,您需要管理员权限)。

You could just install the cert into the system keystore. (Location varies across platforms, and you will need admin rights).

这篇关于Java webservice(soap)客户端 - 使用证书的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆