1. Generate a private a key
[path] >keytool -genkey -keystore -alias
Once you enter the command, it will prompt multiple questions and you have to answer them all. And please remember the password you provided, you need to provide it when you sign a jar
2. Then you can sign a jar
path>jarsigner -keystore -signedjar
3. Delete files in signed jar.
Open signed jar(E.g.: S2CBuilder.signed.jar) by using 7-zip compression tool.
No comments:
Post a Comment