C#验证PDF中的数字签名(带私钥)

时间:2018-06-05 23:15:31

标签: c# itext digital-signature

我正在使用存储在我的数据库中的.pfx登录pdf文件,

我希望用户能够上传已签名的PDF文件并获得证书我的证书的认可。

据我所知,签名的PDF包含:

1)签名文件

2)哈希(签名文件+私钥)

3)公钥

所以我和其他所有人都可以验证pdf是否正确签名而不是像这样操作:

    public key + hashed value = result. 

then compare the result to the signed file.

我想验证证书是用我的pk制作的。 所以我需要做那样的事情:

    private + signed file = result.

then I can compare the result to the hashed.

使用itextsharp有一种方法吗?

谢谢!

0 个答案:

没有答案
相关问题