<body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener('load', function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <div id="navbar-iframe-container"></div> <script type="text/javascript" src="https://apis.google.com/js/platform.js"></script> <script type="text/javascript"> gapi.load("gapi.iframes:gapi.iframes.style.bubble", function() { if (gapi.iframes && gapi.iframes.getContext) { gapi.iframes.getContext().openChild({ url: 'https://www.blogger.com/navbar/1074803565153692547?origin\x3dhttp://innolearning.blogspot.com', where: document.getElementById("navbar-iframe-container"), id: "navbar-iframe" }); } }); </script>

InnoLearning

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: , , , , ,

posted by MIGHTYMAK @ 9:06 PM, ,