Skip to content

Instantly share code, notes, and snippets.

@caingougou
Created February 12, 2014 09:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save caingougou/8952570 to your computer and use it in GitHub Desktop.
Save caingougou/8952570 to your computer and use it in GitHub Desktop.
Create keystore file and sign a jar file (or android package)
# create keystore file
keytool -genkey -v -keystore [my-release-key].ketstore -keyalg RSA -validity 1000 -alias [some_alias]
# sign package
jarsigner -keystore my-release-key.ketstore [some-release-unsigned.apk] some_alias
# verify signed package
jarsigner -verify [some-release-unsigned.apk]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment