Buenas! Estoy intentando firmar el documento en C# utilizando FirmaXadEsNet y cuando va a firmar con el certificado seleccionado, aparece este error:
Código PHP:
ERROR 2021-07-13 14:13:47,193 [26 ] Mvc.ExceptionHandling.AbpExceptionFilter - Unable to cast object of type 'System.Security.Cryptography.RSACng' to type 'System.Security.Cryptography.RSACryptoServiceProvider'.
System.InvalidCastException: Unable to cast object of type 'System.Security.Cryptography.RSACng' to type 'System.Security.Cryptography.RSACryptoServiceProvider'.
at FirmaXadesNet.Crypto.Signer.SetSigningKey(X509Certificate2 certificate)
at FirmaXadesNet.Crypto.Signer..ctor(X509Certificate2 certificate)
No sé si a alguien le ha ocurrido o le suena. He estado leyendo por ahí cosillas pero de momento nada lo ha resuelto así que cualquier comentario sobre el tema sería de ayuda!