Hi,

I have created a key pair each for the client and the server side. I then
imported the client's public key into the server's keystore. Now, my
client-deploy.wsdd looks like this

<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="action" value="UsernameToken Encrypt"/>
     <parameter name="user" value="wss4j"/>
     <parameter name="passwordCallbackClass"
value="com.comp.webservice.PWCallback"/>
     <parameter name="passwordType" value="PasswordDigest"/>
     <parameter name="addUTElement" value="Nonce Created" />
         <parameter name="encryptionPropFile" value="client_crypto.properties" 
/>
     <parameter name="encryptionKeyIdentifier" value="X509KeyIdentifier" />
     <parameter name="encryptionUser" value="privkey" />
     <parameter name="encryptionParts" 
     
value="{Element}{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd}UsernameToken";
/>  
    </handler>
   </requestFlow >
  </globalConfiguration >
</deployment>

and my server-deploy.wsdd looks like this

<deployment xmlns="http://xml.apache.org/axis/wsdd/";
            xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";>

 <service name="SayHelloService" provider="java:RPC">
  <requestFlow>
   <handler type="java:org.apache.ws.axis.security.WSDoAllReceiver">
    <parameter name="passwordCallbackClass" value="PWCallback"/>
        <parameter name="action" value="UsernameToken Encrypt"/>
        <parameter name="decryptionPropFile" value="server_crypto.properties" 
/>  
   </handler>
  </requestFlow>
  <parameter name="className" value="com.comp.webservice.SayHelloService"/>
  <parameter name="allowedMethods" value="*"/>  
 </service>

</deployment>


Everything seems to be right, yet when I run the client, it says 

IOException: Keystore was tampered with, or password was incorrect

What am I doing wrong... I'm guessing its a very fundamental mistake that
I'm not able to notice.

Thanks in advance.
- Neha.

-- 
View this message in context: 
http://www.nabble.com/IOException%3A-Keystore-was-tampered-with%2C-or-password-was-incorrect-tf4841748.html#a13852288
Sent from the WSS4J mailing list archive at Nabble.com.


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

Reply via email to