title: How to reference x.509 certificates on a cloud service deployed on azure?
body: <p>I am having trouble referencing x.509 certificates once a web service is deployed on azure. The error I get is:</p>
  
  <blockquote>
    <p>Cannot find the X.509 certificate using the following search criteria: StoreName 'My', StoreLocation 'LocalMachine', 
    FindType 'FindByThumbprint', FindValue 'd50d00762ab0b5bfa2ccd51122360e89ff5db55e'</p>
  </blockquote>
  
  <p>I have tried various StoreName and Location permutations and no success. 
  Part of my config is as follows:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;behaviors&gt;
        &lt;endpointBehaviors&gt;
          &lt;behavior name="ClientCredentialsBehavior"&gt;
            &lt;clientCredentials&gt;
              &lt;clientCertificate findValue="D50D00762AB0B5BFA2CCD51122360E89FF5DB55E"  storeLocation="LocalMachine" storeName="TrustedPeople" x509FindType="FindByThumbprint"/&gt;
              &lt;serviceCertificate&gt;
                &lt;defaultCertificate findValue="E194EBAAFBE5129D097795751127D21577293A87" storeLocation="LocalMachine" storeName="TrustedPeople" x509FindType="FindByThumbprint"/&gt;
              &lt;/serviceCertificate&gt;
            &lt;/clientCredentials&gt;
          &lt;/behavior&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>How do I solve this error on azure. Please help me I have spent hours now trying to solve this issue. Thank you.</p>