verify signiture in Java that was signed in c# .net
802258Aug 13 2009 — edited Aug 13 2009Hi
I have a problem to verify signiture.
I'm signing message in .net with x509 and try to verify it in java.
the awnser is always FALSE
here is my code in java:
Signiture sig = Signiture.getInstance("RSA");
sig.initVerify(cert.getPublic());
sig.update(content.getBytes("UTF8"));
boolean ret = sig.verify(sigToVerify);
Tnx Yaniv