The cmd command generates an Android signing certificate and is available to write an eclipse export signed apk, which includes generating a new signature. Now it's time to talk about how the CMD operation generates the signing certificate.
1, DOS access to the JDK Bin directory
Run the following command: Keytool-genkey-alias android.keystore-keyalg rsa-validity 20000-keystore android.keystore
(-validity 20000 represents the number of days of validity), and when the command is completed, the Android.keystore is generated in the bin directory
Example:
C:\Program Files (x86) \java\jdk1.8.0_25\bin>
Keytool-genkey-alias test.keystore-keyalg rsa-validity 20000-keystore d:\test.keystore
Ps:-alias Test generated KeyStore alias,-keyalg RSA encryption and digital Signature algorithm,-validity 20000 effective days
Enter new password again: 123456
What is your first and last name?
[Unknown]: Rob
What is your organizational unit name?
[Unknown]: ABC
What is your organization name?
[Unknown]: ABC
What is the name of your city or region?
[Unknown]: Guangzhou
your province/city/ What is the name of the autonomous region?
[Unknown]: guangzhou
What is the two-letter country/region code for this unit?
[Unknown]: CN
cn=rob, Ou=abc, O=ABC, L =guangzhou, St=guangzhou, is c=cn correct?
[no]: y
Enter the key password for <test>
(If the KeyStore password is the same, press ENTER):
If there is no error then go back to the D packing directory, more Test.keystore
So for the first time, the key store password is entered.
The password for the key alias that was last entered. It's OK to create a signature here.
2. View MD5 fingerprint verification
Enter Keytool-list-v-alias Androiddebugkey-keystore plus what you just copied from the Red box
I'm here keytool-list-v-alias androiddebugkey-keystore C:\Users\ZLQ\.android\debug.keystore, enter.
-alias Androiddebugkey This is an alias.
-keystore C:\Users\ZLQ\.android\debug.keystore Location-specific KeyStore
Ask for a password, the password is Android, so we can get MD5 certified fingerprint.
CMD command to generate an Android signing certificate