We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

PdfFileSignature issue with .Net COre & RSACng

We are using Aspose to sign PDF document using certificate generated by our pki.
Certificate are stored for reuse purpose to a DB, Cert & Private Key

Since now, we are using .net 4.x and PdfFileSignature to sign, it works well.
Now we need to move forward to .Net Core framework, and think change a bit.

In .Net 4.5, we set private key of the X509Certificate2 directly.
With .Net Core, we need to use certificate.CopyWithPrivateKey() method, which change the private key signature from System.Security.Cryptography.RSACryptoServiceProvider to System.Security.Cryptography.RSACng.

When signing the PDF with this certificate, no issue. But when you open the result PDF, Adobe cannot verify the signature and raise a cryptographic error.

I attach sample code, can be run in .net 4.x or .Net core, regarding thee choice the resulting PDF is valid or not.

Can you please advise if this is a Aspose Bug or if there’s some change available to solve this issue ?


ECHR.SignCoreTest.zip (78.5 KB)


We need to further investigate the scenario in order to determine the feasibility of your requirements. For the purpose, we have logged an investigation ticket as PDFNET-49736 in our issue tracking system. We will look into its details and keep you posted with the status of its resolution. Please be patient and spare us some time.

We are sorry for the inconvenience.


Any news on this issue ?


We are afraid that earlier logged ticket is not yet investigated. Please note that it will be investigated and resolved on a first come first serve basis and we will surely inform you as soon as we have some definite updates regarding its fix. Please be patient and spare us some time.

We are sorry for the inconvenience.