为什么我们应该设置一个时间戳当我们做一个代码签名? [英] Why should we set a timestamp when we do a codesigning?

查看:1386
本文介绍了为什么我们应该设置一个时间戳当我们做一个代码签名?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我在签名时设置了时间戳,会发生什么?

如果我没有设置,该怎么办?

If I set a timestamp with signing, what happens?
What if I don't set?

为什么建议使用?

推荐答案

时间戳用于指定数字签名的时间。

Timestamping is used to specify time when the digital signature is made. This is needed to properly validate the signature.

如果存在签名时间戳,则验证(验证)签名的应用程序将检查签名验证中涉及的证书是否为在签署时有效。如果签名没有时间戳,则对签名验证的时刻检查证书有效性,这并不总是可接受的。

If signature timestamp is present, the application which validates (verifies) the signature, will check whether the certificates involved into signature validation were valid at the moment of signing. If there's no timestamp for the signature, certificate validity is checked for the moment of signature validation, which is not always acceptable.

Example:
Certificate is valid from: 1st of January, 2008
Certificate is valid to: 31st of December, 2010
Signature is made on: 4th of July, 2009
Signature is verified on: 30th of April, 2012

有时间戳:签名确定)没有时间戳:签名无效(证书在签名验证时已过期)。

With timestamp: signature is ok (signature was made during certificate validity period) Without timestamp: signature is not valid (certificate has expired by the moment of signature verification).

如果签名应该被使用,

Timestamping should be used if the signature is supposed to be used (to proof authenticity of the document author or data originator) in long term, i.e. longer than one or several days.

时间戳不是必须的,例如,当您发送一个简短的签名对同事的注意,并且该笔记预计在与书面同一天被阅读和处置。当然,当签名技术不支持时间戳或时间戳权限不可用时,不能使用时间戳。

Timestamping is not necessary when you, for example, send a short signed note to the colleague and this note is expected to be read and disposed of the same day as it has been written. Of course, timestamping can not be used when it's not supported by the signing technologies or when timestamping authority is not available.

另一方面,时间戳是必须的创建签名文档以进行广泛分发或长期存储和归档。在签署软件应用程序的可执行模块时也使用时间戳。

On the other hand, timestamping is a must when you create signed documents for wide distribution or for long-term storage and archiving purposes. Timestamping is also used when signing the executable modules of software applications.

更新:时间戳也使用证书签名。此签名也使用常规规则验证,这意味着用于签名时间戳的证书必须在签名验证时有效。在上述示例中,如果时间戳证书在2012年4月1日到期,则时间戳将被报告为无效,并且在签名的验证期间不会被计数。

Update: the timestamp is also signed with a certificate. This signature is also validate using regular rules, which means that the certificate used to sign the timestamp must be valid at the moment of signature validation. In the above example if the timestamping certificate expired on the 1st of April, 2012, then the timestamp will be reported as not valid and won't be counted during validation of the signature.

这篇关于为什么我们应该设置一个时间戳当我们做一个代码签名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆