Installed SSL certificate in certificate store, but it's not in IIS certificate list

后端 未结 17 1457
轻奢々
轻奢々 2020-12-13 05:49

After installation of a wildcard SSL certificate into the certificate store, the certificate does not appear in the IIS certificate list for use with site bindings.

17条回答
  •  自闭症患者
    2020-12-13 06:21

    I ran into this problem today. Due to the timeframe and some other issues, getting the key from the provider was not possible.

    I found the following solution here (under pixelloa's comment) and thought it would be good to have the answer on Stack Overflow as well.

    If the certificate does not have a private key, you can fix this by doing the following:

    To fix this, use the MMC snapin to import the cert into PERSONAL store of the computer account, click it and grab the serial # line. Go to dos, run certutil -repairstore my "paste the serial # in here" (you need the quotes unless you remove the spaces from the serial number) then refresh MMC with personal certs, right click it - export - select everything except DELETE PRIVATE KEY, hit ok. Then go to IIS and IMPORT cert instead of finish request.

    For what it's worth, all I actually had to do was run the certutil -repairstore command, and my certificate worked. I did run the export and set a password for the export itself, but I did not have to reimport the certificate. The certificate now shows up in IIS's list of certificates and can be used for HTTPS bindings.

    I hope this helped someone.

提交回复
热议问题