cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dev <>
Subject Re: Question regarding SOAPBody and precreated XML payload
Date Mon, 25 Jul 2011 21:02:44 GMT
I managed to get over that problem. Next issue I have run into is signing the
message. Since we are using JDK1.5 and the keytool doesn't provide commands
to import private keys, I had to use OpenSSL and extract the private key
from .pfx file and convert the key into .DER extension and add it to the
keystore using JDK keytool. However the code now bombs with the following
complain: -

rg.apache.cxf.binding.soap.SoapFault: Security processing failed.
	at org.apache.cxf.endpoint.ClientImpl.invoke(
	at org.apache.cxf.endpoint.ClientImpl.invoke(
	at org.apache.cxf.endpoint.ClientImpl.invoke(
	at org.apache.cxf.endpoint.ClientImpl.invokeWrapped(
	at org.apache.cxf.jaxws.DispatchImpl.invoke(
	at org.apache.cxf.jaxws.DispatchImpl.invoke(
Caused by: Error during
Signature: ; nested exception is: General security error (No
certificates for user TESTUSER were found for signature)

I believe this is occurring because private keys are not getting picked up
by the application. My WS client code has added the following code to enable
signing: -

		outProps.put(WSHandlerConstants.ACTION, "Signature");
		outProps.put(WSHandlerConstants.USER, "TESTUSER");
		outProps.put("signaturePropFile", "");

I am wondering if there is something I am missing out here. In my keystore I
have 'TESTUSER' as alias to the private key.

View this message in context:
Sent from the cxf-dev mailing list archive at

View raw message