Sometimes a private key gets corrupted and will no longer function with IIS. This is how I recreated the private key for my SSL certificate :
- Logon to the (web)server with the right account (domain admin for example).
- MMC/add certificates/Local computer –> finish
- Go to the certificate you wish to repair (for example personal store)
- Write down the serial number of the private key (propertes of the certificate)
- cmd –> certutil -repairstore my “SerialnumberOfSSL”
After repair you get a message that it was succesful.