Posted: Mon Jan 25, 2016 1:35 am Post subject: Web Service Security + Algorithm
Novice
Joined: 21 Jan 2015 Posts: 13
Hi,
I am implementing Message Signing using certificates in WMB. I have managed to apply signatures to the messages being sent from SOAP Request node. However the response from the Web Service is "The signature or decryption was invalid; nested exception is org.apache.ws.security.WSSecurityException: The signature or decryption was invalid"
However when I test it using SOAP UI, it works fine.
Can Someone help me what algorithm to choose in Policy Sets or how is the Signature calculated using the certificates.
The algorithm used in certificate is RSA1-SHA......Which algorith do we have to select from the Policy Sets...
Posted: Mon Jan 25, 2016 5:19 am Post subject: Re: Web Service Security + Algorithm
Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
sandeep.nandanwar wrote:
I am implementing Message Signing using certificates in WMB.
What version?
sandeep.nandanwar wrote:
I have managed to apply signatures to the messages being sent from SOAP Request node.
How do you know? Specifically, what procedure have you followed to ensure that a valid signature has been applied to the message?
sandeep.nandanwar wrote:
However the response from the Web Service is "The signature or decryption was invalid; nested exception is org.apache.ws.security.WSSecurityException: The signature or decryption was invalid"
What hosts this web service? What are they expecting?
sandeep.nandanwar wrote:
Can Someone help me what algorithm to choose in Policy Sets or how is the Signature calculated using the certificates.
The algorithm used in certificate is RSA1-SHA......Which algorith do we have to select from the Policy Sets...
See above; will the calling service accept that certificate? Do they want something stronger?
sandeep.nandanwar wrote:
However when I test it using SOAP UI, it works fine.
You should be aware that SoapUI is using an entirely different PKI to the one WMB is using. So there could be any number of differences between the 2 that could be causing problems. Possible problem areas include (but are not limited to):
- WMB using a certificate signed with too weak a cipher where Windows is not
- WMB using a certificate signed by a CA the called web service doesn't trust where it trusts the Windows one
- WMB not actually sending a signature due to a policy set configuration error _________________ Honesty is the best policy.
Insanity is the best defence.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum