title: Get SSL Certificate on web service C#
body: <p>I have created a webservice in which I'm getting a certificate from store as follows</p>
  
  <pre><code> ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls;
  
              X509Store certStore = new X509Store(StoreName.My, StoreLocation.CurrentUser);
              certStore.Open(OpenFlags.OpenExistingOnly &amp; OpenFlags.ReadOnly);
              X509CertificateCollection clientCertificates = (X509CertificateCollection)certStore.Certificates;
  
  
  
              X509Certificate certificate = new X509Certificate();
              foreach (X509Certificate Cert in clientCertificates)
              {
                  if (Cert.Issuer.Contains("O=Neutralus,"))
                  {
                      certificate = Cert;
                  }
              }
  </code></pre>
  
  <p>this works fine when I test web service and gets a certificate for me but when i deploy this service and access it from other computer it gives me following error </p>
  
  <blockquote>
    <p>A client certificate was not found in the SSL stream. The client could not be authenticated.</p>
  </blockquote>
  
  <p>I have installed certificate on both computers and tried <code>StoreLocation.LocalMachine</code> and all StoreName. </p>