-1

I am writing a program which communicates with a server. But i want the server to only work with the original jar.

Is there anyway to do this? certificates etc?

Vaibhav Jain
  • 3,729
  • 3
  • 25
  • 42
Oisin100
  • 1
  • 1

1 Answers1

2

Sign your jar file

And verify the signature of the jar file on runtime.

Community
  • 1
  • 1
  • This would be verifying the signature on the client side, not the server side. There's still no way of the server knowing if the client has been tampered with. – Tom Hawtin - tackline Jul 16 '14 at 06:23
  • @TomHawtin-tackline it depends on a particular task. In some cases checking on the client side is enough. In some cases (for online games, to prevent cheating with patched clients) it is not. –  Jul 16 '14 at 06:25
  • Im using the client to send back data to the server but the data Needs to be legit. Havent Been able to try testing the cert yet because my java Broke.... – Oisin100 Jul 16 '14 at 18:19
  • Oh yea and the server is Another jar not an http server – Oisin100 Jul 19 '14 at 07:51