During system building, OpenHarmony signs system applications to ensure their integrity and source reliability. This module provides a binary tool \(**hapsigntoolv2.jar**\) for signing OpenHarmony system applications.
Descriptions of the fields in the preceding command:
```
hapsigntoolv2.jar: OpenHarmony signing tool
-mode: signing mode. The OpenHarmony signing key pair is stored in the local keystore file. The signing mode is localjks.
-privatekey: alias of the signing key pair
-inputFile: application to be signed
-outputFile: signed application
-signAlg: signing algorithm
-keystore: path of the keystore file
-keystorepasswd: password of the keystore file. The default password of OpenHarmony.jks is 123456.
-keyaliaspasswd: password of the signing key pair. The password of OpenHarmony Software Signature is 123456.
-profile: a file declaring the capabilities and permissions of the application
-certpath: path of the signing certificate
-profileSigned: whether the application profile is signed. Value 1 indicates that the profile is signed; value 0 indicates the opposite. The default value is 1.