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.