使用证书存储中的证书对PDF进行签名 [英] Signing PDF with a certificate in a certificate store
问题描述
我想在证书库中签署带有证书的PDF。
I want to sign a PDF with a certificate in a certificate store.
我使用iTextSharp和iSafePDF来播放PDF,当我使用存储为.p12文件的证书进行签名时,它可以正常工作。但我不知道如何使用库来签署从证书存储区获得的证书。我有一个System.Security.Cryptography.X509Certificate2的实例,但该库使用不同的对象表示,我无法使其工作。有人可以帮忙吗?
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?
推荐答案
好的,这正是我试图找到的,附带的文字是捷克语,但没有太多的它和有效的代码是重要的。
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.
这篇关于使用证书存储中的证书对PDF进行签名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!