Batch processing
You can run the batch processing commands from the command line to perform the same tasks that are available in the GUI versions of the PKCS #11 tools.
p11km -b <batchfile>
p11admin -b <batchfile>
Because these tools use the OpenSSL library to parse the batch files, the format of the batch files follows the typical OpenSSL configuration file format. Each section is a separate command, and the attribute value pairs provide the information that is required for processing. Each section command is batch processed in order from top to bottom. If an individual batch command fails, an error is printed and batch processing terminates without processing the subsequent section commands.
The following is an example of the OpenSSL configuration file format.
[section1]
attribute1 = “value1”
attribute2 = “value2”
...
attributeN = “valueN”
[section2]
attribute1 = “value1”
attribute2 = “value2”
...
attributeN = “valueN”
...
...
[sectionN]
attribute1 = “value1”
attribute2 = “value2”
...
attributeN = “valueN”
- p11km tool
p11km_cmd
- p11admin tool
p11admin_cmd
[p11km_cmd_list_my_tokens]
action_name=”LIST_TOKENS”
start_gui=”<boolean>”
If you run a batch command that contains the boolean attribute with a value of TRUE, the batch processing terminates after that command completes, and the GUI starts.