How uni-app generates certificates and application signatures

uni-app generates certificate and application signature

First download the JRE file and decompress it. Extraction
code:
After decompressing chai, open the terminal with cmd in the current folder and enter
the command (the fourth word test in the command is the name of the last generated file)

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

After entering, you need to enter the key, set it yourself, it will not be displayed when you enter it, just remember it, after entering it, click Enter and follow the prompts to
enter the last name, unit name, organization name, city or region name, province, municipality and autonomous region name, country Region code (CN means China)
and finally enter y and press Enter.
At this time, you can find the test file in the bin folder, put test on the desktop, and continue to enter the following command in the terminal

keytool.exe -list -v -keystore C:\Users\Administrator\Desktop\test.keystore

Enter the key password after pressing Enter and continue pressing Enter

insert image description here
There are two signatures here, and an MD5 signature is required.
There are two ways:
1. Use a common signature: 59:20:1C:F6:58:92:02:CB:2C:DA:B2:67:52: 47:21:12
2. Command generation: keytool -exportcert -keystore test.keystore | openssl dgst -md5 You can directly fill in test in the certificate alias required for
packaging (just keep the same as the created file name)
The key password is the password of the keystore. For
the certificate file, just select the test.keystore file just generated.
insert image description here

Guess you like

Origin blog.csdn.net/m0_71585401/article/details/131090176