From ea473db769538035b19efbdfe317c01db2eae425 Mon Sep 17 00:00:00 2001 From: Ox1080 <22803939+0x1080@users.noreply.github.com> Date: Thu, 17 Jun 2021 12:06:43 +0000 Subject: [PATCH] openssl-ts: add page (#6125) --- pages/common/openssl-ts.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pages/common/openssl-ts.md diff --git a/pages/common/openssl-ts.md b/pages/common/openssl-ts.md new file mode 100644 index 0000000000..400f12f12b --- /dev/null +++ b/pages/common/openssl-ts.md @@ -0,0 +1,20 @@ +# openssl ts + +> OpenSSL command to generate and verify timestamps. +> More information: . + +- 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}}`