Linux "tsget" Command Line Options and Examples
Time Stamping HTTP/HTTPS client

The tsget command can be used for sending a time stamp request, as specified in RFC 3161, to a time stamp server over HTTP or HTTPS and storing the time stamp response in a file. This tool cannot be used for creating the requests and verifying responses, you can use the OpenSSL ts(1) command to do that.


Usage:

tsget -h server_url [-e extension] [-o output] [-v] [-d] [-k private_key.pem] [-p key_password] [-c
client_cert.pem] [-C CA_certs.pem] [-P CA_path] [-r file:file...] [-g EGD_socket] [request]...






Command Line Options:

-h
The URL of the HTTP/HTTPS server listening for time stamp requests.
tsget -h ...
-e
If the -o option is not given this argument specifies the extension of the output files. The base name ofthe output file will be the same as those of the input files. Default extension is '.tsr'. (Optional)
tsget -e ...
-o
This option can be specified only when just one request is sent to the server. The time stamp responsewill be written to the given output file. '-' means standard output. In case of multiple time stamprequests or the absence of this argument the names of the output files will be derived from the names ofthe input files and the default or specified extension argument. (Optional)
tsget -o ...
-v
The name of the currently processed request is printed on standard error. (Optional)
tsget -v ...
-k
(HTTPS) In case of certificate-based client authentication over HTTPS <private_key.pem> must contain theprivate key of the user. The private key file can optionally be protected by a passphrase. The -c optionmust also be specified. (Optional)
tsget -k ...
-p
(HTTPS) Specifies the passphrase for the private key specified by the -k argument. If this option isomitted and the key is passphrase protected tsget will ask for it. (Optional)
tsget -p ...
-c
(HTTPS) In case of certificate-based client authentication over HTTPS <client_cert.pem> must contain theX.509 certificate of the user. The -k option must also be specified. If this option is not specified nocertificate-based client authentication will take place. (Optional)
tsget -c ...
-C
(HTTPS) The trusted CA certificate store. The certificate chain of the peer's certificate must include oneof the CA certificates specified in this file. Either option -C or option -P must be given in case ofHTTPS. (Optional)
tsget -C ...
-P
(HTTPS) The path containing the trusted CA certificates to verify the peer's certificate. The directorymust be prepared with the c_rehash OpenSSL utility. Either option -C or option -P must be given in case ofHTTPS. (Optional)
tsget -P ...
-rand
The files containing random data for seeding the random number generator. Multiple files can be specified,the separator is ; for MS-Windows, , for VMS and : for all other platforms. (Optional)
tsget -rand ...
-g
The name of an EGD socket to get random data from. (Optional)[request]...List of files containing RFC 3161 DER-encoded time stamp requests. If no requests are specified only onerequest will be sent to the server and it will be read from the standard input. (Optional)ENVIRONMENT VARIABLESThe TSGET environment variable can optionally contain default arguments. The content of this variable is addedto the list of command line arguments.EXAMPLESThe examples below presume that file1.tsq and file2.tsq contain valid time stamp requests, tsa.opentsa.orglistens at port 8080 for HTTP requests and at port 8443 for HTTPS requests, the TSA service is available atthe /tsa absolute path.Get a time stamp response for file1.tsq over HTTP, output is written to file1.tsr:tsget -h http://tsa.opentsa.org:8080/tsa file1.tsqGet a time stamp response for file1.tsq and file2.tsq over HTTP showing progress, output is written tofile1.reply and file2.reply respectively:tsget -h http://tsa.opentsa.org:8080/tsa -v -e .reply \file1.tsq file2.tsqCreate a time stamp request, write it to file3.tsq, send it to the server and write the response to file3.tsr:openssl ts -query -data file3.txt -cert | tee file3.tsq \| tsget -h http://tsa.opentsa.org:8080/tsa \
tsget -g ...