I would like to use the curl library, to get the trusted timestamp of a message.
The command I use is the following:
curl --data-binary @inputfile http://url_to_test_tsa --header "Content-type: application/timestamp-request"
The problem is, that whatever tsa (timestamping authority) I use, I always get back a server error.
The content of @inputfile is a 40 character length sha1 or md5 hash.
What might be the problem?
From the man page: This posts data exactly as specified with no extra processing whatsoever
So if you use that option, you need to do the processing yourself.