We have an unsupported application at my place of work which digitally signs XML messages using a certificate from a keystore that we want to replace. Im attempting to write a replacement application using
Java however when I sign the XML, the generated digital signatures between both the existing application and my Java code are different. As the existing application obviously works Im not sure what is wrong with my Java code.
The digital signatures generated between both the existing application and my Java code are exactly the same except from the digest value and the signature value.
Here is the digital signature that is generated:
Here is the code that I use to generate the digital signature:
Can someone more experienced than me please take a look over my code to ensure that it looks OK and im not missing anything obvious? Also, any other troubleshooting tips that can be offered would be greatly appreciated. Thanks