Run the cmd command to generate an android signature certificate.

Source: Internet
Author: User

Run the cmd command to generate an android signature certificate.

Run the cmd command to generate an android signature certificate. If you have time, write an eclipse-exported apk with a signature, which includes generating a new signature. Now let's talk about how to generate a signature certificate in cmd.

1. Enter the JDK bin directory under dos

Run the following command: keytool-genkey-alias android. keystore-keyalg RSA-validity 20000-keystore android. keystore

(-Validity 20000 indicates the validity period.) After the command is completed, 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:-keystore alias generated by alias test,-keyalg RSA encryption and digital signature algorithm,-validity 20000 valid days


Enter the keystore password: 123456
Enter the new password again: 123456
What is your first name and last name?
[Unknown]: rob
What is the name of your organization?
[Unknown]: abc
What is your organization name?
[Unknown]: abc
What is the name of your city or region?
[Unknown]: guangzhou
What is the name of your province/city/autonomous region?
[Unknown]: guangzhou
What is the dual-letter country/region code for this unit?
[Unknown]: cn
CN = rob, OU = abc, O = abc, L = guangzhou, ST = guangzhou, C = cn is correct?
[No]: y

Enter the <test> key password
(If it is the same as the keystore password, press Enter ):

If no error exists, go back to the root directory of drive D and check that test. keystore is added.

 

So the first input is the keystore password.
The password of the key alias. Generate a signature here.

2. View md5 fingerprint verification

Enter keytool-list-v-alias androiddebugkey-keystore and add the copied content from the red box.
Here is the keytool-list-v-alias androiddebugkey-keystore C: \ Users \ ZLQ \. android \ debug. keystore. Press enter.

-Alias androiddebugkey: This is an alias.
-Keystore C: \ Users \ ZLQ \. android \ debug. keystore key store

Enter the password. The password is android. Now you can obtain the MD5 fingerprint.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.