You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wss4j-dev@ws.apache.org by José Ferreiro <jo...@gmail.com> on 2006/09/06 12:19:50 UTC
How to start up with keystores, and setting up your own CA (some tips)
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 <re...@yahoo.it> 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<http://schemas.xmlsoap.org/soap/envelope/%7DServer.userException>
> * faultSubcode:
> faultString:
> *java.lang.RuntimeException*: CryptoFactory: Cannot load properties:
> crypto.properties faultActor:
> faultNode:
> faultDetail:
> {
> *http://xml.apache.org/axis/}stackTrace:java.lang.RuntimeException<http://xml.apache.org/axis/%7DstackTrace: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<http://xml.apache.org/axis/%7Dhostname: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
Re: How to start up with keystores, and setting up your own CA (some tips)
Posted by José Ferreiro <jo...@gmail.com>.
For the server side you may define your crypto.properties in the file
deploy.wsdd
using
<!-- if you are signing the message-->
<parameter name="signaturePropFile" value="server.crypto.properties" />
but you have to understand what is happening (in terms of cryptography and
exchange messages)
within <requestFlow>
and <responseFlow>
same thing in the client side configutration file for crypto.propeties.
I will suggest you to label them like this
server side server.crypto.properties and
in the client side client.crypto.properties.
try to read/try this sample too.
http://weblogs.asp.net/jdanforth/archive/2005/01/16/354060.aspx
Hope this helps!
José Ferreiro
On 9/6/06, Ruchith Fernando <ru...@gmail.com> wrote:
>
> 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 <jo...@gmail.com> 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 <re...@yahoo.it> 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: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
--
José Ferreiro
EPFL Communication Systems engineer
ing.sys.com.dipl.EPFL
Re: How to start up with keystores, and setting up your own CA (some tips)
Posted by Ruchith Fernando <ru...@gmail.com>.
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 <jo...@gmail.com> 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 <re...@yahoo.it> 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: wss4j-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: wss4j-dev-help@ws.apache.org
Re: How to start up with keystores, and setting up your own CA (some tips)
Posted by Ruchith Fernando <ru...@gmail.com>.
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 <jo...@gmail.com> 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 <re...@yahoo.it> 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: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: How to start up with keystores, and setting up your own CA (some tips)
Posted by Ruchith Fernando <ru...@gmail.com>.
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 <jo...@gmail.com> 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 <re...@yahoo.it> 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: wss4j-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: wss4j-dev-help@ws.apache.org
Re: How to start up with keystores, and setting up your own CA (some tips)
Posted by Luca Risello <re...@yahoo.it>.
Thank you Josè : ). I'm seeing the the documentation of your links but the problem is in the crypto.properties files for the client and server, their location and the configuration...Sorry if I'm making easy questions but this is my first approach to the argument!
José Ferreiro <jo...@gmail.com> ha scritto: 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 <re...@yahoo.it> 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
__________________________________________________
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
Re: How to start up with keystores, and setting up your own CA (some tips)
Posted by Luca Risello <re...@yahoo.it>.
Thank you Josè : ). I'm seeing the the documentation of your links but the problem is in the crypto.properties files for the client and server, their location and the configuration...Sorry if I'm making easy questions but this is my first approach to the argument!
José Ferreiro <jo...@gmail.com> ha scritto: 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 <re...@yahoo.it> 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
__________________________________________________
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