title: Error: 'ID1039: The certificate's private key could not be accessed
body: <p>I am implementing ADFS authentication in azure but I face the following problem:</p>
  
  <blockquote>
    <p>An exception of type
    'System.Configuration.ConfigurationErrorsException' occurred in
    System.IdentityModel.Services.dll but was not handled in user code</p>
  </blockquote>
  
  <p>Additional information: ID1024: The configuration property value is not valid.</p>
  
  <p>Property name: <code>serviceCertificate</code></p>
  
  <blockquote>
    <p>Error: 'ID1039: The certificate's private key could not be accessed.
    Ensure the access control list (ACL) on the certificate's private key
    grants access to the application pool user.</p>
  </blockquote>
  
  <p>Thumbprint: 'df113454dsf1321(value here I changed the value)''</p>
  
  <p>when I right click on the certificate and then click all task then it not show me the option for Manage Private Keys and gave access to IIS user.
  How I fix the problem.
  web.config file contents:</p>
  
  <pre><code>&lt;serviceCertificate&gt;
          &lt;certificateReference x509FindType="FindByThumbprint" findValue="dfdsfdfdf(here I changed the value)" storeLocation="LocalMachine" storeName="My" /&gt;
  &lt;/serviceCertificate&gt;
  </code></pre>