Here is the fix if you want to build it and test it: http://svn.apache.org/viewvc?view=revision&revision=1214193
Colm. On Wed, Dec 14, 2011 at 12:11 PM, Udo Einspanier <[email protected]> wrote: > Hi Colm, > > thanks a lot for your reply. Yes, it is SymmetricBinding. So can I check out > a fixed version from SVN? > > Udo > > -----Original Message----- > From: Colm O hEigeartaigh [mailto:[email protected]] > Sent: Mittwoch, 14. Dezember 2011 13:01 > To: [email protected] > Subject: Re: Error in CXF client with certificate authentication > > It's a bug in CXF, which I've just fixed. Can you confirm that you're using > the SymmetricBinding? > > Colm. > > On Wed, Dec 14, 2011 at 11:04 AM, Udo Einspanier <[email protected]> > wrote: >> Hi, >> >> I try to connect a CXF client to a WCF service with mutual certificates. The >> request looks mostly fine, however the leading "#" seems to be missing in >> the URI attribute of the first >> wsc:DerivedKeyToken/wsse:SecurityTokenReference/wsse:Reference/@URI: >> >> <wsse:Reference URI="EK-EB7D959EB7AAE265FA13238483886841" >> ValueType="http://docs.oasis-open.org/wss/oasis-wss-soap-message-secur >> ity-1.1#EncryptedKey"/> >> >> On the server side I then get the error "XmlException: Cannot read >> KeyIdentifierClause from element 'Reference' with namespace >> 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd'. >> Custom KeyIdentifierClauses require custom SecurityTokenSerializers, >> please refer to the SDK for examples." >> >> Has anyone experienced the same problem? I'm using CXF version 2.5.0. Is >> there any way I can fix the error? >> >> Below is the full SOAP request sent by CXF: >> >> >> <?xml version="1.0" encoding="UTF-8"?> <soap:Envelope >> xmlns:soap="http://www.w3.org/2003/05/soap-envelope"> >> <soap:Header> >> <Action xmlns="http://www.w3.org/2005/08/addressing" >> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wss >> ecurity-utility-1.0.xsd" >> wsu:Id="Id-716570799">http://tempuri.org/IService1/GreetMe</Action> >> <MessageID xmlns="http://www.w3.org/2005/08/addressing" >> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wss >> ecurity-utility-1.0.xsd" >> wsu:Id="Id-107372097">urn:uuid:37735dfc-6929-4993-ab85-39b6da3e7700</M >> essageID> >> <To xmlns="http://www.w3.org/2005/08/addressing" >> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wss >> ecurity-utility-1.0.xsd" >> wsu:Id="Id-1043274522">http://localhost:7777/MuniceRETest/MunicReTestS >> ervice.Service1.svc</To> >> <ReplyTo xmlns="http://www.w3.org/2005/08/addressing" >> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wss >> ecurity-utility-1.0.xsd" wsu:Id="Id-110913499"> >> >> <Address>http://www.w3.org/2005/08/addressing/anonymous</Address> >> </ReplyTo> >> <wsse:Security >> xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-ws >> security-secext-1.0.xsd" >> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wss >> ecurity-utility-1.0.xsd" soap:mustUnderstand="true"> >> <wsu:Timestamp wsu:Id="TS-1"> >> >> <wsu:Created>2011-12-14T07:39:48.347Z</wsu:Created> >> >> <wsu:Expires>2011-12-14T07:44:48.347Z</wsu:Expires> >> </wsu:Timestamp> >> <xenc:EncryptedKey >> xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" >> Id="EK-EB7D959EB7AAE265FA13238483886841"> >> <xenc:EncryptionMethod >> Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p"/> >> <ds:KeyInfo >> xmlns:ds="http://www.w3.org/2000/09/xmldsig#"> >> <wsse:SecurityTokenReference >> xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-ws >> security-secext-1.0.xsd"> >> <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/oasis-wss-soap-message-secur >> ity-1.1#ThumbprintSHA1">UsObF/wOuFYqPswdD1bivW614Hw=</wsse:KeyIdentifi >> er> >> </wsse:SecurityTokenReference> >> </ds:KeyInfo> >> <xenc:CipherData> >> >> <xenc:CipherValue>wmvpdYBMl2amoFwDpDheDpEOo/ANIQxEdsnhh9MezA1YJ9YTErEP >> YNkw57fRhpiRMr5N8Feg9qhOzxxLTUY5I1pF260afJ1X+BUvmd6RTArPnWRQiqD7rMM/0u >> IFlRRw7RFJ1odyqr3hmNiXLfsbMYBItQYP7t+uZZNgPPQTxJk=</xenc:CipherValue> >> </xenc:CipherData> >> </xenc:EncryptedKey> >> <wsc:DerivedKeyToken >> xmlns:wsc="http://schemas.xmlsoap.org/ws/2005/02/sc" wsu:Id="DK-2"> >> <wsse:SecurityTokenReference >> xmlns:wsse11="http://docs.oasis-open.org/wss/oasis-wss-wssecurity-sece >> xt-1.1.xsd" >> wsse11:TokenType="http://docs.oasis-open.org/wss/oasis-wss-soap-messag >> e-security-1.1#EncryptedKey" >> wsu:Id="STR-EB7D959EB7AAE265FA13238483887102"> >> <wsse:Reference >> URI="EK-EB7D959EB7AAE265FA13238483886841" >> ValueType="http://docs.oasis-open.org/wss/oasis-wss-soap-message-secur >> ity-1.1#EncryptedKey"/> >> </wsse:SecurityTokenReference> >> <wsc:Offset>0</wsc:Offset> >> <wsc:Length>16</wsc:Length> >> >> <wsc:Nonce>W4BhPXvFIC9idCeSTsHvjw==</wsc:Nonce> >> </wsc:DerivedKeyToken> >> <wsc:DerivedKeyToken >> xmlns:wsc="http://schemas.xmlsoap.org/ws/2005/02/sc" wsu:Id="DK-4"> >> <wsse:SecurityTokenReference >> xmlns:wsse11="http://docs.oasis-open.org/wss/oasis-wss-wssecurity-sece >> xt-1.1.xsd" >> wsse11:TokenType="http://docs.oasis-open.org/wss/oasis-wss-soap-messag >> e-security-1.1#EncryptedKey" >> wsu:Id="STR-EB7D959EB7AAE265FA13238483887685"> >> <wsse:Reference >> URI="#EK-EB7D959EB7AAE265FA13238483886841" >> ValueType="http://docs.oasis-open.org/wss/oasis-wss-soap-message-secur >> ity-1.1#EncryptedKey"/> >> </wsse:SecurityTokenReference> >> <wsc:Offset>0</wsc:Offset> >> <wsc:Length>16</wsc:Length> >> >> <wsc:Nonce>XI57dsm9x9nMo8Uv5bpd9A==</wsc:Nonce> >> </wsc:DerivedKeyToken> >> <xenc:ReferenceList >> xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"> >> <xenc:DataReference URI="#ED-5"/> >> <xenc:DataReference URI="#ED-6"/> >> </xenc:ReferenceList> >> <xenc:EncryptedData >> xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" Id="ED-6" >> Type="http://www.w3.org/2001/04/xmlenc#Element"> >> <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 >> xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-ws >> security-secext-1.0.xsd"> >> <wsse:Reference >> URI="#DK-4"/> >> </wsse:SecurityTokenReference> >> </ds:KeyInfo> >> <xenc:CipherData> >> >> <xenc:CipherValue>3jf7lxFjAW9lRpuGnWGMuDHphZDCshK0sD4Id3Cw/nrV/HCazF46 >> nKa0lcsn+fNHx9qWiCUB7dUfE22l1hnYfWsO4tYnX6EiRfsgpcBw3J+KkFlLzc2ynkWUzJ >> SGd6uLnd4qBgBnwLNG2SjEsf2AoejIltHVTXt4ivJsbM7eY4+PokcLGB5jpWXPm1iE3Zc1 >> MCDvluy1oVexTeeP2OME0YZ1jdguT9qCcITYVl161MvwKaieCmLCt2BYfTCX0GLatnQbbI >> Mnu8UIHpXFpAkXbrfkANHLkpau2GX+3KLaY/JJ06L5fNS6pdRGrAR29oT5F4Ub4f/oMEIL >> 4sIVc76V9agruCgWMiI2N/ROhs7BSnPOhEpkg6y8lcOGjeIP8fLuWrkenWn2CgZgBT3O9f >> loGnbhPOrDd5F7E1M6z3oTd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XocW9W4SU >> kUznSysQIRLlZAz8m2aJVMbD4St54W5Q61qnzFNGtU9b5ZkNifIKRsACK9S7jy6qGo+cDJ >> o2jvM3jeNiDCus+piGQhCMvtEGzp+JvtPbA00ch8ZvLomG80aWTe5hs3WwLpSMcGIS1OpU >> O3ocHVuVCVrt/PnBb+HmfDBOjLVjWp4gwfmGJrkwS9pAGQrfHn02Oh51J+EhujShzs1oI2 >> HCydYXAlxPZKOZIMoN8u9V0d5h75anoEhU1TPTzjxffYTYe2Vl/61c5DJdKisl9J494BVB >> mynbAd/C2hWuhd50TF4PDve1UJiwtJV6ar4EFoiAWZwJyFstM1Tvig1J/0Xdy069lTaVxS >> PNw9f/oMF/hNk3fDS0SaazsZ0/dTvRqyxmrA5v8hqdzsbbInglgFSA05SrILgDucTkECg/ >> KI/AXwEJRw0XC+s16Qnfv8JTJKlYPuqMrS3P8sAHOw3XGHeAlQFJlrwqUCed7XevvQtQIw >> 1RStJqen7Mkf9eVoA3QnWDifV9ooNq7l3B74pf+DE6cIRezxCuaWNRHl+VbQ7BsfWQaZhs >> IHXEKrJGkRQt7vnkARt206YNz12X6OFn8bbkMLjgtysmfa+uyLhBDZ/ff0SBHOBAgvJ19Q >> m/B8tYnHnWVFBI3iFHdJVCUIQMo0AjqfNLG/qpvH8k6aYHFGUZ0Jpd/qhHt9hCApbpzjTB >> hWcnCgfrIBHZR7y+4IgjtOOGcyTARqBzjm+2AzxA93Ls6E2Wlv5I2UbWN7rGrWFRHLVyLo >> nE9k/QjAAg32Uha8ze4FtdHtFoGxtUhNFOQQreDdrZ/49yGETqeXoNjAPtg7W6gpTfjUjN >> 9Jc=</xenc:CipherValue> >> </xenc:CipherData> >> </xenc:EncryptedData> >> </wsse:Security> >> </soap:Header> >> <soap:Body >> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wss >> ecurity-utility-1.0.xsd" wsu:Id="Id-42610539"> >> <xenc:EncryptedData >> xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" Id="ED-5" >> Type="http://www.w3.org/2001/04/xmlenc#Content"> >> <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 >> xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-ws >> security-secext-1.0.xsd"> >> <wsse:Reference URI="#DK-4"/> >> </wsse:SecurityTokenReference> >> </ds:KeyInfo> >> <xenc:CipherData> >> >> <xenc:CipherValue>ocmeEmZvxM1o2yM3PcqIs4wpOrMkyG1No6XOO6TYKYwdvEAHRQge >> m6c70nCOPBcKeTjPLRNQ+Uts1FJhc+79mZkHHWqHS/Rvhwmb992rWjxFwvwbSkbCTu3eYK >> wVBdMT12ap8cRtniBgUcjfWUPXJFLGcK6ZDpqYaN9HN/8MXbBL0Yme9yznj2PZqK8C3Rye >> 0DRunyCutJutYZ1/RbCbs/SARKS6ycCG921xtYqwHN5VgM5W+7wVyErbg+COi7beE+b2dC >> R/kSlPpxID8R8x28T17MtCGdYRlauXHUsH+fojNxrn/I7EkKipVMzHH4/Ig0SOdWms6UDe >> H/fDgtgDMDyEXK7gPFGm3/KsUbNavxwxiMeDXItEskL3QG0fdeUgPr1A+GxTfI2poEVdbJ >> +Efw==</xenc:CipherValue> >> </xenc:CipherData> >> </xenc:EncryptedData> >> </soap:Body> >> </soap:Envelope> >> >> Best regards, >> Udo > > > > -- > Colm O hEigeartaigh > > Talend Community Coder > http://coders.talend.com -- Colm O hEigeartaigh Talend Community Coder http://coders.talend.com
