05 October 2011

Signing a jar file

As I had to sign the jar file (to provide it permissions), used the following command to sign the jar file.

jarsigner -keystore  PATHTO\srack.keys -storepass password PATHTOYOURJAR\audiorecording-1.0.jar https://www.skillrack.com/

Note: The srack.keys was generated earlier using a command like (as I was lazy specified 10 years validity :))
keytool -genkey -keystore srack.keys -alias https://www.skillrack.com/ -validity 3650