The task is to avoid an error in the signature verification of the SignedXml object. The problem is that after the latest windows updates, they turned off the algorithm support
But the problem is that it is default for X509Certificate2.PrivateKey
And this one
public AsymmetricAlgorithm PrivateKey { get; set; } // // Сводка: // Получает объект System.Security.Cryptography.X509Certificates.X509Certificate2.PublicKey, // связанный с сертификатом. // // Возвращает: // Объект System.Security.Cryptography.X509Certificates.X509Certificate2.PublicKey. // // Исключения: // System.Security.Cryptography.CryptographicException: // Значение ключа не является значением RSA или DSA, или ключ не читается. By default, it is the rsa-sha1 algorithm. And I don’t know how to change it (Inheriting all classes from a task including SignedXml seems like a bad solution)? I will be glad to any information on the issue! On the msdn site I was told that I needed to have certificates with another algorithm. Question on MSDN . But on the CryptoPro forum, the algorithm can be used by another. A question on the CryptoPro forum .