Hi All,
I've create a client that send a certificate with the message, I've a problem with certificate.
I've a keystore pcks12 given me by a CA now I've configured the client in order to sign message , I ve created a class that set the option of client
package PerformWSSecurity;
import java.util.Hashtable;
import org.apache.axis.AxisEngine;
import org.apache.axis.ConfigurationException;
import org.apache.axis.SimpleTargetedChain;
import org.apache.axis.configuration.SimpleProvider;
import org.apache.ws.axis.security.WSDoAllSender;
import org.apache.ws.security.handler.WSHandlerConstants;
public class MyEngineConfiguration extends SimpleProvider {
public MyEngineConfiguration() {
super();
this.deployTransport("http", new SimpleTargetedChain(new org.apache.axis.transport.http.HTTPSender()));
//parameters
Hashtable<String, Object> opts = new Hashtable<String, Object>();
opts.put(AxisEngine.PROP_DISABLE_PRETTY_XML, Boolean.TRUE);
this.setGlobalOptions(opts);
//requestFlow
org.apache.ws.axis.security.WSDoAllSender w = new WSDoAllSender();
w.setOption(WSHandlerConstants.SIG_PROP_FILE, "cryptoSender.properties");
w.setOption(WSHandlerConstants.SIG_KEY_ID, "DirectReference");
w.setOption(WSHandlerConstants.USER, "hermann");
w.setOption(WSHandlerConstants.PW_CALLBACK_CLASS,"PWCallback");
w.setOption(WSHandlerConstants.ACTION, WSHandlerConstants.SIGNATURE);
this.setGlobalResponse(w);
}
@Override
public void configureEngine(AxisEngine engine) throws
ConfigurationException {
engine.refreshGlobalOptions();
}
}
ant this is cryptoSender.properties
org.apache.ws.security.crypto.provider=org.apache.ws.security.components.crypto.Merlin
org.apache.ws.security.crypto.merlin.file=x509pri.p12
org.apache.ws.security.crypto.merlin.keystore.type=PKCS12
org.apache.ws.security.crypto.merlin.keystore.password=1234567890
now the problem is that when I run my main class I return this exception
org.apache.ws.security.WSSecurityException: WSHandler: Signature: error during message procesingorg.apache.ws.security.WSSecurityException: General security error (Unexpected number of X509Data: for Signature)
I don't understand which kind of error is this I think that It doesn't read the certificate in the keystore,
How can I set the properties in order to read certificate?
Thanks a lot
Hermann
Title: [WSS5J 1.5] Unexpected number of X509Data: for Signature
- [WSS5J 1.5] Unexpected number of X509Data: for Signature hescot
- Re: [WSS5J 1.5] Unexpected number of X509Data: for S... Ruchith Fernando
- R: [WSS5J 1.5] Unexpected number of X509Data: fo... hescot
- Re: R: [WSS5J 1.5] Unexpected number of X509... Ruchith Fernando
