Hi all :)

I'm new on this mailing list and I hope that my questions and my english
won't be too bad ^^ So I try to implement the WSSecurity using wss4j into
Axis and I encountered some problems. I found this tutorial :
http://www.devx.com/Java/Article/28816/1954?pf=true. After following it
point per point I obtain the good lines in the JKS :

Keystore type: jks
   Keystore provider: SUN

   Your keystore contains 2 entries

   privkey, Jul 25, 2005, keyEntry,
   Certificate fingerprint (MD5):
     E7:4A:D9:D7:67:A6:6D:E7:A5:C4:28:22:3D:C5:C4:30
   pubcert, Jul 25, 2005, trustedCertEntry,
   Certificate fingerprint (MD5):
     99:8F:14:C5:BB:21:86:77:D2:CF:56:DE:98:DD:74:62

(I've go other fingerprint but same lines) and my crypto.properties file
looks like that :

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=security
org.apache.ws.security.crypto.merlin.keystore.alias=privatekey
org.apache.ws.security.crypto.merlin.alias.password=security
org.apache.ws.security.crypto.merlin.file=privateKeyStore

but unfortunately, when I launch the class into eclipse, the following
error came :
org.apache.ws.security.WSSecurityException: General security error
(Unexpected number of X509Data: for Signature)
        at
org.apache.ws.security.message.WSSignEnvelope.build(WSSignEnvelope.java:251)
        at test.WSEncrypter.signSOAPEnvelope(WSEncrypter.java:178)
        at test.WSEncrypter.main(WSEncrypter.java:109)

After many researchs, I found a post into this mailing list :)
http://mail-archives.apache.org/mod_mbox/ws-wss4j-dev/200602.mbox/browser

I get the crypto.properties file and the x509.PFX.MSFT file given as
example into wss4j and... It works ! So I don't understand why my jks
doesn't :(

Any idea/explanations ? :)

Best regards

Tabin Cédric



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

Reply via email to