Hi Josè, I Knew it's hard but not so hard...
 
I have modified the crypto.properties file (also client side)
 
server
org.apache.ws.security.crypto.provider=org.apache.ws.security.components.crypto.Merlin
org.apache.ws.security.crypto.merlin.keystore.type=jks
org.apache.ws.security.crypto.merlin.keystore.password=changeit
org.apache.ws.security.crypto.merlin.keystore.alias=secureserver
org.apache.ws.security.crypto.merlin.alias.password=changeit
org.apache.ws.security.crypto.merlin.file=C:/Programmi/Apache/Tomcat_5_0/webapps/axis/WEB-INF/classes/server_keystore
 
 
client
org.apache.ws.security.crypto.provider=org.apache.ws.security.components.crypto.Merlin
org.apache.ws.security.crypto.merlin.keystore.type=jks
org.apache.ws.security.crypto.merlin.keystore.password=changeit
org.apache.ws.security.crypto.merlin.keystore.alias=wss4j
org.apache.ws.security.crypto.merlin.alias.password=changeit
org.apache.ws.security.crypto.merlin.file=C:/Programmi/Apache/Tomcat_5_0/webapps/axis/WEB-INF/classes/prova2/prova2/client/client_keystore
 
 
But running the client (from the eclipse workspace) with this confinguration
 
EngineConfiguration config = new FileProvider("C:\\Programmi\\Apache\\Tomcat_5_0\\webapps\\axis\\WEB-INF\\classes\\prova2\\prova2\\client\\client_deploy.wsdd");

  SalutoService locator = new SalutoServiceLocator(config);
 
 The exception is the same:
 
CryptoFactory: Cannot load properties: crypto.properties
 
 
I don't know what I can do :(
 
Bye.
 
Luca


José Ferreiro <[EMAIL PROTECTED]> ha scritto:
Ciaro LUCA,

I know it is not easy, but this is what we call OPEN SOURCE :-)

Guys like me help you.

I also had this problem, it is funny! (but solved it....)

Please in the crypto.properties file in the server side
complete this line as follows (I guess the problem come from there)
org.apache.ws.security.crypto.merlin.file=C:/tomcat5.5.12/webapps/axis/WEB-INF/classes/keys/server/tirs_server_webservices_dev.jks

I mean adapt the path to the location of your server keystore file [above my sample]

you should adapt it with your file -> server_keystore


Happy AXIS!

José Ferreiro


On 9/7/06, Luca Risello < [EMAIL PROTECTED]> wrote:
Josè apologize for the further "newbie" question here but I'm really at a dead end.
 
I've understood the process but i can't do this in my simple practice scenario...
 
In client keysotre I have keyEntry with alias "wss4j" and trustCertEntry with alias "sercureserver", in server keysotre I have keyEntry with alias "sercureserver" and trustCertEntry with alias "wss4j".
 
client-deploy.wsdd
 
<requestFlow>
    <handler type="java:org.apache.ws.axis.security.WSDoAllSender" >
     <parameter name="user" value="wss4j"/>
     <parameter name="passwordCallbackClass" value="org.apache.ws.axis.oasis.PWCallback"/>
     <parameter name="action" value="Signature Encrypt"/>
     <parameter name="signaturePropFile" value="crypto.properties" />
    </handler>
    </requestFlow>
 
 
deploy.wsdd (server side)
 
<requestFlow>
  <handler type="java: org.apache.ws.axis.security.WSDoAllReceiver">
    <parameter name="passwordCallbackClass" value="org.apache.ws.axis.oasis.PWCallback"/>
    <parameter name="action" value="Signature Encrypt"/>
    <parameter name="signaturePropFile" value="crypto.properties" />
  </handler>
 </requestFlow>
 
 
And crypto.properties files for the client and serwer:
client:
 
org.apache.ws.security.crypto.provider=org.apache.ws.security.components.crypto.Merlin
org.apache.ws.security.crypto.merlin.keystore.type=jks
org.apache.ws.security.crypto.merlin.keystore.password=changeit
org.apache.ws.security.crypto.merlin.keystore.alias=wss4j
org.apache.ws.security.crypto.merlin.alias.password=changeit
org.apache.ws.security.crypto.merlin.file=client_keystore
 
 
 
server:
 
org.apache.ws.security.crypto.provider=org.apache.ws.security.components.crypto.Merlin
org.apache.ws.security.crypto.merlin.keystore.type=jks
org.apache.ws.security.crypto.merlin.keystore.password=changeit
org.apache.ws.security.crypto.merlin.keystore.alias=secureserver
org.apache.ws.security.crypto.merlin.alias.password=changeit
org.apache.ws.security.crypto.merlin.file=server_keystore
 
But the error is
 
CryptoFactory: Cannot load properties: crypto.properties
 
 
I don't know what i can do and there is not "full documentation" to solve my problem or to teach how to use this features...
 
Hopeing in your answer, I wish you good work.
 
Bye
 

 

 

 



____________________________________________________
Yahoo! Messenger with Voice : chiama da PC a telefono a tariffe esclusive



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

Phone: +41 (0)79 644 98 25 [+41 (0)76 526 55 55]




____________________________________________________
Yahoo! Messenger with Voice: chiama da PC a telefono a tariffe esclusive

Reply via email to