Last Updated: January 28, 2019
· swampmobile

Android: Generate Release/Debug Keystores

Generate Keystores

To generate keystores for signing Android apps at the command line, use:

$ keytool -genkey -v -keystore my-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000

A debug keystore which is used to sign an Android app during development needs a specific alias and password combination as dictated by Google. To create a debug keystore, use:

$ keytool -genkey -v -keystore debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000
  • Keystore name: "debug.keystore"
  • Keystore password: "android"
  • Key alias: "androiddebugkey"
  • Key password: "android"
  • CN: "CN=Android Debug,O=Android,C=US"


For your release keystore, do the same as above but choose a name, alias, and password that you prefer.

Get Key Fingerprints

To hook your app up with services like Google APIs you'll need to print out each of your keys' fingerprints and give them to the services you're using. To do that, use:

$ keytool -list -v -keystore [keystore path] -alias [alias-name] -storepass [storepass] -keypass [keypass] 

For your debug key that would look like:

$ keytool -list -v -keystore debug.keystore -alias androiddebugkey -storepass android -keypass android 

10 Responses
Add your response


Thank you :)

over 1 year ago ·

Hi, my keytool application doesn't have the parameter "-keygen", I find the following parameter: -genkeypair, -genseckey so I don't know how to proceed.
Can you help me, please?

over 1 year ago ·

Great post!!
Thank you very much for sharing amazing valuable information here.
Also check - https://installkodionfirestick.com/kodi-on-firestick-without-pc-computer/

10 months ago ·

Thanks for the useful information sharing http://may2018calendar.info/

10 months ago ·

Thanks for sharing this post.
Also check: http://kodifirestick.blog/

7 months ago ·

Thank you soo much

7 months ago ·

That came to 3,009 dog foods. http://dogfoodsolution.angelfire.com/ Second, the pet components that dish.

6 months ago ·