Access is denied. (Exception from HRESULT: 0×80070005 (E_ACCESSDENIED))

Solutions:

C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys

Ensure that the “Administrators” group has full control and the “Everyone” group has the following permissions on this folder only:
List folder / read data
Read attributes
Read extended attributes
Create files /write data
Create folders / append data
Write attributes
Write extended attributes
Read permissions

Also people can try as the Certificated may installed under personal already and caused the above error:

  • using MMC and found the certificate was already there – under Certificates (Local Computer) / Personal
  • Instead of doing the export/import thing suggested, tried dragging the certificate down to Certificates (Local Computer) / Web Hosting node – and, surprisingly, it worked
  • After doing the above, back to IIS Manager and was able to use the certificate in the site bindings right away

 

 


Comments are closed.