On attempting to bind a new SSL certificate to a website in IIS7, if you get the error

A specified logon session does not exist. It may already have been terminated


…there are several workarounds for what appears to be caused by a bug in IIS7.


Workaround 1.

Select the certificate in the Edit Site Binding window and click View


Click OK


Then try clicking OK again in the Edit Site Binding window. It may work now.



Workaround 2.

In the Server Certificates Feature in IIS Manager, select the problem cert, then export it to the desktop. Then click “Import” and reimport it.