To secure an ASP.NET MVC website I used SSL in IIS 7. So I selected the installed certificate in the bindings, enabled SSL on the website and thought that I was good to go. But after browsing to the website I got following error:
There was an error while performing this operation.
Details:
A specified logon session does not exist. It may already have been terminated.
I found out that errors happens when you import the certificate using the IIS7 Server Certificates and de-select the option to Allow this certificate to be exported. In that case it is not possible to use the certificate inside IIS7. So I removed the certificate, re-installed it with the option enabled and everything worked fine!