systemtruststores / systemtruststores.github.io

Website
0 stars 0 forks source link

Language support: C# (.NET) #7

Open chriskilding opened 2 years ago

chriskilding commented 2 years ago

Tracking support for native TLS certificate verification in C# and the .NET stack.

Because .NET is cross-platform, we need to consider not only whether it can access the Windows Certificate Store, but also native trust stores on other operating systems.

Runtimes to consider:

chriskilding commented 2 years ago

Windows

If you are

(Hat tip to https://stackoverflow.com/q/63798167 where you can see that the user has added their custom certificate to the Certificate Store, in order for their C# program to see it.)

macOS

When using the System.Net APIs, on the official CLR, on macOS, it will use the Keychain to do TLS cert verification.

This is supported on all recent versions of the CLR. (This work was done in https://github.com/dotnet/corefx/pull/17011 for dotnet corefx v2.0.0.)