Sign jar with the certificate named alias in the keystore
jarsigner -keystore .keystore -storepass password myjar.jar alias