可信时间戳 - 了解格式 (rfc3161)

发布于 2024-10-18 05:58:35 字数 1134 浏览 1 评论 0原文

[编辑:我写了一篇博文,详细解释了所有内容:看这里]

嗨!

我正在拼命尝试构建基于 rfc3161 的可信时间戳服务。我决定使用 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  }

找到客户端 这对我有一点帮助。

尽管如此,我仍然不知道应该如何构建时间戳服务的请求。

问候!

[edit: I've written a blogpost that explains everything in detail: look here]

Hi!

I'm desperately trying to build a service for trusted timestamps based on rfc3161. I've decided to use the free trusted timestamp service at zeitstempel.dfn.de.

My question is how i shall contact this service in order to receive a valid response. Regarding the request format, the RFC tells:

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  }

where

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

I've found a client which helped me a bit.

Nevertheless, I still don't know how I should construct the request for the timestamp service.

Regards!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

骄傲 2024-10-25 05:58:35

我很高兴您发现我们的软件很有帮助。但你指的是我们的旧服务。请访问 www.ntp.org.pl - 您会在那里找到最新版本的时间戳客户端以及许多其他与时间主题相关的有用免费软件。

我不确定你想做什么。也许如果您提供更多详细信息,我可以更好地帮助您。不管怎样,我会给你一些提示,在哪里可以找到一些宝贵的信息。

首先,您应该查看 OpenSSL 项目:
http://www.openssl.org/docs/apps/ts.html#
有一个例子,如何创建 TSRequest。该请求存储在文件中,因此您可以读取其内容。稍后,您可以使用以下命令向服务器发送请求:
http://www.openssl.org/docs/apps/tsget.html#

你可以做的另一个技巧是安装一些嗅探器(例如Wireshark - www.wireshark.org/),从www.ntp.org.pl启动我们的客户端,发送请求,然后在wireshark中找到正确的数据包以查看它是什么包含。

如果您还有其他问题,请随时询问。请提供有关您的服务的更多信息。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文