HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

openssl ts — OpenSSL command to generate and verify timestamps. More information: <https://docs.openssl.org/maste

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandandopensslcliopenssl tsgenerateverify

Problem

How to use the openssl ts command: OpenSSL command to generate and verify timestamps. More information: <https://docs.openssl.org/master/man1/openssl-ts/>.

Solution

openssl ts — OpenSSL command to generate and verify timestamps. More information: <https://docs.openssl.org/master/man1/openssl-ts/>.

Generate a SHA-512 timestamp request of a specific file and output to file.tsq:
openssl ts -query -data {{path/to/file}} -sha512 -out {{path/to/file.tsq}}


Check the date and metadata of a specific timestamp response file:
openssl ts -reply -in {{path/to/file.tsr}} -text


Verify a timestamp request file and a timestamp response file from the server with an SSL certificate file:
openssl ts -verify -in {{path/to/file.tsr}} -queryfile {{path/to/file.tsq}} -partial_chain -CAfile {{path/to/cert.pem}}


Create a timestamp response for request using key and signing certificate and output it to file.tsr:
openssl ts -reply -queryfile {{path/to/file.tsq}} -inkey {{path/to/tsakey.pem}} -signer tsacert.pem -out {{path/to/file.tsr}}

Code Snippets

Generate a SHA-512 timestamp request of a specific file and output to `file.tsq`

openssl ts -query -data {{path/to/file}} -sha512 -out {{path/to/file.tsq}}

Check the date and metadata of a specific timestamp response file

openssl ts -reply -in {{path/to/file.tsr}} -text

Verify a timestamp request file and a timestamp response file from the server with an SSL certificate file

openssl ts -verify -in {{path/to/file.tsr}} -queryfile {{path/to/file.tsq}} -partial_chain -CAfile {{path/to/cert.pem}}

Create a timestamp response for request using key and signing certificate and output it to `file.tsr`

openssl ts -reply -queryfile {{path/to/file.tsq}} -inkey {{path/to/tsakey.pem}} -signer tsacert.pem -out {{path/to/file.tsr}}

Context

tldr-pages: common/openssl ts

Revisions (0)

No revisions yet.