IIS 7 Error “A specified logon session does not exist. It may already have been terminated.” when using https

后端 未结 19 884
情书的邮戳
情书的邮戳 2021-01-30 19:58

I am trying to create Client Certificates Authentication for my asp.net Website.

In order to create client certificates, I need to create a Certificate Authority first:<

相关标签:
19条回答
  • 2021-01-30 20:06

    Security warning: what the checkbox really means is that the certificate can be read by users that shouldn't be able to read it. Such as the user running the IIS worker process. In production use the other answer instead.

    Happened to me too, and was fixed by ensuring that "Allow this certificate to be exported" is checked when you import it:

                                                enter image description here

    (thanks to this post!)

    0 讨论(0)
  • 2021-01-30 20:06

    We had the same issue due to incorrectly importing the certificate into the Current User Personal certificate store. Removing it from the Current User Personal store and importing it into the Local Machine Personal certificate store solved the problem.

    0 讨论(0)
  • 2021-01-30 20:07

    Nobody probably cares about this anymore, but I just faced this issue with my IIS 7 website binding. The way I fixed it was going to the Certificate Authority and finding the certificate issued to the server with the issue. I verified the user account that requested the certificate. I Then logged into the IIS server using RDP with that account. I was able to rebind the https protocol using that account only. No exports, reissuing, or extension changing hacks were needed.

    0 讨论(0)
  • 2021-01-30 20:09

    In my case it was because the World Wide Publishing Service user didn't have permissions to the certificate. After installing the certificate, access the certificates module in MMC and right-click the certificate with the issue. Select "Manage Private Keys..." from the "All Tasks" menu and add the above user. This was SYSTEM user in my case.

    0 讨论(0)
  • 2021-01-30 20:10

    Instead of importing the cert from IIS, do it from MMC. Then goto IIS for binding.

    0 讨论(0)
  • Guys after trying almost every single solution to no avail i ended up finding my solution to '“A specified logon session does not exist. It may already have been terminated.” when using https" below

    1. Verify your pfx cert is healthy with correct private key

    2. Run certutil and locate the certs 'unique Container name' - i used certutil -v -store my

    3.Navigate to C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys and locate the system file that corresponds to your Container name found above

    1. Check permissions and ensure 'system' has full control to file.

    Once applied i then checked IIS and was able to apply to https without error

    0 讨论(0)
提交回复
热议问题