Are some .Net classes and methods not supported by Unity&UWP? (X509Certificate)

Hello,

hereby is the problem description:

[PROBLEM]
Build to Universal Windows Platform fails with errors when I use System.Security.Cryptography.X509Certificates

[ERROR]

  • Assets\Scripts\Client\MyOpcuaClient.cs(27,9): error CS0246: The type or namespace name ‘X509Certificate2’ could not be found (are you missing a using directive or an assembly reference?)

[NOTES]
I can build the project for Windows, It fails only when target is UWP.
Unity uses .NET Core for UWP,which has X509Certificate.
.Net as scripting backend.
Switching scripting backend to IL2CPP will solve this problem, but it will also lead to other problems, so I’d rather stay with .Net.

[REPRO]
Add this code to your project, switch target platform to UWP, and build.

using System.Security.Cryptography.X509Certificates;

public class Script
{
X509Certificate cert;
}

I have also checked this page: https://docs.unity3d.com/401/Documentation/ScriptReference/MonoCompatibility.html. If I understand correctly, these red Micros means that these methods are not supported by UWP?

But the info there doesn’t seems to be the latest, is there a new version?

Thank you guys in advance!

Edit:
maybe this thread belongs to the windows platform subforum? If any moderator sees this, please move this thread to where you think suits it best:)

It is true, .NET scripting backend on UWP has some classes and methods missing.

Thank you.