I am trying to sign a pdf document with a cert from a win store. I saw it here how to do it
I have something like:
X509Certificate2 certFromStore = …
ExternalSignature externalSignature = new ExternalSignature(certFromStore);
pdfSign.Sign(pdfDocument.Pages.Count, false, new System.Drawing.Rectangle(1, 1, 1, 1), pkcs);
I get “No private key”. I saw that u had some problems due to this. What I’m doing wrong? Is it even a right approach to sign document with a cert fom a win store?