Using WebServiceTemplate with a keystore

后端 未结 6 612
无人共我
无人共我 2021-02-03 10:56

Is it possible to configure a WebServiceTemplate with a java keystore?

edit
I\'m looking for a way to configure the location of the keystore in the

6条回答
  •  醉酒成梦
    2021-02-03 11:22

    The answers and the questions that I found in this post kept me chasing my tail for a while. In the end I got this working for an application I deployed to WebLogic 11g by importing the keystore into the keystore on my Weblogic server:

    C:\bea\jrockit_160_14_R27.6.5-32\jre\bin>keytool -importkeystore -srckeystore \workspace\myProject\webservice.keystore

    Then I changed the configuration for the WebLogic keystore to point to this keystore. You can do this through the WL console: Environment->Servers->AdminServer->Keystores. Change the Keystores: selection to "Custom Identity and Custom Trust", then fill in the path in the Identity(incoming), and Trust(outgoing) sections to your keystore location. On Windows XP, mine was in \Documents an Settings\my id\.keystore.

    I didn't provide the passphrase and I believe it is optional.

提交回复
热议问题