Java webservice (soap) client - use certificates

后端 未结 4 1517
后悔当初
后悔当初 2021-01-16 06:07

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\" in

相关标签:
4条回答
  • 2021-01-16 06:12

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

    0 讨论(0)
  • 2021-01-16 06:12

    Not sure if this is fully relevant, but still. This entry describes the way of generating the certificate and installing it on a local system without using the keytool. Probably you could reuse some parts of the (very simple) source code.

    0 讨论(0)
  • 2021-01-16 06:15

    See example code in my article. It shows how to dynamically provide the custom keystore to the HTTPS server as for the WS client. http://jakubneubauer.wordpress.com/2011/09/06/java-webservice-over-ssl/

    0 讨论(0)
  • 2021-01-16 06:34

    you might get some samples from the website for this book : http://www.manning.com/kanneganti/

    0 讨论(0)
提交回复
热议问题