Sign PDF documents with ECDSAP384SHA256 signature from smart card
Or when it will be available?
Mikolaj
Hello,
I join the request to add this functionality. In Poland, the current legal standards favor signing electronic documents with a signature on an ID card. In addition to everyday life, the use of this signature is also present in medicine when signing electronic medical records, where it is not only promoted but required by law. In this situation, we are obliged to do so by legal acts and we have problems using your libraries to sign PDF documents and thus meeting the expectations of our clients and the legislator, which may result in penalties for us. We do not know whether we should look for another library supplier to work with PDF files, or whether a suitable solution will be prepared in the near future. Is there a chance to prepare this solution by the end of the year?
Best Regards,
Maciej Przybylski
Product Owner
Please find the patch setup from below location:
Advanced approach – use only if you have specific needs and can directly replace existing assemblies for your build environment
Please find the patch assemblies alone from below location:
Installation Directions :
This patch should replace the files “Syncfusion.Pdf.Base.dll” under the following folder.
$system drive:\ Files\Syncfusion\Essential Studio\18.4.0.30\precompiledassemblies\18.4.0.30\4.6
Eg : $system drive:\Program Files\Syncfusion\Essential Studio\9.3.0.61\precompiledassemblies\9.3.0.61\4.0
To automatically run the Assembly Manager, please check the Run assembly manager checkbox option while installing the patch. If this option is unchecked, the patch will replace the assemblies in precompiled assemblies’ folder only. Then, you will have to manually copy and paste them to the preferred location or you will have to run the Syncfusion Assembly Manager application (available from the Syncfusion Dashboard, installed as a shortcut in the Application menu) to re-install assemblies.
Note :
To change how you receive bug fixes, ask your license management portal admin to change your project’s patch delivery mode.
https://www.syncfusion.com/account/license
Disclaimer :
Please note that we have created this patch for version 18.4.0.30 specifically to resolve the following issue(s) reported in this/the Forum 157736
If you have received other patches for the same version for other products, please apply all patches in the order received.
Regards
Mikołaj
Assembly Version: 18.4.0.30
we are testing the solution and we encountered the following problem:
in System.Security.Cryptography.Pkcs.PkcsUtils.CreateSignerEncodeInfo(CmsSigner signer, Boolean silent, SafeCryptProvHandle& hProv)
in System.Security.Cryptography.Pkcs.SignedCms.Sign(CmsSigner signer, Boolean silent)
in System.Security.Cryptography.Pkcs.SignedCms.ComputeSignature(CmsSigner signer, Boolean silent)
in Syncfusion.Pdf.Security.PdfSignatureDictionary.SignCertificate(Byte[] message, X509Certificate2 cert, Boolean detached)
in Syncfusion.Pdf.Security.PdfSignatureDictionary.GetStoreCertificate()
in Syncfusion.Pdf.Security.PdfSignatureDictionary.DocumentSaved(Object sender, DocumentSavedEventArgs e)
in Syncfusion.Pdf.PdfDocumentBase.OnDocumentSaved(DocumentSavedEventArgs args)
in Syncfusion.Pdf.Parsing.PdfLoadedDocument.AppendDocument(PdfWriter writer)
in Syncfusion.Pdf.Parsing.PdfLoadedDocument.Save(Stream stream)
in Syncfusion.Pdf.PdfDocumentBase.Save(String filename)
in ECDSA_SignPDF.Program.SignPFXFile() w C:\Users\mkrakowski\Desktop\ECDSA_SignPDF\ECDSA_SignPDF\Program.cs:wiersz 136
in ECDSA_SignPDF.Program.Main(String[] args) w C:\Users\mkrakowski\Desktop\ECDSA_SignPDF\ECDSA_SignPDF\Program.cs:wiersz 79
I use cert from Polish eID smartcard + reader (certificate is visible in windows certificate store; we have access to private key after we want to sign something -> and we must use PIN to card). We can use that cert to sign PDF in AdobeReader.
Probably the main problem is: you want to access to PrivateKey property frm x509certificate2 object, but all smartCard devices deny that.
X509Certificate2 certificate = GetCertFromStore();
signedXml.SigningKey = eCDsaProvider ;
signedXml.ComputeSignature();
when can we expect modifications?
Regards
Mikolaj
Attachment: mkrakowski_ECDSA_SignPDF_6d48cff7.zip
Hello, is there any new info about this?
Hi, versions 19+ doesn't work for us (in other bussines cases)
we wait for resolve incident: 333666 to be able to test that case
regards
Mikolaj
- 16 Replies
- 5 Participants
-
MK Mikolaj Krakowski
- Sep 9, 2020 08:05 AM UTC
- Jul 5, 2021 09:15 AM UTC