Digital Signature From Smart Card

Digital Signature From Smart Card

Forum member · Dec 1, 2008
Hi I am using dynamicPDF to digitally sign some PDFs. I am trying to use the user's smart card to sign the PDF. Currently I am using CAPICOM for the user to select his certificate, then using the selected certificate's SubjectName to create the certificate object for signing the PDF. Currently I am getting the following error: "Provider could not preform the action since the context was acquired as silent" Anyways, I was wondering if anyone knows how to use a certificate off a smart card to sign a PDF. Thanks in advance.

Re: Digital Signature From Smart Card

Support · Dec 1, 2008
Hello, Can you please let us know if you are trying to accomplish this from a web application or from a windows or console application? Thanks, ceTe Software Support Team

Re: Digital Signature From Smart Card

Forum member · Dec 1, 2008
Its a console application. Thanks again for the help.

Re: Digital Signature From Smart Card

Support · Dec 2, 2008
Hello, We have not done any testing with signing PDF documents by reading the certificate from the smart card. We will have our developers look into this a little further and post further updates very soon. We would encourage anyone who has tested digitally signing PDF documents using smart cards to post their test results. Thanks, ceTe Software Support Team

Re: Digital Signature From Smart Card

Forum member · Feb 9, 2009
Any updates on this?

Re: Digital Signature From Smart Card

Forum member · Feb 9, 2009
I ended up going with a detached signature method for my application, instead of the signature being part of the PDF The error above I believe is due to how DynamicPDF request the private key. DynamicPDF attempts to get the key silently, which suppresses all UI. It makes since for DynamicPDF to do this because they don't want their library causing random popups, however to obtain access to the private key off the smart card, the user must input a PIN number in a box that pops up. I was able to test this by entering my PIN number using my smart card somewhere else first. It will only ask use you for you PIN number if you haven't inputted it in a while, so when I went back to sign the PDF again with DynamicPDF it worked fine.