rsa routines:RSA_check_key_ex:d e not congruent to 1, error while loading rsa xml file in .netcore on linux

193 Views Asked by At

I have a RSA XML file which I am trying to load using below code in .NET 6.0. This works fine on Windows container but fails on Linux container with error:

rsa routines:RSA_check_key_ex:d e not congruent to 1

var rsaCryptoServiceProvider = RSA.Create();
rsaCryptoServiceProvider.FromXmlString(data);

As per https://knowledge.digicert.com/solution/SO29559.html, this message comes when key is compromised. But why it's working on windows and not on linux container.

0

There are 0 best solutions below