USAGE: provisionsigner sign [options]

This generates Provision from input, then signs the generated Provision from server,
and outputs into the target file. It supports 3 type of input: raw provision,
user input(App Gallery or PKI Internal).


        GENERAL OPTIONS

--in                  Input file to sign that contains provision's fundamental elements.
                      See PROFILE INPUT FORMAT for more details.

--out                 File into which to output the signed Provision. Signed Provision is
                      in binary format, should be visualized via verify option.

--inputType           Input file content type, must be one of "raw_provision", "app_gallery_input",
                      or "pki_internal_input". This leads to different provision input handle to
                      generate provision.

--signType            Sign type that the provision should be signed, must be one of "debug", "release",
                      or "development". This leads to different sign config for provision signer.

--config              Config file path that determines that signer network config, sign config,
                      and content config. See default config in template directory.

--username            Huawei w3 domain account, for sign permission check from server.

--password            Huawei w3 password, for sign permission check from server.

-h, --help            Show help about this command and exit


        PROFILE INPUT FORMAT
1.Raw Provision
See http://isource.huawei.com/z00455719/HapAndProvisionSignToolDoc/tree/master
See template for more details.

2.App Gallery Provision Input(NOT FULLY SUPPORT NOW)
See http://isource.huawei.com/z00455719/HapAndProvisionSignToolDoc/tree/master
See template for more details.

3.PKI Internal Provision Input(NOT FULLY SUPPORT NOW)
See http://isource.huawei.com/z00455719/HapAndProvisionSignToolDoc/tree/master
See template for more details.

        EXAMPLES

1. Generate and sign a release Provision from raw provision, using w3 account & password, with default configs:
$ provisionsigntool sign --in rawProvision.json --inputType raw_provision --signType release
 --out HarmonyAppProvision.p7b --username z00123456 --password pwd123456

2. Generate and sign a development Provision from PKI internal provision input, using w3 account & password, with custom configs:
$ provisionsigntool sign --in internalProvisionInput.json --inputType pki_internal_input --signType development
 --out HarmonyAppProvision.p7b --username z00123456 --password pwd123456 --config signConfigs.json
