users@glassfish.java.net

Re: Message Level security from non appclient client

From: <glassfish_at_javadesktop.org>
Date: Mon, 29 Oct 2007 03:07:56 PST

hi,

 As the log shows, wsit-client.xml was generated by NetBeans at :
 file:/Users/douglas/NetBeansProjects/SecureCalculator/SecureCalculatorClientApp/build/web/WEB-INF/classes/META-INF/wsit-client.xml

  When you are using a WebClient or Appclient the default Truststore is supplied by GlassFish (JSR 196 CallbackHandler). But when you run as a standalone java client then there is no way to find the Truststore and keystore automatically.

So here is what you have to do :

the wsit-client.xm must be importing another file *Service.xml .

Assuming your client is a NB Project :

1. Right Click on the WebServiceReference node and select "Edit WebService Attributes"
2. This will popup a dialog
3. Select the WSIT Configuration Tab from it
4. Then expand the Certificates entry
5. Select a Keystore and specify the alias and password for the client Key
6. Select a Truststore and specify the alias (corresponding to certificate of the Server) and the password.

If you are looking for sample client side keystore/truststore containing sample keys, here is the link to download :

https://xwss.dev.java.net/keystores/client-keystore.jks
https://xwss.dev.java.net/keystores/client-truststore.jks


Alternatively you can just use the GF keystore.jks and cacerts.jks as the keystore and truststore respectively.

The documentation about wsit-client.xml is in the WSIT Tutorial (https://wsit-docs.dev.java.net/releases/1-0-FCS/index.html). WSIT/Metro is the WebServices Stack in GlassFish.

Thanks.
[Message sent by forum member 'kumarjayanti' (kumarjayanti)]

http://forums.java.net/jive/thread.jspa?messageID=242656