Simple steps to Self Sign the JAR through command prompt
Friday, June 4, 2010
Step 1: Generating Keystore, In the command prompt, cd to the path where we have placed the Jars and type:
keytool -genkey -keystore myKeystore -alias myself
(Note that if you run keytool it would prompt you for information like your First Name and Last Name, Organization, Business Unit, etc - I usually provide everything as blank (by pressing the return key at the prompt. At the end please provide "yes" reply for confirmation question)
Step 2: Self-Signing the key & cert in the keystore:
keytool -selfcert -alias myself -keystore myKeystore
Step 3: (Optional)
Confirming by listing all the values in the keystores which we have created.
keytool -list -keystore myKeystore
Step4: Signing the Jar. Below command will finally sign the UIManager.jar present in the current directory with the keystore which we have created in above steps.
jarsigner -keystore myKeystore UIManager.jar myself
Self-Signed Jar is ready!!!
Labels: command prompt, JAR, jars, Netscape JAR, self signed jar, signing jar
posted by MIGHTYMAK @ 9:06 PM, ,