This document will show you step by step how to create a keystore file for you Android Release build.
*Please note in order to complete the steps below you will need to have Java Developer Kit downloaded on your computer.
Step by Step Instructions
Open terminal on your computer
Copy the following command: keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000
Replace the "my-release-key" with the name of the app and the same as the "alias_name" --> Example: keytool -genkey -v -keystore applicaster.keystore -alias applicaster -keyalg RSA -keysize 2048 -validity 10000
After you have edited the command accordingly, copy the command and past it in terminal directly after "user$"
After you press enter the next command will prompt you to enter a keystore password. *As you enter the password the terminal will not show any indication you are typing but the password is being entered.
Verify the password again
You will be prompted with the following questions, answer them accordingly:
- What is your first name?
- What is the name of your organizational unit?
- What is the name of your orgnization?
- What is the name of your city or locality?
- What is the name of your state or province?
- What is the two-letter country code for this unit?
After filling out all the answer press enter and a new command will appear confirming al your answers. Type "y" and then press enter
Your keystore file will then be generated
Search your computer for the file and save it in a place you can access it again:
Upload the keystore file to your android release build and enter the alias and password you created in the steps above (the store password is the password for the Google Play Console)
For a Release Build on Android we need:
We can create all of those with a line of code in the Terminal:
keytool -genkey -v -keystore NameOfFile.keystore -storepass KeyStorePassword -alias KeyStoreAlias -keypass KeyPassword -keyalg RSA -keysize 2048 -validity 10000
Change words marked in blue, passwords and names to fit your app.
Copy to the terminal.
Once you copied it to the terminal you will need to answer some questions.
Once completed the Key Store File will be on your computer.
When running your release build you just need to enter the credentials with which you created the file.