When a client sends us a signed financial transaction as an xmlnode over https it fails to verify the signature. We narrowed down the issue to the fact that newline characters and spaces are added to the xml during the https call.
We can successfully verify the signature when we manually get the data in a file from the client (notice there are only two lines and no spaces…)
But the data that is received when the service is called is this (notice every tag is in a new line, well intended with spaces etc). This data received fails to verify the signature…
The client is calling the service thru a java code
Anybody came across an issue like the message over the internet adding newline characters
I tried to remove the CRLF and space characters manually and found that the message can be successfully verified.
I wonder how to help my client solve it in his java code. Any pointers are most welcome.
Thanks and Regards