PDF Validation show sucess in PDF but failed in Server Validation Portal

I was able to create a PDF with LTV and Timestamp using my certificate that is in the smart card. I get the certificate from:

     X509Store store2 = new X509Store(StoreName.My);


When I see the certificate in PDF it looks like this and validation is 100% success:



When I upload the PDF to the Authority Validation Server who issue the certificate it fails in all validation:



Do you have any idea why this is happening?

I have attached the code. You will need a smart card certificate. I cant send my pfx because the private key is not exportable.



Attachment: DigitalSignatureSample_a7c320b3.rar

9 Replies

IJ Irfana Jaffer Sadhik Syncfusion Team September 2, 2022 12:54 PM UTC

Hi Gerardo,


On further analyzing your sample we found that you missed to add the licensing key and suspect that will be one of the causes for the digital signature to be invalidated. We request you to add the following code snippet with the proper license key to remove the licensing added to the pdf document. Please try this in your end and let us know if it satisfies your requirement.


Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense("YOUR LICENSE KEY");


Please follow the below links for more information,

https://help.syncfusion.com/file-formats/licensing/how-to-register-in-an-application


Also, kindly share the Portal Validation link to check the result on our end. So that will be helpful for us to assist with you further in this.

Regards,

Irfana J.



GS Gerardo Saborio September 2, 2022 07:41 PM UTC

Hi,


I tried what you said adding the License but I had the same problem.

I am attaching the PDF so you can review to see if you see something wrong.


You can upload the file here and validate.

https://www.centraldirecto.fi.cr/Sitio/FVA_ValidarDocumentoPublico/ValidarDocumentoPublico


I had run other examples and they work and get validate by the authority portal but only if I do without the timestamp or TLV and  I don't need to add the license


Attachment: LTV_document_9fd9fdae.rar


GS Gerardo Saborio September 2, 2022 11:21 PM UTC



IJ Irfana Jaffer Sadhik Syncfusion Team September 5, 2022 12:47 PM UTC

Hi Gerardo,


We were able to reproduce the reported behavior with the provided details in our end. Currently we are validating on this and will provide the further details on September 7th, 2022.


Regards,

Irfana J.



GS Gerardo Saborio September 6, 2022 04:16 PM UTC

I have attached a PDF that I make using Adobe PDF and is 100% compliance. This may help you to find the difference.




Attachment: PDF_EXAMPLE_WITH_100_9993168d.zip


GK Gowthamraj Kumar Syncfusion Team September 7, 2022 02:03 PM UTC

Hi Gerardo


Thanks for the document,


We are still analyzing the reason for the document signature validation failure in server validation portal, and we will update further details on September 9th, 2022.


Regards,

Gowthamraj K



IJ Irfana Jaffer Sadhik Syncfusion Team September 9, 2022 10:16 AM UTC

Hi Gerardo,


On further analyzing a problem, we are suspecting the server validation portal validates only the official certificate provided from the server portal, Because when we check other tools signed valid documents or the acrobat dc pro signed documents with valid certificates itself fails in this server portal. Due to official certificate/trusted certificate unavailability, we are unable to further analyze the problem on our end.  So, we request a web meeting to look at how you sign the PDF with your certificate using Acrobat on your machine. Please let us know your availability for a web meeting. We will make every effort to have this scheduled on a date and time of your convenience.


Note: We work in IST hours.


Regards,

Irfana J.






GS Gerardo Saborio September 9, 2022 08:00 PM UTC

Please choose a meeting from https://calendly.com/gsaborio


If you cant find a time that is good for you I can connect in your morning around 8am or 9am that is my 8pm or 9pm






GK Gowthamraj Kumar Syncfusion Team September 12, 2022 02:59 PM UTC

Hi Gerardo

We are unable to schedule a meeting through forum. So kindly create a support ticket in this link. Then we can have a web meeting to look into the issue directly in your machine and provide the solution at the earliest.


We are working in IST hours (we are available at 1pm to 7 PM IST hours)


Regards,

Gowthamraj K


Loader.
Up arrow icon