问题
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?
回答1:
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
来源:https://stackoverflow.com/questions/7349806/signing-pdf-with-a-certificate-in-a-certificate-store