Hi all,

I've got a little understanding problem with those certificates. I follow
theses steps (with keytool) :
1) I create 2 keystores, with a key for each one of them
2) I sign (with -selfcert) both keys
3) I export the key (public key) into a file certificate.cer from the 1st
keystore
4) I import the certificater.cer into the 2nd keystore.

Now I've got 2 keys in my keystore : keyEntry (privatekey) and
trustedCertEntry (publickey)

So no I want to use this certificate to encrypt a soap message... so I
build my file crypto.properties and wsdd files to redirect onto the key.
But when I'm executing the program I obtain this error :
RemoteException : WSDoAllSender: Signature: error during message
procesingorg.apache.ws.security.WSSecurityException: Signature creation
failed; nested exception is:
        java.lang.Exception: Cannot find key for alias: publickey

I don't understand this exception... the private key isn't needed to
encrypt the soap body ???

Best regards

Tabin Cédric



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

Reply via email to