To create Android Keystore follow next instruction:
- Open the terminal.
- Type in
keytool -genkey -v -keystore 'yourappname.keystore' -alias 'appnamealias' -keyalg RSA -keysize 2048 -validity 10000
Where: yourappname - your application name.
appnamealias - alias for keystore.
keytool -genkey -v -keystore 'imobile.keystore' -alias 'imobile-alias' -keyalg RSA -keysize 2048 -validity 10000
3. Then hit "Enter".
4. You will be asked for a password. Don’t use anything you will forget and if you really need to, write it down. If you lose the password you won't be able to update your application in the future.
5. You will be asked to re-enter your password, do so, then hit "Enter" again.
6. You’ll be asked for your first and last names, key those in, hit "Enter" again.
7. You’ll be asked for the name of your "organizational unit". I would use "DevIT-Team" for mine – you would likely use your studio name or if you don’t have any alternatives, your own full name. Enter again.
8. You’re asked for the name of your organization. I will use "DevIT-Team" again (Studio name or full name).
9. You’ll be asked for your "city of locality", so you’d enter your city name.
10. You’ll be asked for your "state or province", so you’d enter the name of your state.
11. You will be asked for a country code. You need to key in the two letter code for your country. The United States is of course “US”, Australia is “AU”.
12. Finally, you will be asked to confirm all is correct and then enter your password once more, which will be the same as the one you entered and reentered in steps 3 and 4.
13. You will be asked to enter and re-enter your password for alias, do so, then hit "Enter" again.
14. The ".keystore" file has been created! You can find it by clicking on the magnifying glass in the top right and doing a quick search for ".keystore" – move it to a safe folder you have created and be sure to back that up immediately. And that’s it!