Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Verify http requests from signed jar

I'm writing client for my webapplication, and i signed release jar with my developer certificate, how can i verify that request to rest service was from my signed jar?

like image 641
ilya.stmn Avatar asked Apr 21 '15 04:04

ilya.stmn


1 Answers

You cannot. Signing is for execution validation which means it is on the server side. But you want to check signature on the http/rest request on the client side. Client side has no such validation.

You can add something to the response itself and validate it on the client side but, again, nothing prevents any other server to send the same value and so pretend to be your server.

You can also add some behavior characteristics to your jar (like session cookies) but, again, nothing prevents other jars to emulate it too.

like image 91
Alex Avatar answered Oct 05 '22 08:10

Alex