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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With