How to Sign a JAR (Java) File on Debian

Install JDK package:

apt-get install default-jdk

Execute and enter all neccessary data Name, Country, etc:

keytool -genkey -validity 3650 -keystore pKeyStore -alias keyName

Execute and enter all neccessary data password, etc:

keytool -selfcert -keystore pKeyStore -alias keyName- validity 3650

Execute and enter the password to the turning up question:

jarsigner -keystore pKeyStore Main.jar keyName

Additional information:

Signing JAR Files (The Java™ Tutorials)

More Related Posts