How Do I Sign .jar Files Using the CLI Command Jarsigner?
Problem
How Do I Sign .jar Files Using the CLI Command Jarsigner?
Solution
Create a file named eToken.cfg that contains the following lines, and save it to your JDK bin folder (e.g. C:\Program Files (x86)\Java\jdk1.7.0_05\bin).
If the command executed successfully, you should see something similar to the following output:
Sample output:
Enter Passphrase for keystore:
adding: META-INF/7800FA4C.SF
requesting a signature timestamp
TSA location: http://tsa.quovadisglobal.com/TSS/HttpTspServer
adding: META-INF/7800FA4C.RSA
signing: samplejar.class
jar signed.