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 = "johndoe@owned.us";
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?
Thanks
Hanns Schwarz
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.