Signing a JAR file
Jump to navigation
Jump to search
Make sure you have a valid JDK loaded.
Create a key
keytool -genkey -validity 3650 -keystore pKeyStore -alias D2key
Enter keystore password:
What is your first and last name?
[Unknown]: ARCHITECTURE AND DESIGN
What is the name of your organizational unit?
[Unknown]: TECHNOLOGY & OPERATIONS
What is the name of your organization?
[Unknown]: PABUT
What is the name of your City or Locality?
[Unknown]: Washington
What is the name of your State or Province?
[Unknown]: New Jersey
What is the two-letter country code for this unit?
[Unknown]: US
Is CN=ARCHITECTURE AND DESIGN, OU=TECHNOLOGY & OPERATIONS, O=PABUT, L=Washington, ST=New Jersey, C=US correct?
[no]: yes
Enter key password for <D2key>
(RETURN if same as keystore password):
Now Self-Sign the key
keytool -selfcert -keystore pKeyStore -alias D2key -validity 3650 Enter keystore password:
Now sign the JAR file
jarsigner -keystore pKeyStore AppletClass.jar D2key