使用证书存储中的证书签署 PDF
我想使用证书存储中的证书签署 PDF。
我使用 iTextSharp 和 iSafePDF 来演唱 PDF,当我使用存储为 .p12 文件的证书进行签名时,它工作正常。但我不知道如何使用该库使用从证书存储区获得的证书进行签名。我有一个 System.Security.Cryptography.X509Certificate2 实例,但该库使用不同的对象表示形式,我无法使其工作。有人可以帮忙吗?
I want to sign a PDF with a certificate in a certificate store.
I am using iTextSharp and iSafePDF for singing PDFs, it works OK when I sign using a certificate stored as .p12 file. But I don't know how to use the library for signing with certificates obtained from a certificate store. I have an instance of System.Security.Cryptography.X509Certificate2, but the library uses a different object representation and I was not able to make it work. Can someone help?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好的,这正是我想要找到的内容,随附的文本是捷克语的,但内容不多,有效的代码才是最重要的。
使用证书中的证书对 PDF 进行签名认证商店
OK, here is exactly what I was trying to find, the accompanying text is in Czech, but there is not much of it and the code that works is what matters.
Signing PDF using a certificate in the certification store