Android APP certificate Android signature certificate .keystore file production and generation


insert image description hereWhen you publish the app to App Store, but you or your team have never uploaded the app, you can claim the app through the claim function when the following picture is displayed when uploading the installation package . After the claim is successful, the app will be automatically transferred to your account, and all the data of the app will be kept, which you can manage in the app management.
1. Click Claim App, and confirm whether the package name of the application to be claimed is your application.
insert image description here2. After confirming that it is correct, click Next to confirm the APPID, that is, the developer chooses to associate the newly created APPID or the original APPID that has been stored. 3
insert image description here. Download the empty package to be signed provided by the application center
insert image description here4. Sign the blank installation package, open the cmd command operation window, cd into the directory where the blank package tap_unsign. The .kestore file is also placed in the same directory, as shown in the figure below
insert image description here5. In the cmd command line, enter jarsigner -verbose -keystore my.keystore (Android certificate name) -signedjar out_sign.apk (apk generated after signing) tap_unsign. apk (blank package apk) alias (Android certificate alias), then prompted to enter the keystore password, after entering the password, click Enter
insert image description here6. Then a signed file (out_sign.apk) will be generated in the folder where the blank package is stored ,as follows:
insert image description here

Android certificates can be customized, generated locally at any time, without limitation, and do not need to pay to Google. You can freely create Android certificates on your computer at any time.

The Android certificate is a basic skill that every Android developer should master, which will help you to sign the Android APK installation package. Before making an Android certificate, you should prepare the JRE environment. If your local computer has not installed the JRE environment, it is recommended that you deploy the Java environment.

If not, you can go to the java official to download, download address: https://www.oracle.com/java/technologies/downloads/
insert image description hereAfter the environment is successfully deployed, we enter win+r to start CMD
insert image description here
After opening cmd, enter Add to your java environment installation directory a temporary environment variable

set PATH=%PATH%;"H:\java环境安装目录\bin"

Use the command to generate an Android certificate
-alias followed by your custom alias; please enter English

-keysize default 2048

-validity defaults to 36500, and the certificate is valid for 100 years. You can define it according to your own time node, such as 365, which means the validity period is 365 days;

-keystore custom file name. keystore custom file name, please enter English

keytool -genkey -alias hehetest -keyalg RSA -keysize 2048 -validity 36500 -keystore hehetest.keystore

After entering, press Enter in cmd and you will enter the next step

Enter keystore password:  //输入密码
Re-enter new password:   //再次输入密码  
What is your first and last name?  
  [Unknown]:  //输入名字  
What is the name of your organizational unit?  
  [Unknown]:  //输入团队名
What is the name of your organization?  
  [Unknown]:  //输入公司名
What is the name of your City or Locality?  
  [Unknown]:  //输入城市
What is the name of your State or Province?  
  [Unknown]:  //输入省份
What is the two-letter country code for this unit?  
  [Unknown]:  //输入国家,中国为CN
Is CN=XX, OU=XX, O=XX, L=XX, ST=XX, C=XX correct?  
  [no]:  //确认,输入y

Enter key password for <testalias>  
        (RETURN if same as keystore password):  //再次输入密码

After that, the system will automatically generate a .keystore file in the folder where your CMD is located.

The file ending in .keystore is your Android certificate!

Android certificates can be customized, generated locally at any time, without limitation, and do not need to pay to Google. You can freely create Android certificates on your computer at any time.

However, this kind of freedom is only recommended for you to use during the development stage. Once you have signed the Android certificate to the apk installation package, once your APK is released to the public, no matter whether it is distributed or put on the app store, it is not recommended that you change your Android certificate. You should understand that the Android certificate is the unique identity of each APP. Once the Android certificate is changed, Android devices such as mobile devices and tablet devices will no longer be able to associate the new certificate APK with the old certificate APK.

Changing any of the Android certificates will result in two different icons being generated on the Android desktop. Even if the two apps are the same in everything else, if only the Android certificate is changed, the system will consider them as two completely different apps.

At the same time, it will also block the interface communication of many third-party open platforms. Many third-party platforms, such as WeChat sharing, login, payment and other services of the WeChat open platform, are bound to a unique Android package name and signature. Most open platforms allow only one package name and signature to be entered.

Guess you like

Origin blog.csdn.net/qianjiu520/article/details/127652982