If you have enabled the App Signing service, a message will be displayed, indicating that the app has been added to the app signature plan.
If you want to use App Signing for a released app, you can only upload your own signature key. Currently, AppGallery Connect does not support generating a new signature key for a released app. You need to use the pepk.jar tool to generate a .zip file that contains the signature key, and upload the .zip file to AppGallery Connect. For higher security, you can also submit the certificate of the upload key. You are advised to use an upload key different from the signature key. If you do not submit an upload key, you need to use your signature key as the upload key. |
If you have enabled the App Signing service, a message will be displayed, indicating that the app has been added to the app signature plan.
java -jar pepk.jar --keystore sign-keystore.jks --alias sign --output=sign.zip --encryptionkey=034200041E224EE22B45D19B23DB91BA9F52DE0A06513E03A5821409B34976FDEED6E0A47DBA48CC249DD93734A6C5D9A0F43461F9E140F278A5D2860846C2CF5D2C3C02 --include-cert
Replace the italic and boldfaced content in the command with the actual values.
Steps 9 to 11 are optional. For higher security, you can manually upload a new upload key different from the signature key. If you do not upload an upload key, AppGallery Connect will use the uploaded signature key as the upload key by default to verify your identity information.
keytool -export -rfc -keystore upload-keystore.jks -alias upload -file upload_certificate.pem
Replace the italic and boldfaced content in the command with the actual values.
AppGallery Connect verifies the uploaded signature key in the following sequence:
For details about the encryption algorithms and key lengths supported by AppGallery Connect, please refer to Restrictions.
For details about the app consistency restrictions, please refer to the detailed requirements.
If the signature key uploaded to AppGallery Connect is different from that of the released app, the new certificate fingerprint may be different from that generated locally during app development. If the services you are integrating need to depend on the SHA-256 certificate fingerprint, you need to add the new SHA-256 certificate fingerprint after app re-signing for your app.
Re-signing will take several minutes.