简体   繁体   English

保留现有的PDF签名

[英]Retaining existing PDF signature

给定带有证书的经过数字签名的PDF,我没有私钥,是否可以更改文档,使用我的证书对其进行签名并将以前的签名保留为“历史记录”,也就是说,旧签名不应验证文件的完整性,而用户应该只能够看到它曾经用其他证书签名过?

If it's your intention to remove the old signature (created with someone else's private key), alter the document, and add a new signature (using your own private key), then yes, that's possible. 如果您打算删除旧的签名(使用他人的私钥创建), 更改文档并添加新的签名(使用您自己的私钥),那么可以。

If it's your intention to keep the old signature, and add a second (a so-called approval) signature (using your own private key), then it depends on the nature of the first signature (if that signature "locks" the document, it's not possible) whether or not you can alter the document in-between. 如果您打算保留旧的签名,并添加第二个(所谓的批准)签名(使用您自己的私钥),则取决于第一个签名的性质(如果该签名“锁定”了文档,不可能)是否可以在两者之间更改文档。

Moreover, altering the document will almost always invalidate the original signature. 此外,更改文档几乎总是会使原始签名无效。 See Which operations are allowed on a digitally signed PDF? 请参阅对经过数字签名的PDF可以进行哪些操作? to find out which changes are possible (eg filling out a form field) and which changes are impossible (eg adding an extra page). 找出哪些更改是可能的(例如,填写表单字段),哪些更改是不可能的(例如,添加额外的页面)。

A not so elegant workaround that is used to tackle this by at least one of our customers, is to wrap the signed PDF in a PDF portfolio, and to add a cover page with additional info. 至少一个我们的客户用来解决此问题的方法不是那么优雅,它是将签名的PDF包装到PDF包中,并添加带有其他信息的封面。 A PDF portfolio is like a ZIP file that can be opened in Adobe Reader (and some other PDF viewers). PDF包类似于可以在Adobe Reader(和其他一些PDF查看器)中打开的ZIP文件。 That ZIP file can contain all kinds of other documents, including unaltered signed PDF's in which the signatures are kept intact. 该ZIP文件可以包含所有其他类型的文档,包括未更改的已签名PDF,其中的签名保持不变。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM