Use the SignClient signdatagroups command to sign the specified data groups and produce an SOd (MRTD).
Command Options
|
Option |
Description |
|---|---|
|
|
Access token to use for JWT authentication. Can only be used with protocol HTTP or REST. |
|
|
Data to send to the Worker. |
|
|
Encoding of the data option: |
|
|
Server name or IP address. Default: |
|
|
Alias of the key in the keystore to use for authentication. |
|
|
Keystore with private key and certificate for client certificate authentication. |
|
|
Password for reading the keystore. If |
|
|
Additional metadata to send to the Signer. The parameters should be given in the format |
|
|
Password for authentication. If |
|
|
Server port. Default: |
|
|
Method of interacting with SignServer: |
|
|
The number of times the operation will run. Default: |
|
|
Servlet to call. Default: |
|
|
Keystore with trusted certificates to use with HTTPS. |
|
|
Password for the keystore with trusted certificates. If |
|
|
Username for authentication. |
|
|
ID of Worker performing the operation. |
|
|
Name of Worker performing the operation. |
Example Use Cases
Sign Plain Text
Send three data groups (numbered 1, 2, and 3) as plain text values to the MRTD SOD signer. Data groups are passed as a single &-separated string of GROUPNUMBER=VALUE pairs. The command uses the default HTTP protocol and no encoding (raw text):
signdatagroups -workername MRTDSODSigner -data "1=value1&2=value2&3=value3"
Sign Base64-encoded Hashes
Sign with data group values that are Base64-encoded hashes rather than plain text strings:
signdatagroups -workername MRTDSODSigner -data "1=PJaDAX+eS/M9D77dJr8UP9ct6bndFFRBt18GBAR+oo4=&2=BTfUgfc6dXM0MoBS2jr5YmztlwKOILhJ9hFcIs12UZc=&3=idxq5/Bqn0a1Za8D6rDs4L9gJNNlm346HQNXPP6wtZ0="
Note that despite the values being Base64, the -encoding flag is not used here. The encoding flag controls how the -data argument itself is interpreted by SignClient, not the format of the values within it.
Sign with Additional Metadata
If the Worker is configured to accept or require extra parameters, pass additional key-value metadata to the Signer alongside the data groups:
signdatagroups -workername MRTDSODSigner -data "1=value1&2=value2&3=value3" -metadata param1=value1 -metadata param2=value2