SSL certificate installation issue deleted??

mohamed abdallah 21 Reputation points
2022-09-11T10:40:13.277+00:00

hi
I face an issue with installing an SSL certificate on IIS Server windows server 2019.
I tried to generate CSR code from the IIS server and then paste it into my SSL provider tool it shows the error " Please check the domain name used in the CSR".
I contacted my SSL provider and they send an SSL certificate.
but when importing it into the server certificate "complete certificate request" completes the wizard but when I go to the bindings to add it to my website I found nothing when I go back again to the server certificate I found that my certificate was gone and deleted.
I do that a lot of time and there is no result.

please I need your help.
thanks

Internet Information Services
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,909 questions
0 comments No comments
{count} votes

Accepted answer
  1. JimmySalian-2011 42,166 Reputation points
    2022-09-11T11:51:06.82+00:00

    Hi,

    You may be able to restore the private key, since it is stored more than one place on your computer:

    Start -> mmc.exe -> Add snap-in -> Certificates -> Computer account. Verify that the installed certificate appears in the "Personal/Certificates" tab. If not, import it. A missing private key is visualized by the icon next to the certificate not containing a key icon.
    Open the certificate (.cer) file from disk by double-clicking on it. In the Details tab, note the serial number.
    Start -> cmd.exe. Type "certutil -repairstore my (serialnumberhere)". The serial number should have no spaces. Could be 8 or more digits.

    If the certutil command returns with "-repairstore command completed successfully", the private key of your certificate was most likely recovered. You can verify this by going to the MMC certificate list and hitting F5 -- if successful, your certificate will now have a small key in its icon. You will then be able to select your certificate from IIS.

    If this fails, your private key is no longer available and you need to send a new certificate signing request to the signing authority.

    ==
    Please don't forget to upvote and Accept as answer if the reply is helpful


2 additional answers

Sort by: Most helpful
  1. JimmySalian-2011 42,166 Reputation points
    2022-09-11T10:58:33.433+00:00

    Hi,

    Can you check MMC and look for the certificate under the personal store? Follow these steps to search for it, also check any errors in the event viewer.

    239810-image.png

    Select Run from the Start menu, and then enter certlm.msc.

    The Certificate Manager tool for the local device appears.

    To view your certificates, under Certificates - Local Computer in the left pane, expand the directory for the type of certificate you want to view.

    ==
    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.


  2. JimmySalian-2011 42,166 Reputation points
    2022-09-11T11:25:22.96+00:00

    Hi,

    Certificate was not created the way it should be so you need to export certificate from certificates.msc concole to a certificate.pfx file. Please make sure to export it with a private key and password protect it. Once this is done you can import the certificate in IIS by using import option instead of complete certification request. This keeps the certificate in server certificates console and you can bind the website to the certificate.

    ==
    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.