You receive a "Failed to generate the certificate request" error message when you try to create a Certificate Signing Request in IIS
When you try to create a CSR (Certificate Signing Request) in IIS, you receive the following error message:
Failed to generate the certificate request. Access is denied.
This happens when the administrator who tries to create the certificate does not have the Full Control permissions on the files and subfolders of the MachineKeys folder. The following steps discuss the steps for resolving this issue:
Go through the process of recreating the CSR.