Welcome to the ASP.NET Core feedback portal. We’re happy you’re here! If you have feedback on how to improve the ASP.NET Core, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

0
Votes

Hi.
When signing a pdf with an ECDSA cert Syncfusion throws a null reference exception at PdfLoadedDocument.Save.
Notes:
- It only happens when using the ECDSA cert it, works fine with RSA.
- The cert is tested & correct, able to sign pdfs.
- The Stream that the PdfLoadedDocument.Save method takes is also not null.
- Using an external signer won't throw the error but we'd highly prefer to not use that.
Stacktrace:

System.NullReferenceException: 'Object reference not set to an instance of an object

at Syncfusion.Pdf.Security.X509Certificate2Signature.Sign(Byte[] message)

at Syncfusion.Pdf.Security.PdfSignatureDictionary.GetPortableStoreCertificate()

at Syncfusion.Pdf.Security.PdfSignatureDictionary.DocumentSaved(Object sender, DocumentSavedEventArgs e)

at Syncfusion.Pdf.PdfDocumentBase.OnDocumentSaved(DocumentSavedEventArgs args)

at Syncfusion.Pdf.Parsing.PdfLoadedDocument.AppendDocument(PdfWriter writer)

at Syncfusion.Pdf.Parsing.PdfLoadedDocument.Save(Stream stream)