Error “Cannot find the certificate request that is associated with this certificate file.

Apr 20, 2023

 Error “Cannot find the certificate request that is associated with this certificate file.”     



This error message occurs due to one or a combination of the following:
  1. The certificate file is formatted incorrectly or the wrong extension file is being used for the installation.
  2. The CSR for this certificate was never generated on this system.
  3. A private key mismatch may occur if the private key in Microsoft IIS does not match the certificate you are installing.
  4. The private key for this certificate has been corrupted, lost, or this is not the server on which the CSR was generated.
  5. The wrong certificate file is being used for the installation.
  6. You updated your system and lost the request.
Step 1:
The certificate file is formatted incorrectly or the wrong extension file is being used for the installation.

Copy and paste the certificate into a text file (save as .txt) using Vi or Notepad. Do not use Microsoft Word or other word processing programs that may add characters. Confirm that there are no extra lines or spaces in the file. You should have a text file that looks like:

—–BEGIN CERTIFICATE—–

[Encoded data]

—–END CERTIFICATE—–

Make sure you have 5 dashes to either side of the BEGIN CERTIFICATE and END CERTIFICATE and that no white space, extra line breaks or additional characters have been inadvertently added.

Double check and make sure you created the CSR on this system. If you don’t know then find the original system.

Ensure that you do not delete the pending request on that Windows system. With IIS 6 (server 2003) systems that request can be easily deleted.

Sometimes if a software update to the system was applied the request can be lost.

Step 2: 
Troubleshoot the missing pending request or missing private key by performing the following.

Step 1:  Create an MMC Snap-in for Managing Certificates on a Windows server system:
  1. Start? >? run? >? MMC.

  2. Go into the Console Tab >? File >? Add/Remove Snap-in

  3. Click on? Add > Click on? Certificates and click on? Add.

  4. Choose? Computer Account > Next.

  5. Choose? Local Computer > Finish.

  6. Close the? Add Standalone Snap-in window.
  7. Click on? OK? at the? Add/Remove Snap-in window.
  8. You will be brought back into the management console where you will see your snap in.
Step 2: Importing your SSL certificate:
  1. Expand to Certificates (Local Computer) > Personal > Certificates

  2. Right click on Certificates and go to All Tasks > Import.
  3. The Certificate Import Wizard will appear click next.
  4. Specify the location and path of your SSL certificate by clicking Browse…
  5. Click Next.

  6. Note:-You may have to change the file type you are looking for to All in the drop down menu in order to browse to your certificate in the open window.
  7. Click Next.
  8. Click Finish.
  9. You should receive a message stating “The import was successful,” Click OK.
  10. You should see your new certificate appear in the middle of the Personal Certificates pain with an Icon that has a little key on it.

  11. Further double check the certificate by double clicking it. If your certificate states “You have a private key that corresponds to this certificate.” This means your SSL Certificate was able to marry with its private key, and is now ready for binding to its services, export, etc...
  12. Click OK.

If you still do not see a private key associated with your certificate then perform the following last resort troubleshooting tactic:
  1. With your SSL certificate now imported into MMC Double Click your SSL Certificate.
  2. On the certificate information window that opens, select the Details tab, scroll down and select the Thumbprint field from the list.
  3. The Thumbprint will appear in the box below; select the thumbprint and copy to clipboard (click anywhere in the box, then press Ctrl+A followed by Ctrl+C on the keyboard)

  4. Open up a Command Prompt (CMD) and run as an administrator and run the following command.
  5. certutil -repairstore my “<thumbprint>”
  6. Note: If you right click on CMD you will have a paste feature to paste the copied thumbprint in-between the quotes.
  7. The command should similar to:
  8. certutil -repairstore my “00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f”
  9. Note: If you see a Question Mark? In the front of your thumbprint delete it.
  10. If the command completes successfully, you will see a bunch of information with the following message appearing at the bottom:
  11. CertUtil: -repairstore command completed successfully.
  12. Double check the certificate back in MMC by double clicking it. If your certificate states “You have a private key that corresponds to this certificate.” This means your SSL Certificate was able to match with its private key, and is now ready for binding to its services, export, etc...

Note: If your imported SSL certificate and it does not state you have a private key then your private key was either corrupted or never generated on this system.You will have to start from scratch generating a new CSR > Perform a reissue of the SSL Certificate > then perform SSL Certificate installation.

You can now go back to Exchange or IIS and press F5 on your keyboard to refresh the Exchange or IIS application. Your new certificate should appear now that it has the private key. This means you can now assign the services and bind it to your websites.

Have any Questions

Call HTTPS

If you have any questions, feel free to call us