When we use eclipse or other ide for development, when you run as Android Application, we use the default keystore for signature. The default location is, for example, in: C: \ Users \ Administrator \. android \ debug. keystore. When the application is going to be launched, it uses the specific keystore of your own application. How can we create this keystore?
The keystore is generated by the built-in JDK tool keytool. For details, refer:
Run cmd to enter the command line, enter the bin directory of java_home in command line mode, and then type the following command:
Keytool.exe-genkey-alias MyApp. keystore-keyalg RSA-validity 20000-keystore rbase. keystore
To create a keystore:
Parameter description:
-AliasFollowed by an alias. Here is MyApp. keystore.
-KeyalgThe encryption method is RSA.
-ValidityYes. The validity period is 20000.
-KeystoreThe name of the keystore to be generated. Here is rbase. keystore.
The file name is rbase. keystore (the bin directory of the file under java_home) has an alias of MyApp. keystore. If Android is used for packaging, the file name and alias must be used. please note!