From dd19915c91e753d660b780d0f6161f76be2968c3 Mon Sep 17 00:00:00 2001 From: Pierre-Francois Carpentier Date: Fri, 12 Apr 2019 14:26:21 +0200 Subject: [PATCH] dl for the signer cert + fix example + css tweaks * add a DL button + serve the signer certificate file (the one used to timestamp) * fix the verification instruction (add -untrusted tsa_cert.pem) * few CSS tweaks to improve page layout --- goodies/index.html | 43 ++++++++++++++++++++--------------- inc/context.h | 1 + inc/http.h | 56 ++++++++++++++++++++++++++-------------------- src/lib/http.c | 42 +++++++++++++++++++++++++++++++--- src/lib/utils.c | 5 +++++ 5 files changed, 102 insertions(+), 45 deletions(-) diff --git a/goodies/index.html b/goodies/index.html index fef0ab8..d80fa52 100644 --- a/goodies/index.html +++ b/goodies/index.html @@ -1,7 +1,7 @@ - + uts-server @@ -71,20 +75,23 @@ body { uts-server, a simple RFC 3161 timestamp server
- For timestamping a file with OpenSSL and curl, run the following commands - (setting the $UTS_SERVER_URL, $FILE and $FILE_TIMESTAMP variables): -
- openssl ts -query -data "$FILE" -out "ts_req.ts";
- curl "$UTS_SERVER_URL" -H "Content-Type: application/timestamp-query" \
- -f -g --data-binary "@ts_req.ts" -o "$FILE_TIMESTAMP" -
- For verifying the timestamp with OpenSSL, download the CA, and run the following command: -
- openssl ts -verify -in "$FILE_TIMESTAMP" -data "$FILE" -CAfile ca.pem -
- + For timestamping a file with OpenSSL and curl, run the following commands + (setting the $UTS_SERVER_URL, $FILE and $FILE_TIMESTAMP variables): +
+ openssl ts -query -data "$FILE" -out "ts_req.ts";
+ curl "$UTS_SERVER_URL" \
+      -H "Content-Type: application/timestamp-query" \
+      -f -g --data-binary "@ts_req.ts" -o "$FILE_TIMESTAMP" +
+ For verifying the timestamp with OpenSSL, download the CA and the signer cert, and run the following command: +
+ openssl ts -verify -in "$FILE_TIMESTAMP" \
+      -data "$FILE" -CAfile ca.pem -untrusted tsa_cert.pem +
+