添加链接
link之家
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
成熟的单杠  ·  php strtotime ...·  1 年前    · 
考研的西红柿  ·  SQL ...·  1 年前    · 
讲道义的键盘  ·  使用nginx limit_except ...·  1 年前    · 
Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams
[root@LINUX misc]# pwd
/usr/local/openssl/ssl/misc
[root@LINUX misc]# ./tsget -h http://tsa.opentsa.org:8080/tsa ../../bin/alllog.log.tsq
../../bin/alllog.log.tsq: fatal error: could not get timestamp, curl code: 7 (couldn't connect to host)

How can I confugure the time stamp Authority server to get signed tsq file? The example above shows how to send a tsq to the server URL(http://tsa.opentsa.org:8080/tsa) but I could not understand how to start server to handle thie request.

You may want to try simply opening http://tsa.opentsa.org:8080/tsa in your browser - at the time of writing the error code 'couldb't connect to host' seems spot on. I can at least not connect to the server tsa.opentsa.org on port 8080 at this time. And alternatives like http://tsa.opentsa.org/ suggest a plain drupal reinstall.

Now the second part - how does one use this.

Which typically is by creating a tsq file first. See http://manpages.ubuntu.com/manpages/precise/man1/tsget.1ssl.html for a nice example of which the crux is

  openssl ts -query -data file-to-get-timestamped.txt -cert <your cert> > file.tsq

and the result of this is then send with tsget.

If you want to start one at tsa.opentsa.org - then you need to work with them (the owners of opentsa.org).

If you mean starting one like the one at opentsa.org (which is currently) done; then in that case one would download & install software such as athttp://opentsa.org/#download (which involves installing openssl, applying the patch at tsa.org and then installing the mod_tsa module) or installing a commercial product, such as http://www.ascertia.com/products/ADSS-TSA-Server.aspx.

If you just want to test/experiment a bit - have a look at http://owcapage.wordpress.com/linux-time-stamp-server/ - which is much simpler to use or in the most extreme case run the ts command like

openssl ts -reply -queryfile design1.tsq -inkey tsakey.pem \
    -signer tsacert.pem -out design1.tsr

behind the 'webserver'. And where design1.tsq is the file you got as the payload over the wire from the HTTP client - and design1.tsr is what you would output as a result.

So your cgi/perl/php/etc script would be along the lines of

 1. create temp file containing GET/POST payload
 2. run above openssl ts command over it
 3. output the resulting file back

which is in effect exactly what the simple scripts at http://owcapage.wordpress.com/linux-time-stamp-server/ do.

I know how to create tsq and tsr file from two different machines, I would like to know how to start a server at for instance tsa.opentsa.org:8080/tsa. There should be some logic behind that url. – Ahmet Karakaya Jun 25, 2012 at 19:15 Thank you, that is what I want. I am going to try to install and test server-client interaction for time stamp request/response operations. – Ahmet Karakaya Jun 26, 2012 at 5:59

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question. Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.