title: Azure app service: Cannot find the certificate in X509Store(StoreName.My, StoreLocation.CurrentUser)
body: <p>I have written a program that needs a certificate for signing and some other things.</p>
  
  <p>I have uploaded my pfx file as private certificate in SSL certificates of my app service.</p>
  
  <p><a href="https://i.stack.imgur.com/4qHsq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4qHsq.png" alt="enter image description here"></a></p>
  
  <p>Then I've tried to see installed certificates on my app service as it has been described <a href="https://blogs.msdn.microsoft.com/karansingh/2017/03/15/azure-app-services-how-to-determine-if-the-client-certificate-is-loaded/" rel="nofollow noreferrer">in here</a> by using power shell.</p>
  
  <p><a href="https://i.stack.imgur.com/QuYgn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QuYgn.png" alt="enter image description here"></a></p>
  
  <p>But my current user doesn't have any certificates.</p>
  
  <p>I've also checked my local machine, but it wasn't there either. 
  <a href="https://i.stack.imgur.com/kj5w6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kj5w6.png" alt="enter image description here"></a></p>
  
  <p>I cannot also find it using my c# code:</p>
  
  <pre><code> X509Store certStore = new X509Store(StoreName.My, StoreLocation.CurrentUser);
          certStore.Open(OpenFlags.ReadOnly);
          X509Certificate2Collection certCollection = certStore.Certificates.Find(X509FindType.FindByThumbprint, ThumbPrint, false);
          if (certCollection.Count == 0)
              throw new Exception("Certificate not found");
  </code></pre>