USAGE:	-operation <sign|verify|version|help> [options]

        -mode : signature mode, support [localfile | localjks | remote | binlocaljks | binremote]

        -username : w3 domain account

        -password : w3 domian account password

        -certpath : public certiticate path(used by local jks mode)

        -privatekey : private key

        -inputFile : input file to sign

        -outputFile : signature result file

        -outcertchain : used for verify, output signature cert chain

        -outprofile : used for verify, output package provision file

        -keystore : key store

        -keystorepasswd : keystore password

        -keyaliaspasswd 123456 : key password

        -profileSigned : if profile signed, signed : 1, not signed : 0

EXAMPLE:
	   help : -component SignHap -operation help

	   version : -component SignHap -operation version

	   verify : -component SignHap -operation verify -inputFile D:\\signed_hap.hap -outcertchain D:\\output_cert.cer -outputprofile E:\output_profile.bin

	   sign(localfile mode) : -component SignHap -operation sign -mode localfile -privatekey D:\\test_hap_signkey.pk8 -publickey D:\\test_hap_signkey.x509.pem  -inputFile D:\\Music.hap -outputFile D:\\signed_Music.hap 

	   sign(localjks mode) : -component SignHap -operation sign -mode localjks -privatekey "Hap Debug signkey" -inputFile D:\\Music.hap -outputFile D:\\signed_Music.hap -keystore D:\\test_hap_signkey.p12 -keystorepasswd 123456 -keyaliaspasswd 123456 -certpath D:\\hw_hapkey_rsa_ide_dev.cer -profile D:\\provision_release.PROFILE

	   sign(remote mode) : -component SignHap -operation  sign -mode remote -privatekey "Hap Debug signkey" -inputFile D:\\Music.hap -outputFile D:\\signed_Music.hap -signAlg SHA256withECDSA -server rnd-signserver.huawei.com -username z00424910 -password xxx -profile D:\\provision_release.PROFILE

	   sign(binlocaljks mode) : -component SignHap -operation sign -mode binlocaljks -privatekey "Hap Debug signkey" -inputFile D:\\Music.hap -outputFile D:\\signed_Music.hap -keystore D:\\test_hap_signkey.p12 -keystorepasswd 123456 -keyaliaspasswd 123456 -certpath D:\\hw_hapkey_rsa_ide_dev.cer -profile D:\\provision_release.PROFILE -profileSigned 1

	   sign(binremote mode) : -component SignHap -operation  sign -mode binremote -privatekey "Hap Debug signkey" -inputFile D:\\Music.bin -outputFile D:\\signed_Music.bin -signAlg SHA256withECDSA -server rnd-signserver.huawei.com -username z00424910 -password xxx -profile D:\\provision_release.PROFILE -profileSigned 1

hapsigntool is a tool for signing ZOS HAP files and for checking whether signatures of HAP files will verify on Huawei devices.

COMMANDS:
       sign:    Sign the provided HAP

       verify:    Check whether the provided HAP is expected to verify on ZOS

       version:    Show this tool's version number and exit

       help:    Show this usage page and exit