I was in the process of updating an IIS7 Website with its newly issued Certificate when I encountered the following issue: “A specified logon session does not exist. It may already have been terminated.”

To resolve this issue:

  • Opened the MMC (start > run > type: mmc)
  • Add\Remove Snap-ins > Select Certificates > Click Add >
  • Choose Computer account > Next > Local computer > Finish
  • Then Clicked OK

Now under Certificates (Local Computer)

  • Select Personal > Certificates
  • Removed the Certificate that was giving me the problem

Again under Certificates (Local Computer)

  • Select Personal > Certificates
  • Right Click Certificates > All Tasks > Import…
  • Click Next > Browse to the new certificate (*tip: use all items view)
  • Select the certificate to import and click Open > Click Next
  • After entering your password; ensure the following are selected: Mark this key as exportable…., and Included all extended properties.

Once done, I returned to IIS and attempted to change the certificate to my new one, and it works without issues. I think this is some sort of bug with IIS7, perhaps there is a fix. For now this works and that’s all I need.

Good luck.


Added Note:

The following system event ID was shown 36870: A fatal error occurred when attempting to access the SSL server credential private key. The error code returned from the cryptographic module is 0x8009030d. The internal error state is 10001.