首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >MySQL还是Oracle中的TimeStampToken存储?

MySQL还是Oracle中的TimeStampToken存储?
EN

Stack Overflow用户
提问于 2015-02-27 18:49:53
回答 1查看 96关注 0票数 0

我正在使用一个基于java的客户端获得一个TimeStampToken (RFC3161)。

我需要将TSTInfo中包含的所有信息存储在数据库、MySql或Oracle.Is中,有没有特定的格式来存储它?

EN

回答 1

Stack Overflow用户

发布于 2021-02-23 00:33:17

请注意,如果只存储TSTInfo,则会丢失签名,这就是拥有RFC3161令牌的意义所在。没有签名的TSTInfo证明不了什么!

为了保留它的证据属性,您确实应该存储整个时间戳令牌(它被定义为包装TSTInfo的带签名的CMS ContentInfo )。

就使用哪种格式而言,RFC3161规范(https://www.rfc-editor.org/rfc/rfc3161)的第3.2章可能会有所帮助(尽管这只是一个建议):

代码语言: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.

[...]

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.

因此,我会将DER编码的CMS ContentInfo (而不是TSTInfo的)存储为BLOB

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

https://stackoverflow.com/questions/28763274

复制
相关文章

相似问题

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