Signing PDF with a certificate in a certificate store

蹲街弑〆低调 提交于 2019-12-07 17:01:09

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!