Skip to main content

Generate Keystore Manually

In this guide we will create a release keystore manually. A release keystore is required to sign your android applications before publishing it to the Google Play Store.

In a terminal copy the following command and press enter

keytool -genkey -v -keystore ~/upload-keystore.jks -keyalg RSA -storetype PKCS12 -keysize 2048 -validity 10000 -alias upload

You can replace ~/upload-keystore.jks from the above command and give a location yourself where you would like to save the file. ( The above path will save the file in the home folder ).

You can also change the alias upload from the above command to your specific value. Please make sure to remember it as it will be used in the future.

The process will ask for more information which will be specific to your organization. At the end it will ask you to verify the information. Enter yes and press enter. You will be prompted for a store password, enter a strong password which you will remember. If you are prompted for the alias password, just press enter to use the previous password.

Finally the process will create a upload-keystore.jks release keystore for you. Use this file to sign your release builds for Android. Make sure to keep this file private.

Tip

As you have created your release keystore, you may want to learn to sign your release apk builds with this release keystore. To know more about the same please follow Sign Apk Manually