title: .NET core X509Store on linux
body: <p>Where are the certificate files located in linux when using the .NET Core 2 <code>X509Store</code>?</p>
  
  <p>On Windows, the certificates are accessible from the management console <code>certlm.msc</code> or with <code>New-SelfSignedCertificate</code> in powershell. Using .NET APIs, certificates can be added by something like this on both Windows and linux</p>
  
  <pre><code>using (var store = new X509Store(StoreName.My, StoreLocation.CurrentUser))
  {
      store.Open(OpenFlags.ReadWrite);
      var cert = new X509Certificate2("cert.pfx", "1234");
      store.Add(cert);
  }
  </code></pre>
  
  <p>which can be accessed via <code>X509Store.Certificates.Find()</code>.</p>
  
  <p>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.</p>