0 Replies Latest reply on Jun 15, 2006 7:58 AM by Peter Buus

    WS client with selfcontained truststore and keystore

    Peter Buus Newbie

      I am developing an application using a jbossws JSR 109 client to connect to an external webservice protected by 2-way SSL.
      So far I have been able to pack all my deployment into a single .ear file that can be deployed on a out-of-the box 4.0.4GA jboss server, but I am not able to figure out how to configure keystore and truststore programmatically. Preferably distributing the keystores somewhere in the .ear file.

      I tried to configure the following jboss-client, but it does'nt seem to work

      <!DOCTYPE jboss-client PUBLIC
       "-//JBoss//DTD Application Client 4.0//EN"
       "http://www.jboss.org/j2ee/dtd/jboss-client_4_0.dtd">
      
      <jboss-client>
       <jndi-name>ws4ee-client</jndi-name>
       <service-ref>
       <service-ref-name>PIDCPRService</service-ref-name>
       <wsdl-override>https://test.pid.certifikat.dk/pidwsv2/pidws?WSDL</wsdl-override>
       <call-property>
       <prop-name>org.jboss.ws.keyStore</prop-name>
       <prop-value>/META-INF/properties/PIDTest.jks</prop-value>
       </call-property>
       <call-property>
       <prop-name>org.jboss.ws.keyStorePassword</prop-name>
       <prop-value>Test1234</prop-value>
       </call-property>
       <call-property>
       <prop-name>org.jboss.ws.trustStore</prop-name>
       <prop-value>/META-INF/properties/tdcssl.jks</prop-value>
       </call-property>
       <call-property>
       <prop-name>org.jboss.ws.trustStorePassword</prop-name>
       <prop-value>gnyffe</prop-value>
       </call-property>
       </service-ref>
      </jboss-client>


      /Peter