paulavijit
12 years agoNew Contributor
X.509 Encryption
Hi,
I have developed a Web Service using CXF and secured it with WS-Security (UsernameToken Timestamp Signature Encrypt). I am using a X.509 certificate. I have tested it successfully using a CXF client.
When I test using SoapUI, I get the following error:
org.apache.ws.security.WSSecurityException: The signature or decryption was invalid
All configuration that I have done in CXF client I could do it in SoapUI except the following:
<entry key="encryptionUser" value="myservicekey"/>
I am sure absence of this configuration in SoapUI is causing this error as when I remove this configuration from CXF client I get the same error.
I could also test the web service successfully using SoapUI when the service is secured with UsernameToken Timestamp and Signature. Only when I add Encrypt, I get this error.
Can anyone please help in testing this scenario with SoapUI.
Regards
Paul
I have developed a Web Service using CXF and secured it with WS-Security (UsernameToken Timestamp Signature Encrypt). I am using a X.509 certificate. I have tested it successfully using a CXF client.
When I test using SoapUI, I get the following error:
org.apache.ws.security.WSSecurityException: The signature or decryption was invalid
All configuration that I have done in CXF client I could do it in SoapUI except the following:
<entry key="encryptionUser" value="myservicekey"/>
I am sure absence of this configuration in SoapUI is causing this error as when I remove this configuration from CXF client I get the same error.
I could also test the web service successfully using SoapUI when the service is secured with UsernameToken Timestamp and Signature. Only when I add Encrypt, I get this error.
Can anyone please help in testing this scenario with SoapUI.
Regards
Paul