var certStream = assembly.GetManifestResourceStream("XamSyncfusion.Assets.test.pfx");
//Creates a certificate instance from PFX file with private key.
PdfCertificate pdfCert = new PdfCertificate(certStream, "1234");
//Creates a digital signature.
PdfSignature signature = new PdfSignature(document, page, pdfCert, "Signature");
signature.Bounds = new RectangleF(new PointF(0, 0), new SizeF(100, 100));
signature.ContactInfo = "firstname.lastname@example.org";
signature.LocationInfo = "Honolulu, Hawaii";
signature.Reason = "I am author of this document.";
The certificate was created using openSSL. When I sign a PDF in Acrobat Reader using the same certificate, the signature shows as valid.
Can you help?
I have the same behavior with your sample. It works with your pfx certificate but not with ours. Please find attached our pfx file.
The certificate is not Password protected. Just leave the field empty.