简体   繁体   English

Adobe Sign 的 PDF 签名验证

[英]Pdf Signature Validation for Adobe Sign

I have a pdf file that is being signed by the Adobe Sign.我有一个由 Adob​​e Sign 签名的 pdf 文件。 However, i am not able to verify/validate the signature using the ABCPdf.但是,我无法使用 ABCPdf 验证/验证签名。 I guess i am missing Root Certificate for that.我想我为此缺少根证书。 How can i find root certificate for Adobe Sign.我如何找到 Adob​​e Sign 的根证书。 I have root certificate for all the other providers like Digicert, Global sign.我拥有所有其他提供商的根证书,例如 Digicert、Global sign。 Also, all the other signature providers are working fine.此外,所有其他签名提供程序都运行良好。

if ((signature.Validate(collection)) && (!signature.IsModified))
        {
            isValid = true;
        }
        try
        {
            isValid = signature.Validate();
        }
        catch (WebSupergoo.ABCpdf11.Internal.PDFException)
        {
            return ESignedStatus.SignedTempered;
        }

        var certs = signature.GetCertificates();

        if (!signature.IsTrusted)
            return ESignedStatus.SignedUnverified;
        else if (!isValid)
            return ESignedStatus.SignedTempered;

I believe your answer is here: https://www.websupergoo.com/helppdfnet/source/6-abcpdf.objects/signature/1-methods/validate.htm我相信你的答案在这里: https : //www.websupergoo.com/helppdfnet/source/6-abcpdf.objects/signature/1-methods/validate.htm

How does Adobe Reader validate a PDF document without certificate files? Adobe Reader 如何验证没有证书文件的 PDF 文档?

You may find that Adobe Reader does not need a list of certificate files to validate PDF documents.您可能会发现 Adob​​e Reader 不需要证书文件列表来验证 PDF 文档。 This is because Adobe Reader may use several built-in Public Key Infrastructure hierarchies to certify PDF documents:这是因为 Adob​​e Reader 可能会使用多个内置的公钥基础结构层次结构来验证 PDF 文档:

Certified Document Services (CDS) is a trust hierarchy that chains back to the Adobe Root Certification Authority (Adobe Root CA).认证文档服务 (CDS) 是一种信任层次结构,可追溯到 Adob​​e 根证书颁发机构 (Adobe Root CA)。 Adobe Approved Trust List (AATL) is an extra list of CA certificates that Adobe Reader may download from Adobe periodically (for Adobe Reader/Acrobat 9 or later). Adobe Approved Trust List (AATL) 是 Adob​​e Reader 可以定期从 Adob​​e 下载的 CA 证书的额外列表(适用于 Adob​​e Reader/Acrobat 9 或更高版本)。 The Windows Certificate Store. Windows 证书存储区。 This is only true if Windows digital signature integration is enabled in Acrobat, which has not been the default since Acrobat 9. In order to validate a PDF document the same way Adobe Reader does, you need to use the same certificates it uses.这仅适用于在 Acrobat 中启用 Windows 数字签名集成的情况,自 Acrobat 9 以来这一直不是默认设置。为了像 Adob​​e Reader 一样验证 PDF 文档,您需要使用它使用的相同证书。 This can be easily achieved by exporting the trusted identities from Adobe Reader to .cer format certificate files.这可以通过将受信任的身份从 Adob​​e Reader 导出到 .cer 格式的证书文件来轻松实现。 (Note: CDS and AATL certificates are usually not in your Windows Certificate Store by default.). (注意:默认情况下,CDS 和 AATL 证书通常不在您的 Windows 证书存储中。)。

These then need to be placed in the Windows Certificate Store.然后需要将这些放置在 Windows 证书存储中。 For them to be trusted they need to be in one of the Trusted folder - Trusted People or Trusted Root Certification Authorities.为了让他们受到信任,他们需要位于 Trusted 文件夹之一 - Trusted People 或 Trusted Root Certification Authorities。 Needless to say, adding items to these folders - particularly the latter - is a big deal and you must be very careful to ensure you know what you are doing.不用说,向这些文件夹中添加项目——尤其是后者——是一件大事,你必须非常小心以确保你知道自己在做什么。

The Windows Certificate Store can be accessed by using System.Security.Cryptography.X509Certificates.X509Store (examples below).可以使用 System.Security.Cryptography.X509Certificates.X509Store(以下示例)访问 Windows 证书存储。

To export it from Acrobat / Acrobat Reader:要从 Acrobat / Acrobat Reader 导出它: 显示签名属性

显示签名者的证书

出口

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

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