Guide of Create App Signature
If you want upload App Bundle to Huawei AppGallery you have to create App Signature file first.
Let learn how we can do that correctly.
Step 1 — Install JAVA
If you don’t have JAVA on your computer you have to install.
If you have already, make sure up to date.
For downlad last version follow this link; https://www.java.com/tr/download/
Step 2 — Create Path into Environment Variables for Java.
If JAVA installed correctly, the path is looks like;
“C:\Program Files (x86)\Java\jre1.8.0_261\bin”
or
“C:\Program Files (x86)\Java\jdk1.8.0_261\bin”
- Search for Environment Variables than select Edit the system environment variables
2. Click the Environment Variables button.
3. Under System Variables, click New.
4.1. In the Variable Name field, enter either:
JAVA_HOME if you installed the JDK (Java Development Kit)
or
JRE_HOME if you installed the JRE (Java Runtime Environment)
4.2. In the Variable Value field, enter your JDK or JRE installation path.
5. Find the Path row under System variables than double click.
6. Click New button, set the correct path than click Ok
Step 3 — Check java command in terminal
Step 4 — Download pepk.jar file
pepk (Play Encrypt Private Key) is a tool for exporting private keys from a Java Keystore
For download last version follow; https://github.com/yongjhih/pepk/releases
Step 5 — Move pepk.jar and YOUR_KEYSTORE.jks or YOUR_KEYSTORE.keystore files into same folder
And right click while Shift key on keyboard than click to
Open PowerShell window here link.
Step 6 — Run the commad
java -jar pepk.jar --keystore YOUR_KEYSTORE.jks --alias YOUR_ALIAS --output=YOUR_OUTPUT.zip --encryptionkey=034200041E224EE22B45D19B23DB91BA9F52DE0A06513E03A5821409B34976FDEED6E0A47DBA48CC249DD93734A6C5D9A0F43461F9E140F278A5D2860846C2CF5D2C3C02 --include-cert
Make sure you have change correctly YOUR_KEYSTORE, YOUR_ALIAS variables and enter store and key password in order.
And that’s it!
Now, you can continue with upload zip file on App Signature screen.