CXF is performing digest over decrypted body, but <sp:EncryptBeforeSigning> is defined in the WSDL policy

Solution Unverified - Updated -

Issue

My WSDL has a security policy to sign and encrypt messages, and that includes the order defined by the policy <sp:EncryptBeforeSigning>. Yet CXF is trying to validate the digest over the decrypted SOAP body:

org.apache.ws.security.WSSecurityException: The signature or decryption was invalid

What is going on here?

Environment

  • Red Hat JBoss Enterprise Platform (EAP)
    • 6.x
  • JBossWS/CXF

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.