The Event Viewer message you're seeing indicates that the Secure Socket Tunneling Protocol (SSTP) service failed to configure a certificate for IPv6 use, even though the certificate itself is valid. The error:
"A specified logon session does not exist. It may already have been terminated." typically points to a problem with the certificate’s private key usage in the system context, rather than an issue with the certificate validity itself.
Consider the following options
- Missing or incorrect private key permissions
- The SSTP service (running as Local System) needs access to the private key.
- Fix:
- Open certlm.msc (Local Computer Certificates).
- Locate the certificate under Personal > Certificates.
- Right-click the certificate → All Tasks → Manage Private Keys.
- Ensure SYSTEM has Read permissions.
- Certificate marked as non-exportable / not machine-stored
- If the certificate was imported into a user store or marked as non-exportable, services running under SYSTEM can't access it.
- Fix:
- Ensure the certificate is in the Local Computer store.
- Re-import it with the "Mark this key as exportable" option if needed.
- Certificate Binding Issue
- Even though the cert is valid, SSTP might not be properly bound to it.
- Fix:
- Use the following command to view bindings:
netsh http show sslcert
- To re-bind:
netsh http add sslcert ipport=0.0.0.0:443 certhash=THUMBPRINT appid={APP-ID}
- Use the following command to view bindings:
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
hth
Marcin