Following is a step by step guide on setting up keystores for a client
and a service:

http://www.wso2.net/tutorials/rampart/java/2006/06/29/setting-up-keystores

Thanks,
Ruchith

On 9/6/06, José Ferreiro <[EMAIL PROTECTED]> wrote:
Hello Risello,

Try to understand the keytool included in the Java SDK (how it works,
how to generate keys, certificate request,  etc...).
This will allow you to define a crypto.propeties file... (one should be in
the client side and another one in the server side...)

The following links will be VERY helpful:

http://www.churchillobjects.com/c/11201e.html

 http://www.churchillobjects.com/c/11201g.html


http://marc.theaimsgroup.com/?l=tomcat-user&m=106293430225790&w=2

Happy Axis

José Ferreiro




On 9/6/06, Luca Risello <[EMAIL PROTECTED]> wrote:
>
>
> Good Morning, I'm a student and I'm trying to use wss4j features to secure
SOAP messages. The Problem is that I follow step by step the tutorial
http://ws.apache.org/wss4j/package.html but there are some
problems about the XML Encyption and D.Signature.
>
> I Follow the tutorial but when i run the client with this config file:
>
> <deployment xmlns=" http://xml.apache.org/axis/wsdd/";
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java
">
> <transport name="http"
pivot="java:org.apache.axis.transport.http.HTTPSender"/>
> <globalConfiguration >
> <requestFlow>
> <handler type="java:
org.apache.ws.axis.security.WSDoAllSender" >
> <parameter name="user"
value="16c73ab6-b892-458f-abf5-2f875f74882e"/>
> <parameter name="passwordCallbackClass"
value="org.apache.ws.axis.oasis.PWCallback"/>
> <parameter name="action" value="Signature Encrypt"/>
> <parameter name="signaturePropFile" value=" crypto.properties" />
> </handler>
> </requestFlow>
> </globalConfiguration >
> </deployment>
>
> There is this excepion:
>
> AxisFault
> faultCode: {
http://schemas.xmlsoap.org/soap/envelope/}Server.userException
> faultSubcode:
> faultString: java.lang.RuntimeException : CryptoFactory: Cannot load
properties: crypto.properties
> faultActor:
> faultNode:
> faultDetail:
> {
http://xml.apache.org/axis/}stackTrace:java.lang.RuntimeException
: CryptoFactory: Cannot load properties: crypto.properties
> at
org.apache.ws.security.components.crypto.CryptoFactory.getProperties(CryptoFactory.java
:185)
> at
org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:110
)
> at
org.apache.ws.security.handler.WSHandler.loadSignatureCrypto(WSHandler.java:337)
> at
org.apache.ws.security.handler.WSHandler.doSenderAction
(WSHandler.java:123)
> at
org.apache.ws.axis.security.WSDoAllSender.invoke(WSDoAllSender.java
:170)
> at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32
)
> at
org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
> at org.apache.axis.SimpleChain.invoke(
SimpleChain.java:83)
> at
org.apache.axis.client.AxisClient.invoke(AxisClient.java:127
)
> at
org.apache.axis.client.Call.invokeEngine(Call.java:2784)
> at org.apache.axis.client.Call.invoke (Call.java:2767)
> at org.apache.axis.client.Call.invoke(Call.java:2443)
> at org.apache.axis.client.Call.invoke( Call.java:2366)
> at org.apache.axis.client.Call.invoke(Call.java:1812)
> at prova2.client.Saluto2SoapBindingStub.saluto
(Saluto2SoapBindingStub.java:106)
> at prova2.client.ClientSaluto.main(ClientSaluto.java :49)
> { http://xml.apache.org/axis/}hostname:Chianti
> java.lang.RuntimeException: CryptoFactory: Cannot load properties:
crypto.properties
> at
org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
> at
org.apache.axis.client.AxisClient.invoke(AxisClient.java:216)
> at org.apache.axis.client.Call.invokeEngine(
Call.java:2784)
> at org.apache.axis.client.Call.invoke(Call.java:2767)
> at org.apache.axis.client.Call.invoke (Call.java:2443)
> at org.apache.axis.client.Call.invoke(Call.java:2366 )
> at org.apache.axis.client.Call.invoke(Call.java:1812)
> at prova2.client.Saluto2SoapBindingStub.saluto(
Saluto2SoapBindingStub.java:106)
> at prova2.client.ClientSaluto.main(ClientSaluto.java:49 )
> Caused by: java.lang.RuntimeException: CryptoFactory: Cannot load
properties: crypto.properties
> at
org.apache.ws.security.components.crypto.CryptoFactory.getProperties
(CryptoFactory.java:185)
> at
org.apache.ws.security.components.crypto.CryptoFactory.getInstance(
CryptoFactory.java:110)
> at
org.apache.ws.security.handler.WSHandler.loadSignatureCrypto(WSHandler.java:337
)
> at
org.apache.ws.security.handler.WSHandler.doSenderAction(WSHandler.java:123)
> at org.apache.ws.axis.security.WSDoAllSender.invoke
(WSDoAllSender.java:170)
> at org.apache.axis.strategies.InvocationStrategy.visit(
InvocationStrategy.java:32)
> at
org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118
)
> at
org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
> at
org.apache.axis.client.AxisClient.invoke(AxisClient.java:127)
> ... 7 more
>
>
> I don't understand how to use the certificate and how to configure the
client...somebody can help me please?
>
>
> __________________________________________________
> Do You Yahoo!?
> Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da tanto
spazio gratuito per i tuoi file e i messaggi
> http://mail.yahoo.it



--
José Ferreiro
EPFL Communication Systems engineer
ing.sys.com.dipl.EPFL




--
www.ruchith.org

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to