Use the SignClient timestamp command to request a timestamp:
$ bin/signclient timestamp
usage: timestamp <options> [url]
Command Options
|
Option |
Description |
|---|---|
|
|
Provide option to base64 encode the stored request or reply. Default is to not encode. |
|
|
Input file containing one or multiple PEM encoded certificates that will be used as trustanchors for certificate chain validation. |
|
|
Request Signer certificate. |
|
|
Digest algorithm used for creating timestamp request hash. Default: |
|
|
Print this message. |
|
|
File containing message to timestamp. |
|
|
Input file containing an earlier stored base64 encoded response to verify. You must specify the |
|
|
Input file containing an earlier stored request to use instead of creating a new. You must specify the |
|
|
String to be timestamped. If neither |
|
|
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 |
|
|
Output file to store the received TSA reply. By default, the reply is not stored. |
|
|
Output file to store the sent TSA request. By default, the request is not stored. |
|
|
Prints content of a request, response, or token. |
|
|
Request timestamp issued under a policy OID. |
|
|
Input file containing the PEM-encoded certificate of the TSA signer. Used to verify a stored response. |
|
|
Sleep a number of milliseconds after each request. Default: |
|
|
Keystore with trusted certificates to use with HTTPS. |
|
|
Password for the keystore with trusted certificates. If |
|
|
Url of TSA. Example: |
|
|
Verify the stored reply. You must also specify |
Example Use Cases
Send a Timestamp Request
Send a timestamp request to a specific Worker by passing its name as a URL query parameter, rather than using -workername or -workerid flags:
timestamp -url http://localhost:8080/signserver/tsa?workerName=TimeStampSigner
This is an alternative way to target a Worker when using the TSA servlet endpoint directly.
Read a Timestamp Request File
Read an existing timestamp request file (.tsq) from disk and print the contents in human-readable form:
timestamp -print -inreq query.tsq
No request is sent to the server. This is purely for inspecting a previously saved request.
Read a Timestamp Response File
Read an existing timestamp response file (.tsr) from disk and prints the contents in human-readable form:
timestamp -print -inrep reply.tsr
Again, no server communication. Useful for inspecting or verifying a timestamp token.