Where are the certificate files located in linux when using the .NET Core 2 X509Store
?
On Windows, the certificates are accessible from the management console certlm.msc
or with New-SelfSignedCertificate
in powershell. Using .NET APIs, certificates can be added by something like this on both Windows and linux
using (var store = new X509Store(StoreName.My, StoreLocation.CurrentUser))
{
store.Open(OpenFlags.ReadWrite);
var cert = new X509Certificate2("cert.pfx", "1234");
store.Add(cert);
}
which can be accessed via X509Store.Certificates.Find()
.
But where do the files get stored and how can they be added via linux tools? e.g. a sys admin would be adding the certificates and an application will be only reading them.