[Android] Generate signature certificate fingerprint

The article is taken from Huawei's open platform and is for your own memo reference only

The signature certificate fingerprint is used to verify the authenticity of the application, you need to generate the signature certificate fingerprint locally according to the signature certificate


The following two conditions need to be met before generating the signature certificate fingerprint:

1. The signing certificate of the application has been created. To create a signing certificate, please refer to Generating a Signing Certificate.
2. JDK has been installed on the current PC .

The operation steps are as follows:

Windows

1. Execute the CMD command to open the command line tool, and execute the cd command to enter the directory where keytool.exe is located (the following example is the Program Files directory where the JDK is installed on the C drive).

cd C:\Program Files\Java\jdk\bin

2. Execute the command keytool -list -v -keystore and operate according to the command line prompts. The full path to the application signing certificate.
For example:

keytool -list -v -keystore C:\TestApp.jks

Obtain the corresponding SHA256 fingerprint based on the result.
insert image description here

macOS

1. Open the Terminal terminal.
insert image description here

2. Execute the command keytool -list -v -keystore and operate according to the command line prompts. The full path to the application signing certificate.
For example:

keytool -list -v -keystore /Users/admin/Downloads/HmsDemo.jks

Obtain the corresponding SHA256 fingerprint based on the result.
insert image description here

Guess you like

Origin blog.csdn.net/mingtiannihao0522/article/details/115368728