application.executeProgram
Posted: Wed Mar 02, 2022 5:05 pm
I am trying to run application.executeprogram, specifing the cmd as I would do in a console, but I can't pass it the parameters I want.
In the console the command is:
The options or parameters that I can pass to AFCL.exe in cmd are:
I would appreciate help to indicate the correct way to pass these possible parameters to the application.
In the console the command is:
AFCL.exe sign -certgui -i c:\tmp\fich.xml -o c:\tmp\fich_s.xml -format XAdES -store windows -filter subject.contains:12710839G -xml -config "policyIdentifier=urn:ticketbai:dss:policy:1\npolicyDescription=TicketBAI sinadura-politika / Politica de firma TicketBAI\npolicyIdentifierHash=6NrKAm60o7u62FUQwzZew24ra2ve9PRQYwC21AM6In0=\n policyIdentifierHashAlgorithm=http://www.w3.org/2001/04/xmlenc#sha256 \n policyQualifier=https://www.gipuzkoa.eus/ticketbai/sinadura \n format=XAdES Enveloped"
The options or parameters that I can pass to AFCL.exe in cmd are:
-gui (Performs the operation with a graphical environment. It has priority over -certgui)
-certgui (Uses a graphical dialog for the selection of the signing certificate)
-i inputfile (Input file path)
-o outputfile (Output file path)
-algorithm algo (Signature Algorithm)
-format (Sets the signature format)
auto (Selection of format based on the input file)
cades (CAdES format)
pades (PAdES format)
xades (XAdES format)
invoicee (Electronic invoice signature)
ooxml (OOXML format)
odf (ODF Format)
-config extraParams (Properties in plain text with the configuration of the operation)
-store (Sets the key store. By default, the system one)
auto (System Key Store)
windows (Windows Key Store)
mac (Mac OS X Key Store)
mozilla (Mozilla Firefox Keystore)
ID (electronic ID)
pkcs12:p12file (PKCS#12 store. "p12file" is the store path)
pkcs11:p11file (PKCS#11 store. "p11file" is the driver path)
-password password (Sets the store password)
-alias alias (Alias of the signing certificate)
-filter filter (Filter to select the signing certificate)
-xml (Formats the response as XML)
I would appreciate help to indicate the correct way to pass these possible parameters to the application.