S / mime时间戳支持

时间:2016-07-27 16:05:01

标签: cryptography timestamp mime

现在确定我有来自TS提供商的时间戳。

我应该如何将其放入哑剧信息中以符合标准? 据我所知,没有邮件程序支持时间戳,这不会是一个问题因为我将自己处理mime消息。

但是我想让它成为标准方式......任何例子?

感谢。

2 个答案:

答案 0 :(得分:1)

我认为@Michael自己的回答恰好存在以下几点:

  • application/timestamp-reply旨在传输可能或可能不包含TimeStampResp的{​​{1}},并且就当前目的而言TimeStampToken始终需要存在。请参阅RFC 3161,“2.4.2。响应格式”。
  • TimeStampToken内容类型目前未定义为安全多部分协议。参见RFC 1847,“1。简介”和RFC 3161,“3.1。使用电子邮件的时间戳协议”。

由于之前我建议采用以下样本结构:

application/timestamp-reply

其中

  • MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/timestamp-signature"; micalg="sha256"; boundary="{79EAC9E2-BAF9-11CE-8C82-00AA004BA90B}" --{79EAC9E2-BAF9-11CE-8C82-00AA004BA90B} MIME-Version: 1.0 Content-Type: text/plain Hello --{79EAC9E2-BAF9-11CE-8C82-00AA004BA90B} Content-Type: application/timestamp-signature; name="tst.bin" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="tst.bin" MIINygYJKoZIhvcNAQcCoIINuzCCDbcCAQMxDzANBglghkgBZQMEAgEFADB5BgsqhkiG9w0BCRAB BKBqBGgwZgIBAQYLYIZIAYb9bgEHFwQwMTANBglghkgBZQMEAgEFAAQg7fR3pD+6Lw0dlYtTjYke ... vlwFfWaVsUq6VyE0Sw3mVxQGooR7/GH10QSP7bNQqHNWyk1kX+9FlrRY3BPjsvJ046+ol74/3QkB WA7ZrAGzhwRBPQKfkCXysHwtDIj7iF1YXcXoeKQ1SWiGjhIHCpCXMJwNiapZQfYsnZQbI6L/xXMA --{79EAC9E2-BAF9-11CE-8C82-00AA004BA90B}-- tst.bin
  • TimeStampToken是一种非标准的安全多部分协议。

修改

似乎有几个标准适合这里:

  • RFC 5544 - “使用时间戳绑定文档的语法”
  • RFC 5955 - “应用程序/时间戳数据媒体类型”

但我没有时间详细检查它们。

答案 1 :(得分:0)

我认为这是合适的格式:

MIME-Version: 1.0
Content-Type: multipart/signed; protocol="application/timestamp-reply"; micalg="sha256"; boundary="{79EAC9E2-BAF9-11CE-8C82-00AA004BA90B}"

--{79EAC9E2-BAF9-11CE-8C82-00AA004BA90B}
MIME-Version: 1.0
Content-Type: text/plain

Hello

--{79EAC9E2-BAF9-11CE-8C82-00AA004BA90B}
Content-Type: application/timestamp-reply; name="smime.tsr"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.tsr"

MIIIUgYJKoZIhvcNAQcCoIIIQzCCCD8CAQMxDzANBglghkgBZQMEAgEFADCCAQ4G
CyqGSIb3DQEJEAEEoIH+BIH7MIH4AgEBBgorBgEEAbIxAgEBMDEwDQYJYIZIAWUD
BAIBBQAEIO30d6Q/ui8NHZWLU42JHpvHqwcukBtDCZiWtieBErjfAhQJsQprheA+
j/8hfRdCJYqNwURr+BgPMjAxNjA3MjgxMTM4NDdaoIGMpIGJMIGGMQswCQYDVQQG
EwJHQjEbMBkGA1UECBMSR3JlYXRlciBNYW5jaGVzdGVyMRAwDgYDVQQHEwdTYWxm
b3JkMRowGAYDVQQKExFDT01PRE8gQ0EgTGltaXRlZDEsMCoGA1UEAxMjQ09NT0RP
IFNIQS0yNTYgVGltZSBTdGFtcGluZyBTaWduZXKgggSgMIIEnDCCA4SgAwIBAgIQ
TrCHj8wkNTay2Mn3vzlVdzANBgkqhkiG9w0BAQsFADCBlTELMAkGA1UEBhMCVVMx
CzAJBgNVBAgTAlVUMRcwFQYDVQQHEw5TYWx0IExha2UgQ2l0eTEeMBwGA1UEChMV
VGhlIFVTRVJUUlVTVCBOZXR3b3JrMSEwHwYDVQQLExhodHRwOi8vd3d3LnVzZXJ0
cnVzdC5jb20xHTAbBgNVBAMTFFVUTi1VU0VSRmlyc3QtT2JqZWN0MB4XDTE1MTIz
MTAwMDAwMFoXDTE5MDcwOTE4NDAz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YB6dnoeBp3euQ==

--{79EAC9E2-BAF9-11CE-8C82-00AA004BA90B}--

如果我错了,请编辑我。 任何支持它的电子邮件客户端都要验证?