/opt/cpanel/ea-openssl11/share/doc/openssl/html/man1
NameSizeModeActions
asn1parse.html84190644editdlrm
ca.html316500644editdlrm
CA.pl.html95690644editdlrm
ciphers.html359490644editdlrm
cms.html305600644editdlrm
crl.html48120644editdlrm
crl2pkcs7.html43090644editdlrm
c_rehash.html58130644editdlrm
dgst.html90280644editdlrm
dhparam.html63620644editdlrm
dsa.html72020644editdlrm
dsaparam.html50220644editdlrm
ec.html80690644editdlrm
ecparam.html73020644editdlrm
enc.html170010644editdlrm
engine.html43680644editdlrm
errstr.html19290644editdlrm
gendsa.html41290644editdlrm
genpkey.html141140644editdlrm
genrsa.html52750644editdlrm
list.html34860644editdlrm
nseq.html33410644editdlrm
ocsp.html213580644editdlrm
openssl-asn1parse.html84190644editdlrm
openssl-ca.html316500644editdlrm
openssl-ciphers.html359490644editdlrm
openssl-cms.html305600644editdlrm
openssl-crl.html48120644editdlrm
openssl-crl2pkcs7.html43090644editdlrm
openssl-c_rehash.html58130644editdlrm
openssl-dgst.html90280644editdlrm
openssl-dhparam.html63620644editdlrm
openssl-dsa.html72020644editdlrm
openssl-dsaparam.html50220644editdlrm
openssl-ec.html80690644editdlrm
openssl-ecparam.html73020644editdlrm
openssl-enc.html170010644editdlrm
openssl-engine.html43680644editdlrm
openssl-errstr.html19290644editdlrm
openssl-gendsa.html41290644editdlrm
openssl-genpkey.html141140644editdlrm
openssl-genrsa.html52750644editdlrm
openssl-list.html34860644editdlrm
openssl-nseq.html33410644editdlrm
openssl-ocsp.html213580644editdlrm
openssl-passwd.html43590644editdlrm
openssl-pkcs7.html43140644editdlrm
openssl-pkcs8.html135210644editdlrm
openssl-pkcs12.html158750644editdlrm
openssl-pkey.html63400644editdlrm
openssl-pkeyparam.html34650644editdlrm
openssl-pkeyutl.html141440644editdlrm
openssl-prime.html23610644editdlrm
openssl-rand.html39550644editdlrm
openssl-rehash.html58130644editdlrm
openssl-req.html287540644editdlrm
openssl-rsa.html79270644editdlrm
openssl-rsautl.html80450644editdlrm
openssl-sess_id.html61280644editdlrm
openssl-smime.html212230644editdlrm
openssl-speed.html40590644editdlrm
openssl-spkac.html57540644editdlrm
openssl-srp.html27560644editdlrm
openssl-storeutl.html47390644editdlrm
openssl-s_client.html354850644editdlrm
openssl-s_server.html334900644editdlrm
openssl-s_time.html97260644editdlrm
openssl-ts.html272270644editdlrm
openssl-tsget.html84750644editdlrm
openssl-verify.html326030644editdlrm
openssl-version.html23980644editdlrm
openssl-x509.html374040644editdlrm
openssl.html215120644editdlrm
passwd.html43590644editdlrm
pkcs7.html43140644editdlrm
pkcs8.html135210644editdlrm
pkcs12.html158750644editdlrm
pkey.html63400644editdlrm
pkeyparam.html34650644editdlrm
pkeyutl.html141440644editdlrm
prime.html23610644editdlrm
rand.html39550644editdlrm
rehash.html58130644editdlrm
req.html287540644editdlrm
rsa.html79270644editdlrm
rsautl.html80450644editdlrm
sess_id.html61280644editdlrm
smime.html212230644editdlrm
speed.html40590644editdlrm
spkac.html57540644editdlrm
srp.html27560644editdlrm
storeutl.html47390644editdlrm
s_client.html354850644editdlrm
s_server.html334900644editdlrm
s_time.html97260644editdlrm
ts.html272270644editdlrm
tsget.html84750644editdlrm
verify.html326030644editdlrm
version.html23980644editdlrm
x509.html374040644editdlrm
Edit: /opt/cpanel/ea-openssl11/share/doc/openssl/html/man1/tsget.html (8475B)
tsget

NAME

openssl-tsget, tsget - Time Stamping HTTP/HTTPS client

SYNOPSIS

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]...

DESCRIPTION

The tsget command can be used for sending a timestamp request, as specified in RFC 3161, to a timestamp server over HTTP or HTTPS and storing the timestamp 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. tsget can send several requests to the server without closing the TCP connection if more than one requests are specified on the command line.

The tool sends the following HTTP request for each timestamp request:

        POST url HTTP/1.1
        User-Agent: OpenTSA tsget.pl/<version>
        Host: <host>:<port>
        Pragma: no-cache
        Content-Type: application/timestamp-query
        Accept: application/timestamp-reply
        Content-Length: length of body

        ...binary request specified by the user...

tsget expects a response of type application/timestamp-reply, which is written to a file without any interpretation.

OPTIONS

-h server_url

The URL of the HTTP/HTTPS server listening for timestamp requests.

-e extension

If the -o option is not given this argument specifies the extension of the output files. The base name of the output file will be the same as those of the input files. Default extension is '.tsr'. (Optional)

-o output

This option can be specified only when just one request is sent to the server. The timestamp response will be written to the given output file. '-' means standard output. In case of multiple timestamp requests or the absence of this argument the names of the output files will be derived from the names of the input files and the default or specified extension argument. (Optional)

-v

The name of the currently processed request is printed on standard error. (Optional)

-d

Switches on verbose mode for the underlying curl library. You can see detailed debug messages for the connection. (Optional)

-k private_key.pem

(HTTPS) In case of certificate-based client authentication over HTTPS <private_key.pem> must contain the private key of the user. The private key file can optionally be protected by a passphrase. The -c option must also be specified. (Optional)

-p key_password

(HTTPS) Specifies the passphrase for the private key specified by the -k argument. If this option is omitted and the key is passphrase protected tsget will ask for it. (Optional)

-c client_cert.pem

(HTTPS) In case of certificate-based client authentication over HTTPS <client_cert.pem> must contain the X.509 certificate of the user. The -k option must also be specified. If this option is not specified no certificate-based client authentication will take place. (Optional)

-C CA_certs.pem

(HTTPS) The trusted CA certificate store. The certificate chain of the peer's certificate must include one of the CA certificates specified in this file. Either option -C or option -P must be given in case of HTTPS. (Optional)

-P CA_path

(HTTPS) The path containing the trusted CA certificates to verify the peer's certificate. The directory must be prepared with the c_rehash OpenSSL utility. Either option -C or option -P must be given in case of HTTPS. (Optional)

-rand file:file...

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)

-g EGD_socket

The name of an EGD socket to get random data from. (Optional)

[request]...

List of files containing RFC 3161 DER-encoded timestamp requests. If no requests are specified only one request will be sent to the server and it will be read from the standard input. (Optional)

ENVIRONMENT VARIABLES

The TSGET environment variable can optionally contain default arguments. The content of this variable is added to the list of command line arguments.

EXAMPLES

The examples below presume that file1.tsq and file2.tsq contain valid timestamp requests, tsa.opentsa.org listens at port 8080 for HTTP requests and at port 8443 for HTTPS requests, the TSA service is available at the /tsa absolute path.

Get a timestamp response for file1.tsq over HTTP, output is written to file1.tsr:

  tsget -h http://tsa.opentsa.org:8080/tsa file1.tsq

Get a timestamp response for file1.tsq and file2.tsq over HTTP showing progress, output is written to file1.reply and file2.reply respectively:

  tsget -h http://tsa.opentsa.org:8080/tsa -v -e .reply \
        file1.tsq file2.tsq

Create a timestamp 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 \
        -o file3.tsr

Get a timestamp response for file1.tsq over HTTPS without client authentication:

  tsget -h https://tsa.opentsa.org:8443/tsa \
        -C cacerts.pem file1.tsq

Get a timestamp response for file1.tsq over HTTPS with certificate-based client authentication (it will ask for the passphrase if client_key.pem is protected):

  tsget -h https://tsa.opentsa.org:8443/tsa -C cacerts.pem \
        -k client_key.pem -c client_cert.pem file1.tsq

You can shorten the previous command line if you make use of the TSGET environment variable. The following commands do the same as the previous example:

  TSGET='-h https://tsa.opentsa.org:8443/tsa -C cacerts.pem \
        -k client_key.pem -c client_cert.pem'
  export TSGET
  tsget file1.tsq

SEE ALSO

openssl(1), ts(1), curl(1), RFC 3161

COPYRIGHT

Copyright 2006-2020 The OpenSSL Project Authors. All Rights Reserved.

Licensed under the OpenSSL license (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at https://www.openssl.org/source/license.html.