Generate a signed digital certificate by yourself

Source: Internet
Author: User

Generate a signed digital certificate by yourself

 

I. Reasons

1. If the apk is published online, the default debug. keystore signature has security issues. Therefore, you must write your own signature.

 

Ii. Functions of signatures

Make sure that this apk is mine. Other applications with the same package name cannot be replaced if the signatures are different.

 

Iii. Methods

Method 1: Use the keytool.exe tool in JDK.

Use keytool.exe in JDK

My directory is:

E: \ JAVA \ jdk \ bin \ keytool.exe

 

Procedure

1. Run keytool on the windows Command Line, provided that jdk has been configured

2. View production key pair help

3. Generate digital signatures and certificates

4. OK. production is ready.

 

 

Method 2: Use eclipse's Project Export Function

Procedure

1. Right-click the blank area of the project and click "export ".

2. Export the android Project

3. Select a project

4. Create a New keystore

5. Enter key creation

6. Sign the android Project

7. OK. The signature file and the signed apk are ready.

 

Using jarsigner.exe in JDK to sign unsigned APK

My directory:

E: \ JAVA \ jdk \ bin \ jarsigner.exe

 

Steps:

1. generate an unsigned APK

2. Unsigned APK

3rd use jarsigner.exe in JDK to sign unsigned APK

4. Signature successful

 

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.