Article referencehttp://blog.csdn.net/pi9nc/article/details/11352863
In the C:\Program Files\Java\jdk1.8.0_20\bin directory, enter the following command line
keytool -genkey -alias Android.keystore -keyalg RSA -validity 100000 -keystore android.keystore
Parameter meaning: -validity is mainly the validity period of the certificate, which is 100,000 days; spaces and backspaces are all passwords.
Enter keystore password: android
What is your first and last name?
[Unknown]:
What is your organizational unit name?
[Unknown]:
What is the name of your organization?
[Unknown]:
What is the name of your city or area?
[Unknown]:
What is the name of your state or province?
[Unknown]:
What is the two-letter country code for this unit
[Unknown]:
CN=sxl, OU=xs, O=xuesheng, L=null, ST=null, C=null correct?
[no] y
Enter the master password for <android.keystore>
(If it is the same as the keystore password, press Enter) :)