Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sign a jar file exported from Eclipse 3.5?

Tags:

eclipse

jar

sign

Is it possible to sign a jar file as you export it from Eclipse 3.5? Or a plugin to allow this to happen?

I can easily export a runnable jar, and sign it myself using jarsigner, but manually doing this every change is not efficient.

like image 735
Ken Avatar asked Aug 12 '09 17:08

Ken


People also ask

How do I sign an unsigned jar?

You invoke the JAR Signing and Verification Tool by using the jarsigner command, so we'll refer to it as "Jarsigner" for short. To sign a JAR file, you must first have a private key. Private keys and their associated public-key certificates are stored in password-protected databases called keystores.

Why do we sign JAR files?

Signing a jar file, just like using certificates in other contexts, is done so that people using it know where it came from. People may trust that Chris Carruthers isn't going to write malicious code, and so they're willing to allow your applet access to their file system.


1 Answers

If there is no plugin, a possible alternative is to setup an ant script to do the operation for you on demand.

The JAR Signing mentions the Platform-releng-signedbuild script as an example, completed with a few tips.

like image 145
VonC Avatar answered Sep 21 '22 06:09

VonC