签名的PDF显示消息“文件的有效性未知”,iText [英] Signed PDF showing message "The validity of the document is unknown", iText

查看:3106
本文介绍了签名的PDF显示消息“文件的有效性未知”,iText的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用iText在PDF中应用数字签名。数字签名的PDF显示消息,如文档认证的有效性未知。作者无法验证。至少有一个签​​名有问题。在顶部。

I am using iText to apply digital signatures in PDF. The digitally signed PDF is showing message like "the validity of the document certification is unknown. The author could not be verified.At least one signature has problems." at the top.

当我将证书添加到用于创建签名PDF的信任标识时,生成的签名PDF显示已签名且所有签名均有效 。

When I add the certificate to my trust identities which is used to create signed PDF, then the generated signed PDF shows "Signed and all signatures are valid".

是否可以通过不将证书添加到可信任身份来解决此问题?

Is it possible to fix this by without adding certificate to trusted identities?

提前致谢。

推荐答案

请阅读 https://itextpdf.com/book/digitalsignatures

第3.4节命名为如何获得绿色复选标记。

Section 3.4 is named "How to get a green check mark."

简短版本:如果您想要一个显示绿色复选标记的PDF而无需安装根手动证书,您至少需要一个存储在物理设备上的私钥,如硬件安全模块,USB令牌或智能卡。

The short version: if you want a PDF that shows a green check mark without having to install a root certificate manually, you need at least a private key that is stored on a physical device such as a Hardware Security Module, a USB token or a smart card.

你有吗?这么一把钥匙?您是否向CA询问了CDS或AATL证书?

Do you have such a key? Did you ask your CA for CDS or AATL certificate?

这篇关于签名的PDF显示消息“文件的有效性未知”,iText的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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