The Secure Socket Tunneling Protocol service could not configure the following certificate for use with Internet Protocol version 6 (IPv6).

Hong 1,246 Reputation points
2025-05-04T15:17:30.95+00:00

I have taken a look at a few similar questions but feel their cases are different, so I I am asking for help here.

Here is an entry in Event Viewer:

The Secure Socket Tunneling Protocol service could not configure the following certificate for use with Internet Protocol version 6 (IPv6). This might prevent SSTP connections from being established successfully. Correct the problem and try again. Certificate Name - CN=*.mycomain.com A specified logon session does not exist. It may already have been terminated.

The certificate is valid.

Could anyone offer a tip on this?

Windows for business Windows Server User experience Other
0 comments No comments
{count} votes

Accepted answer
  1. Marcin Policht 49,640 Reputation points MVP Volunteer Moderator
    2025-05-04T16:59:50.4333333+00:00

    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

    1. 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.
    1. 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.
    1. 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}
        

    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


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.