1 Create a keystore.
keytool -genkey -keyalg RSA -keystore <keystore_file> -alias <alias>
2.Generate a CSR.
keytool -certreq -file <csr_file> -keystore <keystore_file> -alias <alias>
3. Copy the contents of the CSR file and paste them directly into the VeriSign enrollment form,submit.
4. Versign will send back a confirmation e-mail with Sun Java Code Signing Digital ID attached.Copy the Digital ID and save into a text file which will be refered as <cert_file> below.
6.Import certificate
keytool -import -trustcacerts -keystore <keystore_file> -alias <alias> -file <cert_file>
7.Sign the jad file
java -jar JadTool.jar addjarsig
java -jar JadTool.jar addcerts
*note:do not sign the jar file