首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >以PEM格式存储RFC3161令牌时应使用什么页眉和页脚

以PEM格式存储RFC3161令牌时应使用什么页眉和页脚
EN

Security用户
提问于 2021-02-04 12:35:09
回答 1查看 134关注 0票数 0

RFC3161 (https://www.ietf.org/rfc/rfc3161.txt)规范声明

代码语言:javascript
复制
3. Transports

   There is no mandatory transport mechanism for TSA messages in this
   document.  The mechanisms described below are optional; additional
   optional mechanisms may be defined in the future.

它列举了几个例子,如

代码语言:javascript
复制
3.2. File Based Protocol

   A file containing a time-stamp message MUST contain only the DER
   encoding of one TSA message, i.e., there MUST be no extraneous header
   or trailer information in the file.  Such files can be used to
   transport time stamp messages using for example, FTP.

   A Time-Stamp Request SHOULD be contained in a file with file
   extension .tsq (like Time-Stamp Query).  A Time-Stamp Response
   SHOULD be contained in a file with file extension .tsr (like
   Time-Stamp Reply).

我想将PEM格式的时间戳令牌(=base64 64 econded)附加到文档中。我现在想知道的是,是否有任何已经标准化的页眉/页脚行?也许就像

代码语言:javascript
复制
-----BEGIN TST-----
[...]
-----END TST-----

代码语言:javascript
复制
-----BEGIN RFC3161 TOKEN-----
[...]
-----BEGIN RFC3161 TOKEN-----

还是应该使用默认的PKCS7页眉/页脚?

EN

回答 1

Security用户

发布于 2021-02-04 13:02:02

选择你想要的任何东西。

标签只为人类服务,以便能够识别数据是什么,而不必对其进行解码和解析。因此,像-----BEGIN TIME STAMP RESPONSE-----这样的标签会运行得非常好。

票数 1
EN
页面原文内容由Security提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://security.stackexchange.com/questions/244258

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档