Uploaded image for project: 'Rampart'
  1. Rampart
  2. RAMPART-366

sp:EncryptBeforeSigning protection order does not work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.7.0
    • None
    • rampart-policy
    • None

    Description

      Specifying <sp:EncryptBeforeSigning/> protection order in my <sp:SymmetricBinding> security binding results in my Axis server returning the following fault:

      org.apache.axis2.AxisFault: An unsupported signature or encryption algorithm was used (WSSecurityEngine: EncryptedData does not contain xenc:EncryptedKey)

      My requests go through if I comment out <sp:EncryptBeforeSigning/> from my policy. My requests also go through with similar security options <sp:SignBeforeEncrypting/> + <sp:EncryptSignature/>.

      In Axis 1.5.2 + Rampart 1.5.2 and in 1.6.1, the symptom is the following:

      2012-04-24 17:41:43,604 [main] DEBUG org.apache.rampart.MESSAGE - *********************** RampartReceiver received
      <?xml version='1.0' encoding='utf-8'?>
      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">

      <soapenv:Body>
      <soapenv:Fault>
      <faultcode>soapenv:Server</faultcode>
      <faultstring>Missing argument</faultstring>
      <detail />
      </soapenv:Fault>
      </soapenv:Body>
      </soapenv:Envelope>

      Lastly, I looked for a Rampart example using sp:EncryptBeforeSigning but found none. I wonder if this is supported at all?

      Attachments

        1. tested-policy.xml
          5 kB
          Suresh Attanayake
        2. RAMPART-366.xml
          7 kB
          Suresh Attanayake
        3. policy.xml
          3 kB
          Philippe A

        Activity

          People

            Unassigned Unassigned
            futhark77 Philippe A
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: