org.apache.cxf.binding.soap.SoapFault: The signature or decryption was invalid -
we have given following configuration details while calling; have used cxf 3.1.1 , jdk 1.7.0_79.
ctx.put(securityconstants.callback_handler,new keystorepasswordcallback()); ctx.put(securityconstants.signature_properties, thread.currentthread(). getcontextclassloader().getresource("meta-inf/zeph.properties")); ctx.put(securityconstants.encrypt_properties, thread.currentthread(). getcontextclassloader().getresource("meta-inf/zeph.properties")); ctx.put(securityconstants.signature_username, "abc"); ctx.put(securityconstants.encrypt_username, "abc");
and have created .cer (x509 certificate data) .jks using keytool
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=abc123 org.apache.ws.security.crypto.merlin.keystore.alias=abc org.apache.ws.security.crypto.merlin.keystore.file=meta-inf/abckeystore.jks
we getting following exception, please suggest us.
org.apache.cxf.binding.soap.soapfault: signature or decryption invalid @ org.apache.cxf.ws.security.wss4j.wss4jutils.createsoapfault(wss4jutils.java:213) @ org.apache.cxf.ws.security.wss4j.wss4jininterceptor.handlemessageinternal(wss4jininterceptor.java:329) @ org.apache.cxf.ws.security.wss4j.wss4jininterceptor.handlemessage(wss4jininterceptor.java:184) caused by: org.apache.wss4j.common.ext.wssecurityexception: signature or decryption invalid @ org.apache.wss4j.dom.processor.signatureprocessor.verifyxmlsignature(signatureprocessor.java:450) @ org.apache.wss4j.dom.processor.signatureprocessor.handletoken(signatureprocessor.java:225) exception in thread "main" javax.xml.ws.soap.soapfaultexception: signature or decryption invalid @ org.apache.cxf.jaxws.jaxwsclientproxy.invoke(jaxwsclientproxy.java:161) @ com.sun.proxy.$proxy42.calculateratingreplicatorinpd(unknown source) @ testwscxf.main(testwscxf.java:110) caused by: org.apache.wss4j.common.ext.wssecurityexception: signature or decryption invalid @ org.apache.wss4j.dom.processor.signatureprocessor.verifyxmlsignature(signatureprocessor.java:450) @ org.apache.wss4j.dom.processor.signatureprocessor.handletoken(signatureprocessor.java:225)
you'll have enable debug logging see error was. why using same key encryption , signature...?
Comments
Post a Comment