Send and verify a rfc3161 standard timestamp request
-
Create a timestamp request (tsq)
openssl ts -query -data file.txt -no_nonce -out request.tsqGot the hash already?
openssl ts -query -digest b7e5d3f9319... -no_nonce -out request.tsq -
Send the tsq to the timestamp authority (tsa)
curl -H 'Content-Type: application/timestamp-query' --data-binary @request.tsq http://tsa.safecreative.org -o response.tsrHere we're using safecreative as our example TSA.
Now you must be able to lookup your hash on http://tsa.safecreative.org/
-
Verify the tsa response with
tsrfile:openssl ts -verify -in response.tsr -data file.txt -CAfile SafeCreative_TSA.cer
TheCAfileargument requires TSA's certificate which should be available on the webpage of your TSA.openssl ts -verify -in response.tsr -queryfile request.tsq -CAfile SafeCreative_TSA.cer
If you got both the ts request and response.openssl ts -verify -in response.tsr -digest b7e5d3f9319... -CAfile SafeCreative_TSA.cer
If you only have the hash digest.
- human readable tsq:
openssl ts -query -in wow.tsq -text - human readable tsr:
openssl ts -reply -in response.tsr -text
More on openssl ts manual.