|
cout |
|
<< "Usage: " << executable << " COMMAND [OPTIONS] FILE" << endl << endl |
|
<< " Command create:" << endl |
|
<< " Example: " << executable << " create --file=file1.txt --file=file2.txt demo-container.asice" << endl |
|
<< " Available options:" << endl |
|
<< " --file= - The option can occur multiple times. File(s) to be signed" << endl |
|
<< " --mime= - can be after --file parameter. Default value is application/octet-stream" << endl |
|
<< " --dontsign - Don't sign the newly created container." << endl |
|
<< " for additional options look sign command" << endl << endl |
|
<< " Command createBatch:" << endl |
|
<< " Example: " << executable << " createBatch folder/content/to/sign" << endl |
|
<< " Available options:" << endl |
|
<< " for additional options look sign command" << endl << endl |
|
<< " Command open:" << endl |
|
<< " Example: " << executable << " open container-file.asice" << endl |
|
<< " Available options:" << endl |
|
<< " --warnings=(ignore,warning,error) - warning handling" << endl |
|
<< " --policy=(POLv1,POLv2) - Signature Validation Policy (default POLv2)" << endl |
|
<< " http://open-eid.github.io/SiVa/siva/appendix/validation_policy/" << endl |
|
<< " --extractAll[=path] - extracts documents (to path when provided)" << endl << endl |
|
<< " Command add:" << endl |
|
<< " Example: " << executable << " add --file=file1.txt container-file.asice" << endl |
|
<< " Available options:" << endl |
|
<< " --file= - The option can occur multiple times. File(s) to be added to the container" << endl |
|
<< " --mime= - can be after --file parameter. Default value is application/octet-stream" << endl << endl |
|
<< " Command remove:" << endl |
|
<< " Example: " << executable << " remove --document=0 --document=1 --signature=1 container-file.asice" << endl |
|
<< " Available options:" << endl |
|
<< " --document= - documents to remove" << endl |
|
<< " --signature= - signatures to remove" << endl << endl |
|
<< " Command websign:" << endl |
|
<< " Example: " << executable << " sign --cert=signer.crt demo-container.asice" << endl |
|
<< " Available options:" << endl |
|
<< " --cert= - signer token certificate" << endl |
|
<< " for additional options look sign command" << endl << endl |
|
<< " Command sign:" << endl |
|
<< " Example: " << executable << " sign demo-container.asice" << endl |
|
<< " Available options:" << endl |
|
<< " --profile= - signature profile, TM, time-mark, TS, time-stamp" << endl |
|
<< " --XAdESEN - use XAdES EN profile" << endl |
|
<< " --city= - city of production place" << endl |
|
<< " --street= - streetAddress of production place in XAdES profile" << endl |
|
<< " --state= - state of production place" << endl |
|
<< " --postalCode= - postalCode of production place" << endl |
|
<< " --country= - country of production place" << endl |
|
<< " --role= - option can occur multiple times. Signer role(s)" << endl |
|
#ifdef _WIN32 |
|
<< " --cng - Use CNG api for signing under windows." << endl |
|
<< " --selectFirst - Select first certificate in store." << endl |
|
<< " --thumbprint= - Select certificate in store with specified thumbprint (HEX)." << endl |
|
#endif |
|
<< " --pkcs11[=] - default is " << (CONF(PKCS11Driver)) << ". Path of PKCS11 driver." << endl |
|
<< " --pkcs12= - pkcs12 signer certificate (use --pin for password)" << endl |
|
<< " --pin= - default asks pin from prompt" << endl |
|
<< " --sha(224,256,384,512) - set default digest method (default sha256)" << endl |
|
<< " --sigsha(224,256,384,512) - set default digest method (default sha256)" << endl |
|
<< " --dontValidate= - Don't validate container" << endl << endl |
|
<< " All commands:" << endl |
|
<< " --nocolor - Disable terminal colors" << endl |
|
<< " --loglevel=[0,1,2,3,4] - Log level 0 - none, 1 - error, 2 - warning, 3 - info, 4 - debug" << endl |
|
<< " --logfile= - File to log, empty to console" << endl; |