CMD command to generate an Android signing certificate

Source: Internet
Author: User

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

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.