You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Alejandro <al...@gmail.com> on 2012/08/01 19:54:41 UTC
WS-Security Problem ( [WSS4JInInterceptor] Security processing
failed (actions mismatch))
Hi, I'm using cxf 2.6.1 and wss4j 1.6.6, and I get this error when I've
invoke the webserives: [WSS4JInInterceptor] Security processing failed
(actions mismatch).
I've google this error but I can't find a solution.
This is may configuration:
<jaxws:inInterceptors>
<bean class="org.apache.cxf.interceptor.LoggingInInterceptor" />
<bean class="org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor">
<constructor-arg>
<map>
<entry key="action" value="Timestamp Signature Encrypt"/>
<entry key="decryptionPropFile"
value="META-INF/wssecurity_in.properties"/>
<entry key="signaturePropFile"
value="META-INF/wssecurity_in.properties"/>
<entry key="passwordCallbackRef"><ref
bean="passwordCallback"/></entry>
<entry key="encryptionSymAlgorithm"
value="http://www.w3.org/2001/04/xmlenc#aes128-cbc"/>
<entry key="encryptionKeyTransportAlgorithm"
value="http://www.w3.org/2001/04/xmlenc#rsa-1_5"/>
</map>
</constructor-arg>
</bean>
</jaxws:inInterceptors>
<jaxws:outInterceptors>
<bean class="org.apache.cxf.interceptor.LoggingOutInterceptor" />
<bean class="org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor">
<constructor-arg>
<map>
<entry key="action" value="Timestamp Signature Encrypt"/>
<entry key="timeToLive" value="300" />
<entry key="passwordCallbackRef"><ref
bean="passwordCallback"/></entry>
<entry key="user" value="#######" />
<entry key="signaturePropFile"
value="META-INF/wssecurity_out.properties"/>
<entry key="signatureKeyIdentifier" value="DirectReference" />
<entry key="signatureParts"
value="{Content}{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd}Timestamp;{Content}{http://schemas.xmlsoap.org/soap/envelope/}Body"/>
<entry key="encryptionPropFile"
value="META-INF/wssecurity_out.properties"/>
<entry key="encryptionSymAlgorithm"
value="http://www.w3.org/2001/04/xmlenc#aes128-cbc"/>
<entry key="encryptionKeyTransportAlgorithm"
value="http://www.w3.org/2001/04/xmlenc#rsa-1_5"/>
<entry key="encryptionKeyIdentifier" value="SKIKeyIdentifier" />
<entry key="encryptionParts"
value="{Content}{http://schemas.xmlsoap.org/soap/envelope/}Body"/>
<entry key="encryptionUser" value="useReqSigCert" /> <entry
key="enableSignatureConfirmation" value="false" />
</map>
</constructor-arg>
</bean>
</jaxws:outInterceptors>
And this is my in soap message:
----------------------------
ID: 9
Address: http://localhost:8080/biometria/BiometricService
Encoding: UTF-8
Http-Method: POST
Content-Type: text/xml;charset=UTF-8
Headers: {accept-encoding=[gzip,deflate], connection=[Keep-Alive],
Content-Length=[2661], content-type=[text/xml;charset=UTF-8],
host=[localhost:8080], SOAPAction=[""], user-agent=[Apache-HttpClient/4.1.1
(java 1.5)]}
Payload: <soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ws="ws.biometria.com">
<soapenv:Header><wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"><wsu:Timestamp
wsu:Id="TS-12"><wsu:Created>2012-08-01T17:53:01.679Z</wsu:Created><wsu:Expires>2012-08-01T18:03:01.679Z</wsu:Expires></wsu:Timestamp></wsse:Security></soapenv:Header>
<soapenv:Body><xenc:EncryptedData Id="ED-14"
Type="http://www.w3.org/2001/04/xmlenc#Content"
xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"><xenc:EncryptionMethod
Algorithm="http://www.w3.org/2001/04/xmlenc#aes128-cbc"/><ds:KeyInfo
xmlns:ds="http://www.w3.org/2000/09/xmldsig#"><wsse:SecurityTokenReference
wsse11:TokenType="http://docs.oasis-open.org/wss/oasis-wss-soap-message-security-1.1#EncryptedKey"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsse11="http://docs.oasis-open.org/wss/oasis-wss-wssecurity-secext-1.1.xsd"><wsse:Reference
URI="#EK-B2CC4E4A32165847EA134384358169220"/></wsse:SecurityTokenReference></ds:KeyInfo><xenc:CipherData><xenc:CipherValue>UQ6tloLPInjzEL6eX6oeGdsCUj785To2oN8Nt5PRsEGXtz4MtDWhS2lGVV4f7ZY5GxEe/KcSWD3QJdJlyn9xiZk2Co1sk+aBX4PAxp7S1YdQbYZUUvMzcRh1iGrNZQXZN6l9rQfOIwFVxNIf6F+cmGyVTEOnaD1v6qe+UBdVXP42wbfp2jYelZ7DFEK7XJ4PzmVfTWQdpj6T2TV91P5KNc0DAK/GcomsWc0PiW9NtXcDx8hOtuBY0aG/NWZCrLFWgAx/F8iBBQArRtf0dL8JY2dKAq9hdj85B6JC1j0KIQvZkfPKI3LNP3dvGsZnVpMziVsOb09r0Jf9JHvNccCioaz0fw6pT/8wIXg6r2aEr1/mHQbjidgomAC/o/cwtSl7fAhHxvJ+oTUdGBqCA+Rf8FpaVgLH2fyc0GJKT9gp2sQQMx6y90ssKp6ZtX6b8aEd6xA1AUA7KGKmJkfYZqXUnwBQxzjwnbxEwZzn1+pNLTEOQsp1eXqEHnbgKBLMbDdkXbv2iTZAYJIjDhCWO5LfCgJupX3uUlcnwfmxdN5bamkXUyFyyHP9LCumju3EhnmKlZd8krDgmTPIlM3NJX8JTZq9dicpK50X49Wu/YMoCDqU0BtINOoNPFbgzB9/62cKlFGjw5UIlYY+WIfhwl7A/bvPt0OY7N+iN5nkW8L9vLscSSkvdoheXJfaY7GVq43iQkksTZZSMonjVRcwjuI0KFTA8yiC4zPOfr7Wimu85dm377gU1HbyjhR/rLPevAPWZflpmnPstIQkNQ86bqxx6h4OIIdkDWtiGiNC+KnDx2lQmZucz6btDt5Mr8uegwc8V9OdRTkO0PzzgvQUZ6fEaszx5G/bczPw4kh1TP+wgFYyLDlq600AKY2YDU7vLI17NUS6nmWX2pCiUUKy6GCAxGSWCDfAcNnzRhyJ1+OcLtXMnytjnG2ZIz/VwBU/2WQUgQsrcgkhlpqQWfZgcaOLwDIVyquUg6kUMculEozdKH3k5Po4VWlzRI5frJM1iWkZLTr9K24Af9nF6run8XC8ZPseddZVtEgFrEbjkV5qJDAwKEzZTrsermBhIbO67DdxfLqIwFy1OgxsybMc7Yy+Ahz1zt3eqh6a0rYozHzIbErhImmKURY9MorICoRLk2gTkAbpBQwpPkCq+QtzqwhI4cdMDKGyZhXIZVIxR94EJYryxIfN2t3NV4IOUSiWLvT41yRMNPgr1BViPpagkImDoE5OvJcOmOgSgoBM8X94Xfy0vQNvIAQUf+i/ORTb+c0syIoXxwv6/WDNh6YP0RUdMhcni4LbgU5A/AqY8i61oFs=</xenc:CipherValue></xenc:CipherData></xenc:EncryptedData></soapenv:Body>
</soapenv:Envelope>
--------------------------------------
Where is the problem?
Regards
Alejandro
--
View this message in context: http://cxf.547215.n5.nabble.com/WS-Security-Problem-WSS4JInInterceptor-Security-processing-failed-actions-mismatch-tp5711868.html
Sent from the cxf-user mailing list archive at Nabble.com.
Re: WS-Security Problem ( [WSS4JInInterceptor] Security processing
failed (actions mismatch))
Posted by Alejandro <al...@gmail.com>.
I've solve my problem, I must use
<jaxws:properties>
<entry key="ws-security.is-bsp-compliant" value="false"/>
</jaxws:properties>
Regards
--
View this message in context: http://cxf.547215.n5.nabble.com/WS-Security-Problem-WSS4JInInterceptor-Security-processing-failed-actions-mismatch-tp5711868p5711908.html
Sent from the cxf-user mailing list archive at Nabble.com.
Re: WS-Security Problem ( [WSS4JInInterceptor] Security processing
failed (actions mismatch))
Posted by Alejandro <al...@gmail.com>.
I've found the problem, the keystore password was wrong.
Now I get another error: Caused by:
org.apache.ws.security.WSSecurityException: An invalid security token was
provided (Bad ValueType
"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3")
This is the in message:
Address: http://localhost:8080/biometria/BiometricService
Encoding: UTF-8
Http-Method: POST
Content-Type: text/xml;charset=UTF-8
Headers: {accept-encoding=[gzip,deflate], connection=[Keep-Alive],
Content-Length=[6603], content-type=[text/xml;charset=UTF-8],
host=[localhost:8080], SOAPAction=[""], user-agent=[Apache-HttpClient/4.1.1
(java 1.5)]}
Payload: <soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ws="http://ws.biometria.com">
<soapenv:Header><wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"><xenc:EncryptedKey
Id="EK-04582BFB0D44AF64A4134385591329924"
xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"><xenc:EncryptionMethod
Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-1_5"/><ds:KeyInfo
xmlns:ds="http://www.w3.org/2000/09/xmldsig#"><wsse:SecurityTokenReference><wsse:KeyIdentifier
EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary"
ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509SubjectKeyIdentifier">gb3LUmNBWDKQGtoG1IEJj6s+z6w=</wsse:KeyIdentifier></wsse:SecurityTokenReference></ds:KeyInfo><xenc:CipherData><xenc:CipherValue>efu6WuZ8wkXmyj0RX1ZHurUe8gktDZwEQFOcHMnI8VARBNf5c/rkRiMmWK2ZU4/Dy63SNUFzzf2UZQ7E4dPyJfxK8y4hkd/3NPve92+fUq+qUHmtfG9ht70VoEwtjEv24ebYerEylzdKT9sY8DWbMZiRCPfGyaYXJnZk9uRfl8E=</xenc:CipherValue></xenc:CipherData><xenc:ReferenceList><xenc:DataReference
URI="#ED-28"/></xenc:ReferenceList></xenc:EncryptedKey><ds:Signature
Id="SIG-27"
xmlns:ds="http://www.w3.org/2000/09/xmldsig#"><ds:SignedInfo><ds:CanonicalizationMethod
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"><ec:InclusiveNamespaces
PrefixList="soapenv ws"
xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:CanonicalizationMethod><ds:SignatureMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/><ds:Reference
URI="#id-26"><ds:Transforms><ds:Transform
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"><ec:InclusiveNamespaces
PrefixList="ws"
xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transform></ds:Transforms><ds:DigestMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><ds:DigestValue>44mIWtNFSSaeSc1jqGk7kjlwCOE=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue>EdQLQ5BXq162iJ3M4P6dYoR6+Y3h+snRgrvk3sGmyOtTOqbMI38vPe5xtdCRHPwO+4C2B3IVX1E4
5TLb2g46CtZj7oa/0wubJhyDl19OXoWswMLmwGYWmdpMhUBukGYq+6tsQUMTezPPfQblo/RbM3ZE
uxgu77Rybgb4z0DmH3Q=</ds:SignatureValue><ds:KeyInfo
Id="KI-04582BFB0D44AF64A4134385591329222"><wsse:SecurityTokenReference
wsu:Id="STR-04582BFB0D44AF64A4134385591329223"><wsse:KeyIdentifier
EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary"
ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3">MIIEFjCCA3+gAwIBAgICAO4wDQYJKoZIhvcNAQEFBQAwgbAxCzAJBgNVBAYTAkFSMRUwEwYDVQQIEwxCdWVub3MgQWlyZXMxGDAWBgNVBAcTD0NhcGl0YWwgRmVkZXJhbDEVMBMGA1UEChMMQmFuZWxjbyBTLkEuMR4wHAYDVQQLExVTZWd1cmlkYWQgSW5mb3JtYXRpY2ExOTA3BgNVBAMTMENBIGRlIENlcnRpZmljYWNp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eb6HjHZcdxuvxMfu+QravQiXp04VpGOnQyiUwPA6KRSmYasAWvOGvQl8E+c9Q/ztUVBSd+dlTRAXbEdPN2yk21PJujtepB/MyYeZerMbTwHQ40q2</wsse:KeyIdentifier></wsse:SecurityTokenReference></ds:KeyInfo></ds:Signature><wsu:Timestamp
wsu:Id="TS-25"><wsu:Created>2012-08-01T21:18:33.288Z</wsu:Created><wsu:Expires>2012-08-01T21:28:33.288Z</wsu:Expires></wsu:Timestamp></wsse:Security></soapenv:Header>
<soapenv:Body wsu:Id="id-26"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"><xenc:EncryptedData
Id="ED-28" Type="http://www.w3.org/2001/04/xmlenc#Content"
xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"><xenc:EncryptionMethod
Algorithm="http://www.w3.org/2001/04/xmlenc#aes128-cbc"/><ds:KeyInfo
xmlns:ds="http://www.w3.org/2000/09/xmldsig#"><wsse:SecurityTokenReference
wsse11:TokenType="http://docs.oasis-open.org/wss/oasis-wss-soap-message-security-1.1#EncryptedKey"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsse11="http://docs.oasis-open.org/wss/oasis-wss-wssecurity-secext-1.1.xsd"><wsse:Reference
URI="#EK-04582BFB0D44AF64A4134385591329924"/></wsse:SecurityTokenReference></ds:KeyInfo><xenc:CipherData><xenc:CipherValue>AnTFeB5D8pVn5F2XuVAi7GzmcB2ZsVJsT9xuhdMJPLTAtYzvgJH0N0W1ozU8zSlpReziHlOglaZWaB/0lI4OYGJ9sYSbALdlhxYJY9wXR5z49OhsYKyncPIVGkvKJFP41PxnJM4cLQV+B78RuP0G4dcMdfnJ67pqJilJbkrdIoVyG3qFbA5ISR1ByOM48J9QWzhS+N77j4zJ+3NtTWVVgxhEFVedL8xC1clByM/IosfqqufZoRCX3vsxNj/FRQuqux7mpJzgZBxnAQR8R82a6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eGKjCY9WBTrhW3zKD7EJWfpYi2HB7MpwEfuBGZ0=</xenc:CipherValue></xenc:CipherData></xenc:EncryptedData></soapenv:Body>
</soapenv:Envelope>
Regards
--
View this message in context: http://cxf.547215.n5.nabble.com/WS-Security-Problem-WSS4JInInterceptor-Security-processing-failed-actions-mismatch-tp5711868p5711906.html
Sent from the cxf-user mailing list archive at Nabble.com.
Re: WS-Security Problem ( [WSS4JInInterceptor] Security processing failed (actions mismatch))
Posted by Daniel Kulp <dk...@apache.org>.
Well, that looks a little better, but there still isn't a signature on the
message. If you remove the signature from the in interceptor action, it
may work.
Dan
On Wednesday, August 01, 2012 12:16:16 PM Alejandro wrote:
> Sorry this is the right message.
>
> ----------------------------
> ID: 1
> Address: http://localhost:8080/biometria/BiometricService
> Encoding: UTF-8
> Http-Method: POST
> Content-Type: text/xml;charset=UTF-8
> Headers: {accept-encoding=[gzip,deflate], connection=[Keep-Alive],
> Content-Length=[3610], content-type=[text/xml;charset=UTF-8],
> host=[localhost:8080], SOAPAction=[""],
> user-agent=[Apache-HttpClient/4.1.1 (java 1.5)]}
> Payload: <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:ws="ws.biometria.com">
> <soapenv:Header><wsse:Security
> xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecu
> rity-secext-1.0.xsd"
> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecu
> rity-utility-1.0.xsd"><xenc:EncryptedKey
> Id="EK-B2CC4E4A32165847EA134384842842177"
> xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"><xenc:EncryptionMethod
> Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-1_5"/><ds:KeyInfo
> xmlns:ds="http://www.w3.org/2000/09/xmldsig#"><wsse:SecurityTokenReference
> ><wsse:KeyIdentifier
> EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soa
> p-message-security-1.0#Base64Binary"
> ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-t
> oken-profile-1.0#X509SubjectKeyIdentifier">gb3LUmNBWDKQGtoG1IEJj6s+z6w=</w
> sse:KeyIdentifier></wsse:SecurityTokenReference></ds:KeyInfo><xenc:CipherD
> ata><xenc:CipherValue>oo1osArNYmLdL3GEw16YaGQLQh2Abm70iRXPN0M1vy7wydaHckqa
> pnguFlhyvF3X5PfIuXMKv05aoH/ZI2fZekVOvFJcT82Yw4+T4XOcL7W9TNebk46geeJ5ADsfdg
> JPFx8sHP3pDeG+iaAev6PLkOxV7oGOrYuWB0KSH9xl7FM=</xenc:CipherValue></xenc:Ci
> pherData><xenc:ReferenceList><xenc:DataReference
> URI="#ED-71"/></xenc:ReferenceList></xenc:EncryptedKey><wsu:Timestamp
> wsu:Id="TS-70"><wsu:Created>2012-08-01T19:13:48.414Z</wsu:Created><wsu:Ex
> pires>2012-08-01T19:23:48.414Z</wsu:Expires></wsu:Timestamp></wsse:Securit
> y></soapenv:Header> <soapenv:Body><xenc:EncryptedData Id="ED-71"
> Type="http://www.w3.org/2001/04/xmlenc#Content"
> xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"><xenc:EncryptionMethod
> Algorithm="http://www.w3.org/2001/04/xmlenc#aes128-cbc"/><ds:KeyInfo
> xmlns:ds="http://www.w3.org/2000/09/xmldsig#"><wsse:SecurityTokenReference
> wsse11:TokenType="http://docs.oasis-open.org/wss/oasis-wss-soap-message-s
> ecurity-1.1#EncryptedKey"
> xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssec
> urity-secext-1.0.xsd"
> xmlns:wsse11="http://docs.oasis-open.org/wss/oasis-wss-wssecurity-secext-
> 1.1.xsd"><wsse:Reference
> URI="#EK-B2CC4E4A32165847EA134384842842177"/></wsse:SecurityTokenReferenc
> e></ds:KeyInfo><xenc:CipherData><xenc:CipherValue>NOT2CZz9fqUSw1jdkd8wJLSM
> wfeacg+S533Fo4tLATRcm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Ghxa0RAaNDjVIU/V8z2m/29QuDxJ2ANRZ0/LJ2lT2DJJFQ0wxvT
> WE3WmQwXz0XNInE7u5BCE+L59/3uEreJWWzuvFf/g0PgPnktB2i+2OiGTP3f4asiyIMomRC/Ta
> FcskW2epKAUlIUghLkEGF8KLIPuEZqCooffNUPjovMHDGJPJ+kVntPQX1Z0ZWT9kN/MJpLnObv
> g3wUQfPQSCMGmoFq/Y3eN6vNXbkC2o5dyiwoWt9XI=</xenc:CipherValue></xenc:Cipher
> Data></xenc:EncryptedData></soapenv:Body> </soapenv:Envelope>
> --------------------------------------
>
>
>
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/WS-Security-Problem-WSS4JInInterceptor-Se
> curity-processing-failed-actions-mismatch-tp5711868p5711902.html Sent from
> the cxf-user mailing list archive at Nabble.com.
--
Daniel Kulp
dkulp@apache.org - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com
Re: WS-Security Problem ( [WSS4JInInterceptor] Security processing
failed (actions mismatch))
Posted by Alejandro <al...@gmail.com>.
Sorry this is the right message.
----------------------------
ID: 1
Address: http://localhost:8080/biometria/BiometricService
Encoding: UTF-8
Http-Method: POST
Content-Type: text/xml;charset=UTF-8
Headers: {accept-encoding=[gzip,deflate], connection=[Keep-Alive],
Content-Length=[3610], content-type=[text/xml;charset=UTF-8],
host=[localhost:8080], SOAPAction=[""], user-agent=[Apache-HttpClient/4.1.1
(java 1.5)]}
Payload: <soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ws="ws.biometria.com">
<soapenv:Header><wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"><xenc:EncryptedKey
Id="EK-B2CC4E4A32165847EA134384842842177"
xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"><xenc:EncryptionMethod
Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-1_5"/><ds:KeyInfo
xmlns:ds="http://www.w3.org/2000/09/xmldsig#"><wsse:SecurityTokenReference><wsse:KeyIdentifier
EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary"
ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509SubjectKeyIdentifier">gb3LUmNBWDKQGtoG1IEJj6s+z6w=</wsse:KeyIdentifier></wsse:SecurityTokenReference></ds:KeyInfo><xenc:CipherData><xenc:CipherValue>oo1osArNYmLdL3GEw16YaGQLQh2Abm70iRXPN0M1vy7wydaHckqapnguFlhyvF3X5PfIuXMKv05aoH/ZI2fZekVOvFJcT82Yw4+T4XOcL7W9TNebk46geeJ5ADsfdgJPFx8sHP3pDeG+iaAev6PLkOxV7oGOrYuWB0KSH9xl7FM=</xenc:CipherValue></xenc:CipherData><xenc:ReferenceList><xenc:DataReference
URI="#ED-71"/></xenc:ReferenceList></xenc:EncryptedKey><wsu:Timestamp
wsu:Id="TS-70"><wsu:Created>2012-08-01T19:13:48.414Z</wsu:Created><wsu:Expires>2012-08-01T19:23:48.414Z</wsu:Expires></wsu:Timestamp></wsse:Security></soapenv:Header>
<soapenv:Body><xenc:EncryptedData Id="ED-71"
Type="http://www.w3.org/2001/04/xmlenc#Content"
xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"><xenc:EncryptionMethod
Algorithm="http://www.w3.org/2001/04/xmlenc#aes128-cbc"/><ds:KeyInfo
xmlns:ds="http://www.w3.org/2000/09/xmldsig#"><wsse:SecurityTokenReference
wsse11:TokenType="http://docs.oasis-open.org/wss/oasis-wss-soap-message-security-1.1#EncryptedKey"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsse11="http://docs.oasis-open.org/wss/oasis-wss-wssecurity-secext-1.1.xsd"><wsse:Reference
URI="#EK-B2CC4E4A32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B4xC0JN6L4zYb9RVTxV1iUzri5y9VH09cNyhXVHmLFeKkF9Xe8vOXFAA5HfaQ9y0aGhxa0RAaNDjVIU/V8z2m/29QuDxJ2ANRZ0/LJ2lT2DJJFQ0wxvTWE3WmQwXz0XNInE7u5BCE+L59/3uEreJWWzuvFf/g0PgPnktB2i+2OiGTP3f4asiyIMomRC/TaFcskW2epKAUlIUghLkEGF8KLIPuEZqCooffNUPjovMHDGJPJ+kVntPQX1Z0ZWT9kN/MJpLnObvg3wUQfPQSCMGmoFq/Y3eN6vNXbkC2o5dyiwoWt9XI=</xenc:CipherValue></xenc:CipherData></xenc:EncryptedData></soapenv:Body>
</soapenv:Envelope>
--------------------------------------
--
View this message in context: http://cxf.547215.n5.nabble.com/WS-Security-Problem-WSS4JInInterceptor-Security-processing-failed-actions-mismatch-tp5711868p5711902.html
Sent from the cxf-user mailing list archive at Nabble.com.
Re: WS-Security Problem ( [WSS4JInInterceptor] Security processing failed (actions mismatch))
Posted by Daniel Kulp <dk...@apache.org>.
The incoming message is completely invalid. What is being used to produce
that?
The security header in there should have a LOT more information in it
include information about the EndryptedKey (that is then referenced in the
body), the signature, etc...
Dan
On Wednesday, August 01, 2012 10:54:41 AM Alejandro wrote:
> Hi, I'm using cxf 2.6.1 and wss4j 1.6.6, and I get this error when I've
> invoke the webserives: [WSS4JInInterceptor] Security processing failed
> (actions mismatch).
>
> I've google this error but I can't find a solution.
>
> This is may configuration:
> <jaxws:inInterceptors>
> <bean class="org.apache.cxf.interceptor.LoggingInInterceptor"
/>
> <bean
class="org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor">
> <constructor-arg>
> <map>
> <entry key="action" value="Timestamp
Signature Encrypt"/>
> <entry key="decryptionPropFile"
> value="META-INF/wssecurity_in.properties"/>
> <entry key="signaturePropFile"
> value="META-INF/wssecurity_in.properties"/>
> <entry key="passwordCallbackRef"><ref
> bean="passwordCallback"/></entry>
> <entry key="encryptionSymAlgorithm"
> value="http://www.w3.org/2001/04/xmlenc#aes128-cbc"/>
> <entry key="encryptionKeyTransportAlgorithm"
> value="http://www.w3.org/2001/04/xmlenc#rsa-1_5"/>
> </map>
> </constructor-arg>
> </bean>
> </jaxws:inInterceptors>
>
> <jaxws:outInterceptors>
> <bean
class="org.apache.cxf.interceptor.LoggingOutInterceptor" />
> <bean
class="org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor">
> <constructor-arg>
> <map>
> <entry key="action" value="Timestamp Signature
Encrypt"/>
> <entry key="timeToLive" value="300" />
> <entry key="passwordCallbackRef"><ref
> bean="passwordCallback"/></entry>
> <entry key="user" value="#######" />
> <entry key="signaturePropFile"
> value="META-INF/wssecurity_out.properties"/>
> <entry key="signatureKeyIdentifier"
value="DirectReference" />
> <entry key="signatureParts"
> value="{Content}{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-w
> ssecurity-utility-1.0.xsd}Timestamp;{Content}{http://schemas.xmlsoap.org/s
> oap/envelope/}Body"/> <entry key="encryptionPropFile"
> value="META-INF/wssecurity_out.properties"/>
> <entry key="encryptionSymAlgorithm"
> value="http://www.w3.org/2001/04/xmlenc#aes128-cbc"/>
> <entry key="encryptionKeyTransportAlgorithm"
> value="http://www.w3.org/2001/04/xmlenc#rsa-1_5"/>
> <entry key="encryptionKeyIdentifier"
value="SKIKeyIdentifier" />
> <entry key="encryptionParts"
> value="{Content}{http://schemas.xmlsoap.org/soap/envelope/}Body"/>
> <entry key="encryptionUser"
value="useReqSigCert" /> <entry
> key="enableSignatureConfirmation" value="false" />
> </map>
> </constructor-arg>
> </bean>
> </jaxws:outInterceptors>
>
> And this is my in soap message:
>
> ----------------------------
> ID: 9
> Address: http://localhost:8080/biometria/BiometricService
> Encoding: UTF-8
> Http-Method: POST
> Content-Type: text/xml;charset=UTF-8
> Headers: {accept-encoding=[gzip,deflate], connection=[Keep-Alive],
> Content-Length=[2661], content-type=[text/xml;charset=UTF-8],
> host=[localhost:8080], SOAPAction=[""],
> user-agent=[Apache-HttpClient/4.1.1 (java 1.5)]}
> Payload: <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:ws="ws.biometria.com">
> <soapenv:Header><wsse:Security
> xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecu
> rity-secext-1.0.xsd"
> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecu
> rity-utility-1.0.xsd"><wsu:Timestamp
> wsu:Id="TS-12"><wsu:Created>2012-08-01T17:53:01.679Z</wsu:Created><wsu:Ex
> pires>2012-08-01T18:03:01.679Z</wsu:Expires></wsu:Timestamp></wsse:Securit
> y></soapenv:Header> <soapenv:Body><xenc:EncryptedData Id="ED-14"
> Type="http://www.w3.org/2001/04/xmlenc#Content"
> xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"><xenc:EncryptionMethod
> Algorithm="http://www.w3.org/2001/04/xmlenc#aes128-cbc"/><ds:KeyInfo
> xmlns:ds="http://www.w3.org/2000/09/xmldsig#"><wsse:SecurityTokenReference
> wsse11:TokenType="http://docs.oasis-open.org/wss/oasis-wss-soap-message-s
> ecurity-1.1#EncryptedKey"
> xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssec
> urity-secext-1.0.xsd"
> xmlns:wsse11="http://docs.oasis-open.org/wss/oasis-wss-wssecurity-secext-
> 1.1.xsd"><wsse:Reference
> URI="#EK-B2CC4E4A32165847EA134384358169220"/></wsse:SecurityTokenReferenc
> e></ds:KeyInfo><xenc:CipherData><xenc:CipherValue>UQ6tloLPInjzEL6eX6oeGdsC
> Uj785To2oN8Nt5PRsEGXtz4MtDWhS2lGVV4f7ZY5GxEe/KcSWD3QJdJlyn9xiZk2Co1sk+aBX4
> PAxp7S1YdQbYZUUvMzcRh1iGrNZQXZN6l9rQfOIwFVxNIf6F+cmGyVTEOnaD1v6qe+UBdVXP42
> wbfp2jYelZ7DFEK7XJ4PzmVfTWQdpj6T2TV91P5KNc0DAK/GcomsW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i/ORTb+c0syI
> oXxwv6/WDNh6YP0RUdMhcni4LbgU5A/AqY8i61oFs=</xenc:CipherValue></xenc:Cipher
> Data></xenc:EncryptedData></soapenv:Body> </soapenv:Envelope>
> --------------------------------------
>
> Where is the problem?
>
> Regards
> Alejandro
>
>
>
>
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/WS-Security-Problem-WSS4JInInterceptor-Se
> curity-processing-failed-actions-mismatch-tp5711868.html Sent from the
> cxf-user mailing list archive at Nabble.com.
--
Daniel Kulp
dkulp@apache.org - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com