We are having problems signing a string of text in Java using the .pfx certificate generated under windows. First, we executed the following steps in the order shown below on a Ubuntu Linux 12.0.4 LTS:
1 - Converted the .pfx certificate to java keystore (jks) using the following commands:
5 - Signing text messages with the private key retrieved from the jks ketstore
We used Java 7 to sign the text. We did not encounter any coding issue, and the .initVerify() method in java.security.Signature returned true. The problem is that when the code is signed on Windows using the .Net platform, the signature is different than the one produced by Java. Both applications use the SHA256 with RSA.