Hello,
we would like to sign PDF documents with a certificate using the ECDSA algorithm. Loading the certificate works fine, but on saving the document (pdf.SaveToFile) we get a System.NotSupportedException with message "The certificate key algorithm is not supported.".
In short the PrivateKey property on X509Certificate2 is not supported for elliptic curve algorithms (and also marked obsolete with .NET 6). The specific method GetECDsaPrivateKey (or GetRSAPrivateKey, ...) must be used.
Is there any way to still sign a PDF with this certificate using Spire.PDF?
Thanks,
Philip