Доверенные метки времени - понимание формата (RFC3161)

StackOverflow https://stackoverflow.com/questions/5045416

Вопрос

[ редактировать : я написал blogpost, который все подробно объясняет: Смотрите здесь ]

привет!

Я отчаянно пытаюсь построить сервис для доверенных временных метров на основе RFC3161.Я решил использовать бесплатный сервис Trusted Timestamp в zeitstempel.dfn.de .

Мой вопрос в том, как я свяжусь с этим услугой, чтобы получить действительный ответ.Что касается формата запроса, RFC рассказывает:

TimeStampReq ::= SEQUENCE  {
   version                      INTEGER  { v1(1) },
   messageImprint               MessageImprint,
     --a hash algorithm OID and the hash value of the data to be

     --time-stamped
   reqPolicy             TSAPolicyId              OPTIONAL,
   nonce                 INTEGER                  OPTIONAL,
   certReq               BOOLEAN                  DEFAULT FALSE,
   extensions            [0] IMPLICIT Extensions  OPTIONAL  }
.

Где

   MessageImprint ::= SEQUENCE  {
        hashAlgorithm                AlgorithmIdentifier,
        hashedMessage                OCTET STRING  }
.

Я нашел клиент , который помог мне немного.

Тем не менее, я до сих пор не знаю, как я должен построить запрос на сервис временной техники.

С уважением!

Это было полезно?

Решение

I'm glad that you find our software helpful. But you refer to our old service. Please visit www.ntp.org.pl - you'll find there the latest version of timestamping client and a lot of other useful free software related to time topic.

I'm not sure what you want to do. Maybe if you give a few more details, I'd be able to help you better. Anyway, I'll give you some hints, where to find some precious information.

Firs of all, you should look at OpenSSL project: http://www.openssl.org/docs/apps/ts.html# There is an example, how to create TSRequest. The request is stored in file, so you can read it's content. Later, you can send request to the server using this: http://www.openssl.org/docs/apps/tsget.html#

Antoher trick you can do is to install some sniffer (for example Wireshark - www.wireshark.org/ ), start our client from www.ntp.org.pl , send request, then find proper packet in wireshark to see what it contains.

Feel free to ask, if you have some additional questions. Please, give some more information about your service.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top