What is a Google Keystore?
The keystore is simply a certificate which is used to identify the Application developer and Google has made this items mandatory in Android build.
How to make a Google Keystore with Apple Mac
1. Open the application call "Terminal.app" located within Application> Utilities>Terminal.app
2. We will used the command describe below to generate our keystore within the "Terminal.app" application, but before generation our Keystore we need to personalise our Command.
KeyStore Command:
keytool -genkey -v -storetype Keystore_type -keystore Your_personal_file_title.keystore -alias Your_personal_alias -keyalg RSA -keysize 2048 -validity 10000 |
3. Rename the following entry of the command :
- Your_personal_file_title => for example: MyApp (name of your certificate)
- Your_personal_alias => for example: JohnDoe
- Keystore_type => Choose one of two supported keystore types: JKS or PKCS12
keytool -genkey -v -storetype PKCS12 -keystore MyApp.keystore -alias JohnDoe -keyalg RSA -keysize 2048 -validity 10000 |
4. Copy the command in the "Terminal.app" and press Enter"
5. Create a Keystore Password and confirm your password
(Advise: make it simple and keep it in mind as you will need it for the build form)
6. Enter your First name and Last Name and press the return key
7. Enter the name of your Organisation Unit and press the return key
8. Enter the name of your Organisation and press the return key
9. Enter the Name of your City and press the return key
10. Enter your states or Province and press the return key
11. Enter your Two-letter country Code (e.g. US for United States of America)
12 Confirm that the information entered are correct by typing "yes" or "no" and press return
13. Press return to confirm that you want to use your certificate password for your alias (recommended)
14. Press the return key and your Keystore Certificate will be created. This one will be store in your folder profile Macintosh HD /Users/YourProfileName by default
In our example the file will be called "MyApp.keystore"
How to make a Google Keystore with Windows
1. Tools we need to develop an Android Keystore file?
Please ensure you have the Java Development kit installed on your machine before you start. You need this to create your Keystore file.
The Android Keystore file can be created in Java Development Kit, and to download the installation file, click on this link: http://www.oracle.com/technetwork/java/javase/downloads/index.html - install JDK.
After installation…
2. Standard procedure:
First you need to open the command prompt.. Easiest way is to click the “Start menu” in the bottom left corner and in the search field write: cmd [Push the Enter button]. Afterwards the Command Prompt appears and you find your installed JDK.
- To go from a directory to its parent directory write cd.. [Push the Enter button].
- When you are at c:/ write cd Program files [Push the Enter button].
- cd Java [Push the Enter button].
- cd jdk1.7.0_03 [Push the Enter button].
- cd bin [Push the Enter button].
3. Personalise your command before entering it in the windows Command Prompt:
Default command:
keytool -genkey -v -storetype Keystore_type -keystore Your_personal_file_title.keystore -alias Your_personal_alias -keyalg RSA -keysize 2048 -validity 10000 |
Rename the following entry of the command
- Your_personal_file_title => for example: MyApp (name of your certificate)
- Your_personal_alias => for example: JohnDoe
- Keystore_type => Choose one of two supported keystore types: JKS or PKCS12
keytool -genkey -v -storetype PKCS12 -keystore MyApp.keystore -alias JohnDoe -keyalg RSA -keysize 2048 -validity 10000 |
Press enter.
4. And enter your profile information.
Enter keystore password: ?
(it will appear nothing is happening when you type, this is hidden)
What is your first and last name?
What is the name of your organizational unit?
What is the name of your organization?
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?
Confirm all is ok - Type YES
Afterwards it will create your Android Keystore file in your C:\Program files\Java\jdk1.7.0_03\bin directory, with the name you gave it, in our example MyApp.keystore